在谷歌云上设置风暴

lyfkaqu1  于 2021-06-21  发布在  Storm
关注(0)|答案(0)|浏览(215)

我想知道是否有任何关于在google计算引擎上设置apachestorm的工作。我一直在用这个博客(http://datadventures.ghost.io/2013/12/29/deploying-storm-on-gce/)但我似乎无法让我的nimbus示例设置正常工作。
博客上说,要检查我的nimbus示例是否正常工作,我应该看看nimbuswebui。但是,我似乎无法在浏览器上显示ui。我在storm.yaml文件中做了必要的更改。
我的storm.yaml文件如下所示:

storm.zookeeper.servers:
     - "test-1"
 ui.port : 8080
 nimbus.host: "nimbus"
 nimbus.childopts: "-Xmx1024m -Djava.net.preferIPv4Stack=true"
 ui.childopts: "-Xmx768m -Djava.net.preferIPv4Stack=true"
 supervisor.childopts: "-Djava.net.preferIPv4Stack=true"
 worker.childopts: "-Xmx768m -Djava.net.preferIPv4Stack=true"
 storm.local.dir: "/app/storm"

我检查了我的nimbus.log文件,看到了以下内容:

2016-10-26 18:57:27 b.s.d.nimbus [INFO] Starting Nimbus with conf {"dev.zookeeper.path" "/tmp/dev-storm-zookeeper", "topology.tick.tuple.freq.secs" nil, "topolo$
2016-10-26 18:57:27 b.s.d.nimbus [INFO] Using default scheduler
2016-10-26 18:57:27 c.n.c.f.i.CuratorFrameworkImpl [INFO] Starting
2016-10-26 18:57:27 o.a.z.ZooKeeper [INFO] Initiating client connection, connectString=test-1:2181 sessionTimeout=20000 watcher=com.netflix.curator.ConnectionSt$
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] Opening socket connection to server test-1/10.142.0.9:2181
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] Socket connection established to test-1/10.142.0.9:2181, initiating session
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] Session establishment complete on server test-1/10.142.0.9:2181, sessionid = 0x157fc2e050f0008, negotiated timeout =$
2016-10-26 18:57:27 b.s.zookeeper [INFO] Zookeeper state update: :connected:none
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] EventThread shut down
2016-10-26 18:57:27 o.a.z.ZooKeeper [INFO] Session: 0x157fc2e050f0008 closed
2016-10-26 18:57:27 c.n.c.f.i.CuratorFrameworkImpl [INFO] Starting
2016-10-26 18:57:27 o.a.z.ZooKeeper [INFO] Initiating client connection, connectString=test-1:2181/storm sessionTimeout=20000 watcher=com.netflix.curator.Connec$
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] Opening socket connection to server test-1/10.142.0.9:2181
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] Socket connection established to test-1/10.142.0.9:2181, initiating session
2016-10-26 18:57:27 o.a.z.ClientCnxn [INFO] Session establishment complete on server test-1/10.142.0.9:2181, sessionid = 0x157fc2e050f0009, negotiated timeout =$
2016-10-26 18:57:27 b.s.d.nimbus [INFO] Starting Nimbus server...

这表明我的nimbus示例与zookeeper连接。然而,如何访问ui却让我感到困惑。我尝试使用以下方式访问它:

http://[Public IP of Nimbus GCP Instance]:8080

我真的很感激任何帮助。我没有遇到过任何关于在谷歌计算引擎上构建storm的事情。我是storm的新手。
谢谢
编辑:

gcloud compute firewall-rules list | grep 8080
nimbusui  default  0.0.0.0/0  udp:8080,tcp:8080

在nimbus示例中,我尝试:

netstat -l 8080
Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State      
    tcp        0      0 *:ssh                   *:*                     LISTEN     
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
    udp        0      0 *:42924                 *:*                                
    udp        0      0 *:bootpc                *:*                                
    udp        0      0 nimbus.c.ecg-sandbo:ntp *:*                                
    udp        0      0 localhost:ntp           *:*                                
    udp        0      0 *:ntp                   *:*                                
    udp6       0      0 [::]:14994              [::]:*                             
    udp6       0      0 fe80::4001:aff:fe8e:ntp [::]:*                             
    udp6       0      0 ip6-localhost:ntp       [::]:*                             
    udp6       0      0 [::]:ntp                [::]:*                             
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags       Type       State         I-Node   Path
    unix  2      [ ACC ]     STREAM     LISTENING     10687    /var/run/dbus/system_bus_socket
    unix  2      [ ACC ]     STREAM     LISTENING     11147    /var/run/acpid.socket
    unix  2      [ ACC ]     STREAM     LISTENING     8751     @/com/ubuntu/upstart
    unix  2      [ ACC ]     SEQPACKET  LISTENING     9447     /run/udev/control

我还检查了ui.log:

2016-10-27 18:14:52 o.m.log [INFO] Logging to Logger[org.mortbay.log] via org.mortbay.log.Slf4jLog
2016-10-27 18:14:52 o.m.log [INFO] jetty-6.1.26
2016-10-27 18:14:52 o.m.log [INFO] Started SocketConnector@0.0.0.0:8080

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题