2014-09-06 65 views
0

我想运行地图减少工作,但无法看到输出,即使这里'outp'文件夹不created.Below是控制台O/P。地图减少输出不生成

**[email protected]:~/Documents$ hadoop jar /usr/local/hadoop_test_file/votecount.jar VoteCountApplication /input/booth1.txt /outp** 

14/09/06 09:30:41 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 
14/09/06 09:30:41 INFO Configuration.deprecation: session.id is deprecated. Instead, use dfs.metrics.session-id 
14/09/06 09:30:41 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId= 
14/09/06 09:30:42 WARN mapreduce.JobSubmitter: Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this. 
14/09/06 09:30:42 INFO input.FileInputFormat: Total input paths to process : 1 
14/09/06 09:30:42 INFO mapreduce.JobSubmitter: number of splits:1 
14/09/06 09:30:42 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_local336021261_0001 
14/09/06 09:30:42 WARN conf.Configuration: file:/tmp/hadoop-alok/mapred/staging/alok336021261/.staging/job_local336021261_0001/job.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring. 
14/09/06 09:30:42 WARN conf.Configuration: file:/tmp/hadoop-alok/mapred/staging/alok336021261/.staging/job_local336021261_0001/job.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring. 
14/09/06 09:30:43 WARN conf.Configuration: file:/tmp/hadoop-alok/mapred/local/localRunner/alok/job_local336021261_0001/job_local336021261_0001.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring. 
14/09/06 09:30:43 WARN conf.Configuration: file:/tmp/hadoop-alok/mapred/local/localRunner/alok/job_local336021261_0001/job_local336021261_0001.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring. 
14/09/06 09:30:43 INFO mapreduce.Job: The url to track the job: localhost:8080/ 
14/09/06 09:30:43 INFO mapred.LocalJobRunner: OutputCommitter set in config null 
14/09/06 09:30:43 INFO mapred.LocalJobRunner: OutputCommitter is org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter 

回答

0

与包一起指定VoteCountApplication,尝试像下面

$ hadoop jar /usr/local/hadoop_test_file/votecount.jar com.test.VoteCountApplication /input/booth1.txt /outpath 
+0

:(仍然得到同样的输出一些事情。 – 2014-09-06 05:12:13

+0

参考http://stackoverflow.com/questions/19943766/hadoop-unable -to-load-native-hadoop-library-for-your-platform-error-on-centos这可以解决你的问题 – 2014-09-06 05:14:50

+0

找到解决方案http://stackoverflow.com/questions/22476852/hadoop-producing-no-output ?RQ = 1 – 2014-09-06 13:18:38