Learning is Evolving |Flat 25% off on all courses | Use coupon code LEARN25 During checkout |Enroll Now
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
Taking you to the next exercise in seconds...