Hadoop and Local directory issue


#1

Hi,

Just wanted to know local directory is not mapped to hdfs?
There are some directories missing in hdfs.
Basically i am trying to read a file but scala is not able to find the file because its not on HDFS.
Below are the images which will show differences between local and HDFS dirs.



Please let me know , what should i do read files.


#2

Likewise i have created a file in HDFS via Scala program, but not able to see those files by linux file browsing commands nor by WINSCP.
below is the file details created by Scala program


Please let me know how to browse the same


#3

That’s right the HDFS (hadoop fs -ls) and Linux File System (ls -l) are entirely different file system.