Storm drpc服务器不接受spout请求

时间:2015-03-25 08:42:13

标签: apache-storm

我在Ubuntu 14.04中使用apache storm 0.9.3。我把zookeeper,nimubus,drpc,supervisor,ui,worker放在同一个盒子里。从ui,它看起来很好:

Topology picture spout

我有storm.yaml配置如下:

storm.zookeeper.servers:
 - "localhost"
storm.zookeeper.port: 2181
nimbus.host: "localhost"
storm.local.dir: "/var/stormtmp"
java.library.path: "/usr/local/lib"

supervisor.slots.ports:
   -6700
   -6701
   -6702
worker.childopts: "-Xmx768m"
nimbus.childopts: "-Xmx512m"
supervisor.childopts: "-Xmx256m"
drpc.servers:
   - "localhost"

然后,我的java客户端DRPC调用如下:“callstatio”是storm UI中的拓扑名称。

public static void main(String[] args) throws TException, DRPCExecutionException {

        System.out.println("Entering main in TestSpout");
        String host = "127.0.0.1";      
        DRPCClient client = new DRPCClient(host, 3772);
        System.out.println("host is:"+host);
        String result = client.execute("callstatio","hello world");
        System.out.println("result is:"+result);
        }

当我运行客户端时:

我在drpc.log中看不到任何请求,也没有异常。 任何提示为什么我无法让drpc服务器工作?

以下是来自tail -f drpc.log

2015-03-25T03:50:56.842-0400 o.a.s.z.s.ZooKeeperServer [INFO] Server environment:user.home=/root
2015-03-25T03:50:56.842-0400 o.a.s.z.s.ZooKeeperServer [INFO] Server environment:user.dir=/home/juhani/storm/apache-storm-0.9.3/bin
2015-03-25T03:50:57.293-0400 b.s.d.drpc [INFO] Starting Distributed RPC servers...
2015-03-25T04:09:27.331-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 1 start at 1427270366
2015-03-25T04:11:22.337-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 2 start at 1427270477
2015-03-25T04:13:42.342-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 3 start at 1427270620
2015-03-25T04:16:32.349-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 4 start at 1427270791
2015-03-25T04:20:52.358-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 5 start at 1427271047
2015-03-25T04:23:07.373-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 6 start at 1427271183
2015-03-25T04:25:27.377-0400 b.s.d.drpc [WARN] Timeout DRPC request id: 7 start at 1427271325

0 个答案:

没有答案