Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5673

DistCp throw NPE if src is root

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      bash-3.2$ ./bin/hadoop distcp / .
      09/04/14 14:01:11 INFO tools.DistCp: srcPaths=[/]
      09/04/14 14:01:11 INFO tools.DistCp: destPath=
      With failures, global counters are inaccurate; consider running with -i
      Copy failed: java.lang.NullPointerException
              at org.apache.hadoop.tools.DistCp.makeRelative(DistCp.java:901)
              at org.apache.hadoop.tools.DistCp.setup(DistCp.java:1059)
              ...
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment