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

hadoop archive command looks at local files when using wildcard

    XMLWordPrintableJSON

Details

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

    Description

      When using a wildcard in the hadoop archive command, it looks at the local filesystem. For example:

      >> [56] 18:13 : localdir :: hadoop fs -ls /tmp/dir
      Found 2 items
      -rw-r--r--   1 rkanter supergroup          0 2015-06-01 17:57 /tmp/dir/f1.txt
      -rw-r--r--   1 rkanter supergroup          0 2015-06-01 17:57 /tmp/dir/f2.txt
      >> [57] 18:13 : localdir :: ls -l
      total 0
      -rw-r--r--  1 rkanter  staff  0 Jun  1 18:11 local-file.log
      -rw-r--r--  1 rkanter  staff  0 Jun  1 18:08 local-file.txt
      >> [58] 18:14 : localdir :: hadoop archive -archiveName foo.har -p /tmp/dir/ * /tmp/
      The resolved paths set is empty.  Please check whether the srcPaths exist, where srcPaths = [/tmp/dir/local-file.log, /tmp/dir/local-file.txt]
      >> [59] 18:15 : localdir :: hadoop archive -archiveName foo.har -p /tmp/dir/ *.txt /tmp/
      The resolved paths set is empty.  Please check whether the srcPaths exist, where srcPaths = [/tmp/dir/local-file.txt]
      >> [60] 18:15 : localdir :: hadoop archive -archiveName foo.har -p hdfs://localhost:8020/tmp/dir/ *.txt /tmp/
      The resolved paths set is empty.  Please check whether the srcPaths exist, where srcPaths = [hdfs://localhost:8020/tmp/dir/local-file.txt]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rkanter Robert Kanter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: