Robert Kanter created HDFS-8514:
-----------------------------------
Summary: hadoop archive command looks at local files when using
wildcard
Key: HDFS-8514
URL: https://issues.apache.org/jira/browse/HDFS-8514
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 2.7.0
Reporter: Robert Kanter
When using a wildcard in the {{hadoop archive}} command, it looks at the local
filesystem. For example:
{noformat}
>> [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]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)