Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9584

NPE in distcp when ssl configuration file does not exist in class path.

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      ./hadoop distcp -mapredSslConf ssl-distcp.xml hftp://x.x.x.x:25003/history hdfs://x.x.x.X:25008/history

      if ssl-distcp.xml file not exist in class path, distcp will throw NullPointerException.

      java.lang.NullPointerException
              at org.apache.hadoop.tools.DistCp.setupSSLConfig(DistCp.java:266)
              at org.apache.hadoop.tools.DistCp.createJob(DistCp.java:250)
              at org.apache.hadoop.tools.DistCp.createAndSubmitJob(DistCp.java:175)
              at org.apache.hadoop.tools.DistCp.execute(DistCp.java:154)
              at org.apache.hadoop.tools.DistCp.run(DistCp.java:127)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
              at org.apache.hadoop.tools.DistCp.main(DistCp.java:431)
      

      Attachments

        1. HDFS-9584.patch
          1 kB
          Surendra Singh Lilhore
        2. HDFS-9584.patch
          1 kB
          Surendra Singh Lilhore
        3. HDFS-9584.001.patch
          1 kB
          Surendra Singh Lilhore

        Issue Links

          Activity

            People

              surendralilhore Surendra Singh Lilhore
              surendralilhore Surendra Singh Lilhore
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: