2013年8月8日星期四

eclipse run wordCount mistakes, help! !

The following error:

13/04/22 09:38:19 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName = JobTracker, sessionId =
13/04/22 09:38:20 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf (Class) or JobConf # setJar (String).
Exception in thread "main" java.io.IOException: Call to localhost/127.0.0.1: 9100 failed on local exception: java.io. EOFException
at org.apache.hadoop.ipc.Client.wrapException (Client.java: 775)
at org.apache.hadoop.ipc.Client.call (Client.java: 743)
at org.apache.hadoop.ipc.RPC $ Invoker.invoke (RPC.java: 220)
at $ Proxy0.getProtocolVersion (Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy (RPC.java: 359)
at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode (DFSClient.java: 106)
at org.apache.hadoop.hdfs.DFSClient. (DFSClient.java: 207)
at org.apache.hadoop.hdfs.DFSClient. (DFSClient.java: 170)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize (DistributedFileSystem.java: 82)
at org.apache.hadoop.fs.FileSystem.createFileSystem (FileSystem.java: 1378)
at org.apache.hadoop.fs.FileSystem.access $ 200 (FileSystem.java: 66)
at org.apache.hadoop.fs.FileSystem $ Cache.get (FileSystem.java: 1390)
at org.apache.hadoop.fs.FileSystem.get (FileSystem.java: 196)
at org.apache.hadoop.fs.Path.getFileSystem (Path.java: 175)
at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs (FileOutputFormat.java: 122)
at org.apache.hadoop.mapred.JobClient.submitJobInternal (JobClient.java: 770)
at org.apache.hadoop.mapreduce.Job.submit (Job.java: 432)
at org.apache.hadoop.mapreduce.Job.waitForCompletion (Job.java: 447)
at WordCount.main (WordCount.java: 66)
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt (DataInputStream.java: 375)
at org.apache.hadoop.ipc.Client $ Connection.receiveResponse (Client.java: 501)
at org.apache.hadoop.ipc.Client $ Connection.run (Client.java: 446)


I ask is where the mistake?
------ Solution ---------------------------------------- ----
hadoop starts are normal right?
------ Solution ---------------------------------------- ----
WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf (Class) ; or JobConf # setJar (String).
Exception in thread "main" java.io.IOException: Call to localhost/127.0.0.1: 9100 failed on local exception: java.io. EOFException

here seems to have a problem.
you look at your main function, as well as whether to start hadoop normal, localhost can connect on
------ Solution ---------------- ----------------------------
Exception in thread "main" java.io.IOException: ; Call to localhost/127.0.0.1: 9100 failed on local exception: java.io.EOFException

This line error is very important, is not no normal read or write to the specified closed

attention to the next project io files related code and configuration
------ Solution ------------------------- -------------------
This is a configuration error
hadoop locations

没有评论:

发表评论