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

Hadoop shell

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

1. View help

Hadoop fs-help

2. Upload

Hadoop fs-put

Such as hadoop fs-put test.log /

3. View the contents of the file

Hadoop fs-cat

For example: hadoop fs-cat / test.log

4. View the list of files

Hadoop fs-ls /

5. Download the file

Hadoop fs-get

6. Create a directory: hadoop fs-mkdir

Such as hadoop fs-mkdir / myDir

7. Delete the file: hadoop fs-rm-r

8. Execute jar: such as the wordcount program that comes with hadoop.

Hadoop jar hadoop-mapreduce-examples-2.4.1.jar wordcount/ wordcount/in / wordcount/out

The execution result is as follows:

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