2014-09-06 62 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