Common hadoop shell commands

Source: Internet
Author: User
Tags hadoop fs

To make it easier for you to review your memory, we will summarize the hadoop commands of today's experiment for later viewing.

 

Note: The following commands are performed in hadoop/bin.

 

1. hadoop FS-ls \-> View All the following directories.

 

2. hadoop FS-mkdir XXX-> Create the xxx folder on the hadoop file system.

 

3. hadoop FS-rmr xxx-> Delete the folder created on the file system

 

4. hadoop FS-Put/home/xuzhang/file1 XXX put the file into the created XXX directory

 

5. hadoop FS-CAT/input/data.txt, and open the data.txt file under input.

 

6. hadoop FS-Get input/data.txt/home/xuzhang: Down the files in HDFS to the specified directory.

 

7. Rename the hadoop FS-MV input/data.txt input/data1.txt File

 

 

In fact, the Common commands under hadoop are basically the same as those under Linux, that is, a FS is added.

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.