list hdfs running linux 1

list hdfs running linux

hadoop fs -ls

Here is what the above code is Doing:
1. We’re creating a new directory called “test” in HDFS.
2. We’re copying the file “test.txt” from our local file system to the “test” directory in HDFS.
3. We’re listing the contents of the “test” directory in HDFS.

Similar Posts