hadoop 使用eclipse删除/tmp/matrix/out 再编译出现错误

math715 发布于 2012/11/01 11:17
阅读 1K+
收藏 0
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
12/11/01 11:11:42 WARN mapred.JobClient: No job jar file set.  User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
12/11/01 11:11:42 INFO input.FileInputFormat: Total input paths to process : 1
12/11/01 11:11:42 WARN snappy.LoadSnappy: Snappy native library not loaded
12/11/01 11:11:43 INFO mapred.JobClient: Running job: job_local_0001
12/11/01 11:11:43 INFO util.ProcessTree: setsid exited with exit code 0
12/11/01 11:11:43 INFO mapred.Task:  Using ResourceCalculatorPlugin : org.apache.hadoop.util.LinuxResourceCalculatorPlugin@a12810
12/11/01 11:11:43 INFO mapred.MapTask: io.sort.mb = 100
12/11/01 11:11:43 INFO mapred.MapTask: data buffer = 79691776/99614720
12/11/01 11:11:43 INFO mapred.MapTask: record buffer = 262144/327680
12/11/01 11:11:43 INFO mapred.MapTask: Starting flush of map output
12/11/01 11:11:43 INFO mapred.MapTask: Finished spill 0
12/11/01 11:11:43 INFO mapred.Task: Task:attempt_local_0001_m_000000_0 is done. And is in the process of commiting
12/11/01 11:11:44 INFO mapred.JobClient:  map 0% reduce 0%
12/11/01 11:11:46 INFO mapred.LocalJobRunner:
12/11/01 11:11:46 INFO mapred.Task: Task 'attempt_local_0001_m_000000_0' done.
12/11/01 11:11:46 INFO mapred.Task:  Using ResourceCalculatorPlugin : org.apache.hadoop.util.LinuxResourceCalculatorPlugin@cab23b
12/11/01 11:11:46 INFO mapred.LocalJobRunner:
12/11/01 11:11:46 INFO mapred.Merger: Merging 1 sorted segments
12/11/01 11:11:46 INFO mapred.Merger: Down to the last merge-pass, with 1 segments left of total size: 314 bytes
12/11/01 11:11:46 INFO mapred.LocalJobRunner:
12/11/01 11:11:46 WARN mapred.LocalJobRunner: job_local_0001
java.lang.ArrayIndexOutOfBoundsException: 2
    at Martrix$MartrixReducer.reduce(Martrix.java:94)
    at Martrix$MartrixReducer.reduce(Martrix.java:1)
    at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:176)
    at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:649)
    at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:417)
    at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:260)
12/11/01 11:11:47 INFO mapred.JobClient:  map 100% reduce 0%
12/11/01 11:11:47 INFO mapred.JobClient: Job complete: job_local_0001
12/11/01 11:11:47 INFO mapred.JobClient: Counters: 20
12/11/01 11:11:47 INFO mapred.JobClient:   FileSystemCounters
12/11/01 11:11:47 INFO mapred.JobClient:     FILE_BYTES_READ=162
12/11/01 11:11:47 INFO mapred.JobClient:     HDFS_BYTES_READ=90
12/11/01 11:11:47 INFO mapred.JobClient:     FILE_BYTES_WRITTEN=40643
12/11/01 11:11:47 INFO mapred.JobClient:   File Input Format Counters
12/11/01 11:11:47 INFO mapred.JobClient:     Bytes Read=90
12/11/01 11:11:47 INFO mapred.JobClient:   Map-Reduce Framework
12/11/01 11:11:47 INFO mapred.JobClient:     Map output materialized bytes=318
12/11/01 11:11:47 INFO mapred.JobClient:     Map input records=10
12/11/01 11:11:47 INFO mapred.JobClient:     Reduce shuffle bytes=0
12/11/01 11:11:47 INFO mapred.JobClient:     Spilled Records=24
12/11/01 11:11:47 INFO mapred.JobClient:     Map output bytes=264
12/11/01 11:11:47 INFO mapred.JobClient:     Total committed heap usage (bytes)=137363456
12/11/01 11:11:47 INFO mapred.JobClient:     CPU time spent (ms)=0
12/11/01 11:11:47 INFO mapred.JobClient:     SPLIT_RAW_BYTES=108
12/11/01 11:11:47 INFO mapred.JobClient:     Combine input records=0
12/11/01 11:11:47 INFO mapred.JobClient:     Reduce input records=0
12/11/01 11:11:47 INFO mapred.JobClient:     Reduce input groups=0
12/11/01 11:11:47 INFO mapred.JobClient:     Combine output records=0
12/11/01 11:11:47 INFO mapred.JobClient:     Physical memory (bytes) snapshot=0
12/11/01 11:11:47 INFO mapred.JobClient:     Reduce output records=0
12/11/01 11:11:47 INFO mapred.JobClient:     Virtual memory (bytes) snapshot=0
12/11/01 11:11:47 INFO mapred.JobClient:     Map output records=24
12/11/01 11:11:47 ERROR hdfs.DFSClient: Exception closing file /tmp/matrix/out/_temporary/_attempt_local_0001_r_000000_0/part-r-00000 : org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /tmp/matrix/out/_temporary/_attempt_local_0001_r_000000_0/part-r-00000 File does not exist. Holder DFSClient_-1862016927 does not have any open files.
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:1631)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:1622)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFileInternal(FSNamesystem.java:1677)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFile(FSNamesystem.java:1665)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.complete(NameNode.java:718)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)

org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /tmp/matrix/out/_temporary/_attempt_local_0001_r_000000_0/part-r-00000 File does not exist. Holder DFSClient_-1862016927 does not have any open files.
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:1631)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:1622)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFileInternal(FSNamesystem.java:1677)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFile(FSNamesystem.java:1665)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.complete(NameNode.java:718)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)

    at org.apache.hadoop.ipc.Client.call(Client.java:1070)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
    at $Proxy1.complete(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
    at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
    at $Proxy1.complete(Unknown Source)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.closeInternal(DFSClient.java:3897)
    at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.close(DFSClient.java:3812)
    at org.apache.hadoop.hdfs.DFSClient$LeaseChecker.close(DFSClient.java:1345)
    at org.apache.hadoop.hdfs.DFSClient.close(DFSClient.java:275)
    at org.apache.hadoop.hdfs.DistributedFileSystem.close(DistributedFileSystem.java:328)
    at org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:1446)
    at org.apache.hadoop.fs.FileSystem.closeAll(FileSystem.java:277)
    at org.apache.hadoop.fs.FileSystem$ClientFinalizer.run(FileSystem.java:260)

加载中
0
math715
math715
终于找到错误了
math715
math715
回复 @flyoung :检查你的代码,数组相关部分是不是出错了
flyoung
flyoung
我也遇到这个问题 你是怎么解决的
返回顶部
顶部