Thursday, 26 April 2018

HDFS: Useful Hadoop Admin Commands

HDFS is designed more for batch processing rather than interactive use by users. The emphasis is on high throughput of data access rather than low latency of data access.

Applications that run on HDFS have large data sets. A typical file in HDFS is gigabytes to terabytes in size. Thus, HDFS is tuned to support large files. 

HDFS categorises its data in files and directories.It provides a command line interface called the FS shell that lets the user interact with data in the HDFS and manage your hadoop cluster.
This article provides a quick handy reference to all commonly used hadoop fs commands that can be used to manage files on a Hadoop cluster.The syntax of the commands is similar to bash and csh.

Check more about -HDFSand MapReduce


File transferring from local to HDFS
Hadoop fs –put

File transferring from HDFS to Local
Hadoop fs –get

File transferring within the HDFS
Hadoop fs –cp

List of the File Display inside the HDFS
Hadoop fs –ls

Display the content in the File within HDFS
Hadoop fs –cat

Remove particular File in HDFS
Hadoop fs –rm

Remove File directory in HDFS
Hadoop fs –rmr

Display the File size
Hadoop fs –du <File_name>

Display the directory size
Hadoop fs –dus <directory_name>

Create new directory in HDFS
Hadoop fs –mkdir <directory_name>

Display the whole directory and its content in HDFS
Hadoop fs –lsr <directory_name>

Displays last kilobyte of the File
Hadoop fs –tail <File_name>

Display the overview of HDFS
Hadoop fsck

File transferring from local to HDFS
Hadoop fs -CopyFromLocal

File transferring from HDFS to Local
Hadoop fs –CopyToLocal

9 comments:

  1. very useful information.
    valuable content.
    keep sharing.

    ReplyDelete
  2. Thank you author for great information

    ReplyDelete
  3. Wow, such a great content. Learned many things about Big Data and Hadoop.

    We also provide professional IT courses.
    IT Training Institute in Kolkata

    ReplyDelete
  4. This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting.our sclinbio.com 🙂

    ReplyDelete
  5. Your detailed breakdown of essential HDFS commands is incredibly helpful for both beginners and seasoned Hadoop administrators. Commands like hadoop fs -put, hadoop fs -get, and hadoop fs -ls are fundamental for managing files within the Hadoop Distributed File System. Additionally, administrative commands such as hadoop dfsadmin -report and hadoop dfsadmin -safemode are crucial for monitoring and maintaining the health of the Hadoop cluster.

    Generative AI Training In Hyderabad

    ReplyDelete
  6. Thank you for this comprehensive guide on essential HDFS admin commands. Your breakdown of commands like hadoop fs -put, hadoop fs -get, and hadoop fs -ls provides a solid foundation for managing files within the Hadoop Distributed File System. Additionally, the inclusion of administrative commands such as hadoop fsck and hadoop balancer is invaluable for maintaining cluster health and performance.

    At Fast Prep Academy, we emphasize the importance of mastering Hadoop tools to effectively manage big data environments. Your article serves as an excellent resour

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...

ShareThis