Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一个mapreduce程序初学者。我正在尝试通过运行 mapreduce 程序。ubuntu 终端。在运行程序时我遇到了这个错误。
/home/hduser/myprograms/tables/SmsDriver.java:4:错误:包 org.apache.hadoop.conf 不存在导入 org.apache.hadoop.conf.Configured;
请帮我..
运行作业的命令是bin/hadoop jar。并且在编译作业时,您的类路径中必须有hadoop-core-*.jar 。
javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar
并运行这项工作:
bin/hadoop jar /path/to/your/file.jar MainClass /path/to/input /path/to/output