java.io.IOException: Error opening job jar: hadoop-0.20.2-examples.jar
今天在執行hadoop自帶例子測試的時候
$ bin/hadoop jar hadoop-0.20.1-examples.jar wordcount input output
Exception in thread "m
ain" java.io.IOException: Error opening job jar: hadoop-0.20.2-examples.jar
at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.
at java.util.jar.JarFile.
at java.util.jar.JarFile.
at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
解決辦法:
bin/hadoop dfs -rmr input
bin/hadoop dfs -put conf input
$ bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+'
11/01/18 19:21:40 INFO mapred.FileInputFormat: Total input paths to process : 13
11/01/18 19:21:40 INFO mapred.JobClient: Running job: job_201101181725_0011
11/01/18 19:21:41 INFO mapred.JobClient: map 0% reduce 0%
11/01/18 19:21:49 INFO mapred.JobClient: map 15% reduce 0%
11/01/18 19:21:50 INFO mapred.JobClient: map 30% reduce 0%
11/01/18 19:21:52 INFO mapred.JobClient: map 46% reduce 0%
11/01/18 19:21:53 INFO mapred.JobClient: map 61% reduce 0%
11/01/18 19:21:55 INFO mapred.JobClient: map 76% reduce 0%
11/01/18 19:21:56 INFO mapred.JobClient: map 92% reduce 0%
11/01/18 19:21:58 INFO mapred.JobClient: map 100% reduce 30%
11/01/18 19:22:07 INFO mapred.JobClient: map 100% reduce 100%
11/01/18 19:22:09 INFO mapred.JobClient: Job complete: job_201101181725_0011
11/01/18 19:22:09 INFO mapred.JobClient: Counters: 18
11/01/18 19:22:09 INFO mapred.JobClient: Job Counters
11/01/18 19:22:09 INFO mapred.JobClient: Launched reduce tasks=1
11/01/18 19:22:09 INFO mapred.JobClient: Launched map tasks=13
11/01/18 19:22:09 INFO mapred.JobClient: Data-local map tasks=13
11/01/18 19:22:09 INFO mapred.JobClient: FileSystemCounters
11/01/18 19:22:09 INFO mapred.JobClient: FILE_BYTES_READ=132
11/01/18 19:22:09 INFO mapred.JobClient: HDFS_BYTES_READ=17950
11/01/18 19:22:09 INFO mapred.JobClient: FILE_BYTES_WRITTEN=752
11/01/18 19:22:09 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=248
11/01/18 19:22:09 INFO mapred.JobClient: Map-Reduce Framework
11/01/18 19:22:09 INFO mapred.JobClient: Reduce input groups=6
11/01/18 19:22:09 INFO mapred.JobClient: Combine output records=6
11/01/18 19:22:09 INFO mapred.JobClient: Map input records=545
11/01/18 19:22:09 INFO mapred.JobClient: Reduce shuffle bytes=198
11/01/18 19:22:09 INFO mapred.JobClient: Reduce output records=6
11/01/18 19:22:09 INFO mapred.JobClient: Spilled Records=12
11/01/18 19:22:09 INFO mapred.JobClient: Map output bytes=169
11/01/18 19:22:09 INFO mapred.JobClient: Map input bytes=17950
11/01/18 19:22:09 INFO mapred.JobClient: Combine input records=9
11/01/18 19:22:09 INFO mapred.JobClient: Map output records=9
11/01/18 19:22:09 INFO mapred.JobClient: Reduce input records=6
11/01/18 19:22:09 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
11/01/18 19:22:09 INFO mapred.FileInputFormat: Total input paths to process : 1
11/01/18 19:22:10 INFO mapred.JobClient: Running job: job_201101181725_0012
11/01/18 19:22:11 INFO mapred.JobClient: map 0% reduce 0%
11/01/18 19:22:20 INFO mapred.JobClient: map 100% reduce 0%
11/01/18 19:22:32 INFO mapred.JobClient: map 100% reduce 100%
11/01/18 19:22:34 INFO mapred.JobClient: Job complete: job_201101181725_0012
11/01/18 19:22:34 INFO mapred.JobClient: Counters: 18
11/01/18 19:22:34 INFO mapred.JobClient: Job Counters
11/01/18 19:22:34 INFO mapred.JobClient: Launched reduce tasks=1
11/01/18 19:22:34 INFO mapred.JobClient: Launched map tasks=1
11/01/18 19:22:34 INFO mapred.JobClient: Data-local map tasks=1
11/01/18 19:22:34 INFO mapred.JobClient: FileSystemCounters
11/01/18 19:22:34 INFO mapred.JobClient: FILE_BYTES_READ=132
11/01/18 19:22:34 INFO mapred.JobClient: HDFS_BYTES_READ=248
11/01/18 19:22:34 INFO mapred.JobClient: FILE_BYTES_WRITTEN=296
11/01/18 19:22:34 INFO mapred.JobClient: HDFS_BYTES_WRITTEN=78
11/01/18 19:22:34 INFO mapred.JobClient: Map-Reduce Framework
11/01/18 19:22:34 INFO mapred.JobClient: Reduce input groups=3
11/01/18 19:22:34 INFO mapred.JobClient: Combine output records=0
11/01/18 19:22:34 INFO mapred.JobClient: Map input records=6
11/01/18 19:22:34 INFO mapred.JobClient: Reduce shuffle bytes=132
11/01/18 19:22:34 INFO mapred.JobClient: Reduce output records=6
11/01/18 19:22:34 INFO mapred.JobClient: Spilled Records=12
11/01/18 19:22:34 INFO mapred.JobClient: Map output bytes=114
11/01/18 19:22:34 INFO mapred.JobClient: Map input bytes=162
11/01/18 19:22:34 INFO mapred.JobClient: Combine input records=0
11/01/18 19:22:34 INFO mapred.JobClient: Map output records=6
11/01/18 19:22:34 INFO mapred.JobClient: Reduce input records=6
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8183550/viewspace-684154/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OGG-01028 Opening file errorError
- ORA-01116: error in opening database file 14ErrorDatabase
- ERROR OGG-00446 Missing filename opening checkpoint file.Error
- 執行hadoop作業 No job jar file set. User classes may not be found. See Job orHadoopJAR
- ERROR 23 (HY000) at line 29963: Out of resources when opening fileError996
- 關於WAS當中FFDC報告error in opening zip file剖析及解決Error
- "Failed to create empty document" error message appears when opening the BrightStor ARCserve BackupAIErrorAPP
- error on auto execute of job "SYS"."PURGE_LOG"錯誤分析Error
- Error on opening a connection to slave1:33061 on local port: 33061Error
- Job: TO_CHAR(CURRENT_TIMESTAMP, 'HH24MISSFF') errorError
- ORA-12012: error on auto execute of job 8913Error
- ORA-12012: error on auto execute of job 388947Error
- 3.2.2 Opening a Closed DatabaseDatabase
- Failed: error reading separator after document # 1: bad JSON array format - found no opening brackAIErrorJSONORM
- ORA-12012: error on auto execute of job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_1"ErrorOracle
- ORA-12012: error on auto execute of job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_2"ErrorOracle
- java.io.IOException: Connection reset by peerJavaException
- Python程式碼解析: job = next(job for job in jobs if job.job_id == job_id)Python
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- ORA-12012: error on auto execute of job "ORACLE_OCMErrorOracle
- ORA-39097: Data Pump job encountered unexpected error -12801Error
- 使用Presto查詢hive表資料時報"Error opening Hive split hdfs"問題,及解決方法RESTHiveError
- SQL Server 2000 Error 14274 ,不能刪除job解決方法SQLServerError
- Fatal error: require(): Failed opening required 'E:\phpstudy_pro\WWW\TP5\tp5\public/../thinkphp/baseErrorUIAIPHP
- Oracle 19C RAC 安裝 Error 4 opening dom ASM/Self in 0x5984500 報錯處理OracleErrorASM
- Oracle 11g報錯"ORA-12012: error on job ORACLE_OCM.MGMT_CONFIG_JOB_2_1"OracleError
- WPF initialization for opening and unitialization for closing process
- java -jar demo.jarJavaJAR
- Job for mysqld.service failed because the control process exited with error code錯誤解決MySqlAIError
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- ORA-12012: error on auto execute of job "SYS"."ORA$AT_SA_SPC_SY_%"Error
- oracle建立job並執行jobOracle
- java踩坑之java.io.IOException: No space left on deviceJavaExceptiondev
- 【JOB】Oracle JOB全面學習(DBMS_JOB和DBMS_SCHEDULER)Oracle
- 3.2.3 Opening a Database in Read-Only ModeDatabase
- 【ERROR】JOB執行DDL語句報錯ORA-06550 & PLS-00103Error
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- ORACLE查詢JOB資訊及JOB建立Oracle