I am using hadoop provided by CDH 5.4.1 cluster. The issue I m facing is that there is a directory on hdfs with path /tmp/data It has some csv files say abc.csv Now this same folder is present on one of the node's (say node 1) local linux fs as well and containing a csv file xyz.csv.
When i am running following command from the node1: hdfs dfs -ls /tmp/data/*.csv I am expecting the output to show abc.csv however I get an error saying ls: `/tmp/data/xyz.csv': No such file or directory The same command gives correct output when run on other nodes which dont have this same folder path on their local linux fs.
My understanding was that since I am using hdfs dfs command hadoop should be looking in dfs space only and not get confused with local linux fs but that seems to be incorrect.
Please provide pointers on what could be the reason behind this behaviour?