HDFS File System Commands - Examples

 
 
Here are some of the examples of performing various file and directory operations in the HDFS file system. 
Commands File : files/kir-hdfs-commands.txt
 
 
=> Create New directory
    The following command creates new directory in the HDFS file system
 
   hduser@kirlin>hdfs dfs -mkdir /kiran
 
=> List the contents of the directory
 
   hduser@kirlin>hdfs dfs -ls /
   Found 1 items
   drwxr-xr-x   - hduser supergroup          0 2014-02-20 18:21 /kiran

Copyright ©2018 Rajkiran Ghanta (deegeplanet.com)