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 fi
2、le 7. checknative [-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 pri
4、nts the class path needed to get the 11. 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 i
5、nvoked w/o parameters. 查看版本1.[root@master ~]# hadoop version 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 sour
6、ce with checksum 704f1e463ebc4fb89353011407e965 7.This command was run using /usr/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
7、Maps = 10 3.Samples per Map = 100 4.Wrote input for Map #0 5.Wrote input for Map #1 20currencydeposit,weprescribeapassonaregularbasis,qilucardaccountonaregularbasis),certificatebondsandsavingsbonds(electronic);3.notdrawnonabanksavingscertificate,certificatebondsapply
8、formortgageloans,acceptingonlythelender北京尚学堂-cctv央视网广告合作伙伴,专业IT培训机构,口碑最好的java培训、,iOS培训,android培训,hadoop大数据培训,web前端,0元入学,先就业后付款,平均就业薪水9500以上1.Wrote input for Map #2 2.... 3.Job Finished in 19.715 seconds 4.Estimated value of Pi is 3.14800000000000000000 检查Hadoop本地库和压缩库
9、的可用性1.[root@master liguodong]# hadoop checknative -a 2.15/06/03 10:28:07 INFO bzip2.Bzip2Factor