HDFS

50 / 58
HDFS - Hands-On with Console

We can also upload files from CloudxLab Linux console to HDFS.

Let’s say we want to copy the test.txt file from CloudxLab Linux console to HDFS. Login to CloudxLab Linux console. Create a file test.txt using nano or vi editor. Run command hadoop fs -copyFromLocal test.txt. This command will copy the file from CloudxLab Linux console to CloudxLab HDFS. To verify if file is copied to HDFS, please type hadoop fs -ls test.txt To see content of file in HDFS, please type hadoop fs -cat test.txt