Reputation: 2571
I'm using following command to archive the files, "hadoop archive -archiveName ravi.har -p /src /dest"
my /src having two files, ravi.txt and teja.txt with permissions 755.
While trying to execute the above command it is showing error as: The resolved paths set is empty. Please check whether the srcPaths exist, where srcPaths = [/src]
What is wrong here??
Upvotes: 2
Views: 556
Reputation: 7462
Have you tried:
hadoop archive -archiveName ravi.har -p / src /dest
?
Upvotes: 1
Reputation: 2695
you may need to specify the directories you wanted to archive like
hadoop archive -archiveName ravi.har -p /src d1 d2 /dest
i am assuming that you have two directories d1 and d2 under /src directory those you want to archive for more detail you can refer here
Upvotes: 2
Reputation: 732
This is probably your local files. Command excepts hdfs file path, not local. You may import this files to hdfs using copyFromLocal
Upvotes: 1