Ubuntu中关于Hadoop2.6.0的安装

求教:
1.我的程序运行到
bin/hadoop jar share/hadoop/mapreduce/sources/hadoop-mapreduce-examples-2.6.0-sources.jar 时,
发生错误:RunJar jarFile [mainClass] args...,
2.我的程序运行到
/usr/local/hadoop$ org.apache.hadoop.examples.WordCount input output
发生错误:
org.apache.hadoop.examples.WordCount:未找到命令
我本来是想在hadoop没有对配置文件进行处理前,进行一下测试,但是出现这种情况,请问怎么处理,谢谢!

你的脚本是否有问题

参考http://www.linuxidc.com/Linux/2015-01/112029.htm

请问下,最后你是怎么解决的