Hadoop Common
  1. Hadoop Common
  2. HADOOP-10150 Hadoop cryptographic file system
  3. HADOOP-10886

CryptoCodec#getCodecclasses throws NPE when configurations not loaded.

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: fs-encryption (HADOOP-10150 and HDFS-6134)
    • Fix Version/s: 2.6.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      There are some test cases which will not load the xml defaults. In this case, CryptoCodec#getCodecclasses will fail with NPE.

      java.lang.NullPointerException: null
              at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
              at com.google.common.base.Splitter.split(Splitter.java:371)
              at org.apache.hadoop.crypto.CryptoCodec.getCodecClasses(CryptoCodec.java:100)
              at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:54)
              at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:91)
              at org.apache.hadoop.crypto.TestCryptoStreamsForLocalFS.init(TestCryptoStreamsForLocalFS.java:53)
      

      https://builds.apache.org/job/Hadoop-fs-encryption-nightly/71/

      1. HADOOP-10886.patch
        6 kB
        Uma Maheswara Rao G

        Activity

          People

          • Assignee:
            Uma Maheswara Rao G
            Reporter:
            Uma Maheswara Rao G
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development