We are using CDH 5.9.2 14-node cloudera cluster. I have har file archived from multiple directories.
However when I tried to check the contents of har file ,I got the error as below.
hdfs dfs -ls har:///user/user1/HDFSArchival/Output1/Archive-16-11-2017-02-20.har -ls: Can not create a Path from an empty string Usage: hadoop fs [generic options] -ls [-C] [-d] [-h] [-q] [-R] [-t] [-S] [-r] [-u] [<path> ...]
I am able to check the size of har file though.
hdfs dfs -du -s -h /user/user1/HDFSArchival/Output1/Archive-16-11-2017-02-20.har 3.2 G 9.6 G /user/user1/HDFSArchival/Output1/Archive-16-11-2017-02-20.har
When I was looking for the error, got to know about the bug in CDH18.104.22.168 (and possibly earlier) in the globbing functionality inside .HAR files, implemented in the methods FileSystem::globStatus() and FileSystem::globStatusInternal().