JStorm的客户端提交问题

锋_行者 发布于 2015/10/25 11:16
阅读 845
收藏 0
平时我们发布Topology,都是在后台用 ./jstorm jar xxxxx.jar com.xxxx.xxxTopolog arg0,arg1 来将Topology发布到storm上

现在我用程序直接去发布Topology,但老是出现问题:
Topology发布的代码:

           nimbus.getClient().submitTopology(topology.getTopologyId(), uploadLocation, jsonConf, topology.buildTopology());

报错信息如下:

[INFO  2015-10-25 10:56:36 ServiceHandler:1090 pool-7-thread-12] Begin to copy from /home/hduser/app/jstorm/data/nimbus/inbox/0436d8e8-dab1-49ab-937f-a111f99a6898/stormjar-0436d8e8-dab1-49ab-937f-a111f99a6898.jar/lib to /home/hduser/app/jstorm/data/nimbus/stormdist/testTopology-3-1445741796/lib
[INFO  2015-10-25 10:56:36 ServiceHandler:1094 pool-7-thread-12] No lib jars /home/hduser/app/jstorm/data/nimbus/inbox/0436d8e8-dab1-49ab-937f-a111f99a6898/stormjar-0436d8e8-dab1-49ab-937f-a111f99a6898.jar/lib
[ERROR  2015-10-25 10:56:36 ServiceHandler:247 pool-7-thread-12] Fail to sumbit topology null, cause:null


topologyId:testTopology-3-1445741796, uploadedJarLocation:/home/hduser/app/jstorm/data/nimbus/inbox/0436d8e8-dab1-49ab-937f-a111f99a6898/stormjar-0436d8e8-dab1-49ab-937f-a111f99a6898.jar


java.lang.NullPointerException
at com.alibaba.jstorm.utils.PathUtils.read_dir_contents(PathUtils.java:107)
at com.alibaba.jstorm.daemon.nimbus.ServiceHandler.setupJar(ServiceHandler.java:1119)
at com.alibaba.jstorm.daemon.nimbus.ServiceHandler.setupStormCode(ServiceHandler.java:1073)
at com.alibaba.jstorm.daemon.nimbus.ServiceHandler.submitTopologyWithOpts(ServiceHandler.java:200)
at com.alibaba.jstorm.daemon.nimbus.ServiceHandler.submitTopology(ServiceHandler.java:106)
at backtype.storm.generated.Nimbus$Processor$submitTopology.getResult(Nimbus.java:1609)
at backtype.storm.generated.Nimbus$Processor$submitTopology.getResult(Nimbus.java:1597)
at org.apache.thrift7.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift7.TBaseProcessor.process(TBaseProcessor.java:34)
at org.apache.thrift7.server.TNonblockingServer$FrameBuffer.invoke(TNonblockingServer.java:632)
at org.apache.thrift7.server.THsHaServer$Invocation.run(THsHaServer.java:201)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


加载中
0
fir01
fir01
你敢用,也是个奇才
返回顶部
顶部