1、北京尚学堂提供关于Hadoop1.[root@master ~]# hadoop --help 2.Usage: hadoop [--config confdir] COMMAND 3. where COMMAND is one of: 4. fs run a generic filesystem user client 5. version print the version 6. jar run a jar file 7. checknative
2、[-a
3、-h] check native hadoop and compression libraries availability 8. distcp copy file or directories recursively 9. archive -archiveName NAME -p * create a hadoop archive 10. classpath prints the class path needed to get the 11
4、. Hadoop jar and the required libraries 12. daemonlog get/set the log level for each daemon 13. or 14. CLASSNAME run the class named CLASSNAME 15. 16.Most commands print help when invoked w/o parameters. 查看版本1.[root@master ~]# hadoop versio
5、n 2.Hadoop 2.2.0.2.0.6.0-101 3.Subversion git@github.com:hortonworks/hadoop.git -r b07b2906c36defd389c8b5bd22bebc1bead8115b 4.Compiled by jenkins on 2014-01-09T05:18Z 5.Compiled with protoc 2.5.0 6.From source with checksum 704f1e463ebc4fb89353011407e965 7.This command was run using /u
6、sr/lib/hadoop/hadoop-common-2.2.0.2.0.6.0-101.jar 运行jar文件1.root@master liguodong]# hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples-2.2.0.2.0.6.0-101.jar pi 10 100 2.Number of Maps = 10 北京尚学堂-cctv央视网广告合作伙伴,专业IT培训机构,口碑最好的java培训、,iOS培训,android培训,hadoop大数据培训,web前端,0元入学,先就业后付款,
7、平均就业薪水9500以上1.Samples per Map = 100 2.Wrote input for Map #0 3.Wrote input for Map #1 4.Wrote input for Map #2 5.... 6.Job Finished in 19.715 seconds 7.Estimated value of Pi is 3.14800000000000000000 检查Hadoop本地库和压缩库的可用性1.[root@master liguodong]# hadoop checknative -a 2.15/06/03 10:28