首页 > 代码库 > hadoop安装计
hadoop安装计
hadoop安装计 大体上按这个做就好了 http://blog.csdn.net/hitwengqi/article/details/8008203 需要修改hadoop-env.sh export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64 export PATH=$PATH:/usr/local/hadoop/bin rm -r ~/playground/classes/* #删除编译后的文件 rm ~/playground/wordcount.jar #删除jar包 rm -r ~/output #删除wordcount产生的文档 #编译WordCount.java javac -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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。