我是Hadoop的新手,并且在Java方面相当称职。
我正在使用OSX Terminal观看此Hadoop教程:https://www.guru99.com/create-your-first-hadoop-program.html
我陷入了步骤8 运行MapReduce作业
$query =
"SELECT * FROM mail m
WHERE ( receiver = '$username' OR sender = '$username' )
AND timestamp = ( select max(timestamp) from mail m2
WHERE ( receiver = '$username' OR sender = '$username' )
AND m.date = m2.date )";
我跑了:$HADOOP_HOME/bin/hadoop jar ProductSalePerCountry.jar /inputMapReduce /mapreduce_output_sales
输出:jar -cvf /Users/MrsGrandChamps/MapReduceTutorial/ProductSalePerCountry.jar Manifest.txt SalesCountry/*.class
然后我跑了added manifest
adding: Manifest.txt(in = 43) (out= 35)(deflated 18%)
adding: SalesCountry/SalesCountryDriver.class(in = 1666) (out= 819)(deflated 50%)
adding: SalesCountry/SalesCountryReducer.class(in = 1585) (out= 632)(deflated 60%)
adding: SalesCountry/SalesMapper.class(in = 1708) (out= 647)(deflated 62%)
我收到以下错误:
$ /usr/local/Cellar/hadoop/3.1.1/bin/hadoop jar ProductSalePerCountry.jar SalesCountry /inputMapReduce /mapreduce_output_sales
我已经玩了一点,无论.jar文件之后的参数中有什么内容,我都会收到该错误。
任何帮助将不胜感激!