首页 新闻 会员 周边 捐助

运行mapreduce程序报错

0
悬赏园豆:10 [已关闭问题] 关闭于 2019-12-19 17:08

初学hadoop,运行wordcount,但是一直报zookeeper配置错误,但是安装hadoop集群并没有配置zookeepper,请大神帮忙看一下,如何解决?

报错信息如下:

ERROR server.ZooKeeperServerMain: Invalid arguments, exiting abnormally
java.lang.NumberFormatException: For input string: "xeb.hadoopdemo.Startup"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at org.apache.zookeeper.server.ServerConfig.parse(ServerConfig.java:61)
        at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:86)
        at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:55)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:119)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:81)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:232)

运行的程序:

hadoop jar WordCounter.jar xeb.hadoopdemo.Startup /data/wordcount /data/wordcount/output
贾贵队长的主页 贾贵队长 | 初学一级 | 园豆:73
提问于:2019-12-04 18:31
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册