Ubuntu custom command to start Hadoop operations

Source: Internet
Author: User

When you do Hadoop, you often need to open the bin directory under Hadoop and enter the command

In Ubuntu we use a custom command to simply implement this command

Open the. bashrc file First

sudo vim ~/.BASHRC

And then add it at the end of the file

Alias hadoopfjsh= '/usr/local/hadoop/bin/hadoop '

That's right. Input hadoopfjsh will call this command directly.

Note After adding to enable this command to take effect immediately using the source ~/.BASHRC run

Enter after you start Hadoop

Hadoopfjsh Dfs-ls try to get the results straight.

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.