Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Chapter 2 of Hadoop Learning: Hadoop Command

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Common Hadoop commands:

hadoop dfs -mkdir /tmp/input New folder on HDFS

hadoop dfs -put input1.txt /tmp/input Transfer the local file input1.txt to the HDFS/tmp/input directory

Hadoop dfs -get input1.txt/tmp/input/input1.txt Pull HDFS files locally

hadoop dfs -ls /tmp/output Lists a directory in HDFS

hadoop dfs -cat/tmp/ouput/output1.txt View files on HDFS

hadoop dfs -rmr /home/less/hadoop/tmp/output Delete directories on HDFS

hadoop dfsadmin -report View HDFS status, such as which datanodes exist, and the status of each datanode

hadoop dfsadmin -safemode leave Leave safe mode

hadoop dfsadmin -safemode enter Enter safe mode

hadoop jar /usr/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.4.jar wordcount /usr/input /usr/output

Reference website:

http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report