Hadoop classname command use attention points

Source: Internet
Author: User
Keywords Name dfs run yes you can
Hadoop classname Command Use note-point blog Category: Hadoop hadoop&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Hadoop uses the Hadoop classname command. This classname is the name of the class you wrote. The Hadoop classname command is similar to the Java classname.
Before using Hadoop Classnam, you need to set up Hadoop_classpath.
Export hadoop_classpath=/home/hadoop/jardir/*.jar:/home/hadoop/workspace/hdfstest/bin/
Where/home/hadoop/jardir/contains all my Hadoop jar packs.
/home/hadoop/workspace/hdfstest/bin/is the directory of my development class, I use Eclipse to write Java development, because Eclipse has the ability to compile automatically, after writing, You can run the Hadoop classname command directly at the command line:
Hadoop Filesystemdoublecat Hdfs://hadoop:8020/xstartup

You can also make your project a runable jar package (Pack all the jar packs).
Then run the Hadoop Jar Jar package name type parameter 1.
Each time to make a jar package, which is very inconvenient for testing ...




Original, reprint please indicate the source.
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.