频道栏目
IT货架 > > 正文
hadoop安装计
网友分享于:Jan 1, 1970 8:00:00 AM    来源: IT货架   
hadoop安装计大体上按这个做就好了http://blog.csdn.net/hitwengqi/article/details/8008203需要修改hadoop-env.shexport JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64export PATH=$PATH:/usr/local/hadoop/binrm -r ~/playground/classes/* #删除编译后的文件rm ~/playground/wordcount.jar #删除jar包rm -r ~/output #删除wordcount产生的文档#编译WordCount.javajavac -classpath /usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.2.0.jar:/usr/local/hadoop/share/hadoop/common/hadoop-common-2.2.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-cli-1.2.jar -d ~/playground/classes ~/playground/src/WordCount.java#jar打包# -C切换目录jar -cvf ~/playground/wordcount.jar -C ~/playground/classes/ .#hadoop执行命令hadoop jar ~/playground/wordcount.jar home.goodspeed.playground.classes.org.apache.hadoop.WordCount ~/input ~/output  
相关板块推荐

广告服务联系QQ:1134687142 | 网站地图

版权所有: IT货架- 内容来自互联网,仅供用于技术学习,请遵循相关法律法规. 京ICP备11030978号-1