今天在做练习时候执行以下命令:
$ ./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!
$ ./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!
解决方案 »
- 如何用java发送JSON格式的请求到Keystone 给用户加admin角色?
- 怎么在OpenStack源码社区贡献代码
- 华为云计算有奖问答活动(已结束)
- Centos6.3 安装openstack 到yum install openstack-utils一直无法安装 急!!!
- c/c++上传大文件到hadoop平台的效率选择
- 请教大家一个问题, ifconfig 命令改网卡的ip地址后,能否通知改arp缓存?
- 请问有人装过mediawiki吗?
- Intellij IDEA 运行SparkPi实例的问题
- Hive分区Partition的数据如何更新
- vSphere HA 虚拟机监控操作警报
- 爬虫xpath不出网页表格内容
- 第一个mapreduce程序wordcount
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
看起来好像是parseInt,转整型的时候出错的。