Hadoop HDFs Shell

Source: Internet
Author: User
Tags hadoop fs

1. View Help

Hadoop fs-help <cmd>

2. Upload

Paths on files >

such as: Hadoop fs-put test.log/

3. View the contents of the file

Paths on Hadoop fs-cat

such as: Hadoop fs-cat/test.log

4. View File list

Hadoop Fs-ls/

5. Download the file

Paths on Hadoop fs-get


6, execution jar: such as the implementation of the WordCount Hadoop comes with the program,


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


Execution results such as:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/85/A6/wKiom1eq-QSy-eoLAAA1eU3vHHM273.png "title=" 20160810174828.png "alt=" Wkiom1eq-qsy-eolaaa1eu3vhhm273.png "/>

Hadoop HDFs Shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.