Home > other >  Run the WordCount error
Run the WordCount error

Time:09-24

Today in practice when executing the following command:
$./hadoop jar/MNT/HGFS ShareFile/WordCountOne jar/test/log/2015082818/test/log/
The main class packaging has been specified, process is as follows;
5004 the Jps
4631 NodeManager
2746 the NameNode
4526 the ResourceManager
2981 SecondaryNameNode
2845 the DataNode
3188 JobHistoryServer
2618 QuorumPeerMain
Error the following
The Exception in the thread "main" Java. Lang. A NumberFormatException: For input string: "/test/log/2015082818"
The at Java. Lang. A NumberFormatException. ForInputString (65). A NumberFormatException Java:
The at Java. Lang. Integer. ParseInt (Integer. Java: 481)
At Java. Lang. Integer. & lt; Init> (Integer. Java: 677)
At com. Ibeifeng. FirstMR. WordCount. Main (WordCount. Java: 32)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 57)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (606) Method. The Java:
At org, apache hadoop. Util. RunJar. Main (212) RunJar. Java:

Something who can solve the problem will be helpful, thanks!

CodePudding user response:

This parameter is "/test/log/2015082818" do,
The at Java. Lang. A NumberFormatException. ForInputString (65). A NumberFormatException Java:
The at Java. Lang. Integer. ParseInt (Integer. Java: 481)
It appears to be parseInt, turn to the integer error,

CodePudding user response:

This parameter is "/test/log/2015082818" 2015082818 is the file name to clean the files and directories problem has been solved, thank you for your reply!
  • Related