今天在做练习时候执行以下命令:
$ ./hadoop jar /mnt/hgfs/ShareFile/WordCountOne.jar /test/log/2015082818 /test/log/
其中主类打包时已指定,进程如下;
5004 Jps
4631 NodeManager
2746 NameNode
4526 ResourceManager
2981 SecondaryNameNode
2845 DataNode
3188 JobHistoryServer
2618 QuorumPeerMain
报错内容如下
Exception in thread "main" java.lang.NumberFormatException: For input string: "/test/log/2015082818"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.<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(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)anyone who can solve the problem will be helpful,thanks!