Halloween Sale: Flat 70% + Addl. 25% Off + 30 Days Extra Lab on all Courses | Use Coupon HS25 in Checkout | Offer Expires In

  Enroll Now

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 editors.
  • Run command hadoop fs -copyFromLocal test.txt.
  • This command will copy the file from CloudxLab Linux console to CloudxLab HDFS.
  • To verify if the file is copied to HDFS, please type hadoop fs -ls test.txt.
  • To see the content of the file in HDFS, please type hadoop fs -cat test.txt.

No hints are availble for this assesment

Answer is not availble for this assesment

Loading comments...