Apache storm 本地群集的Storm UI内部服务器错误

Apache storm 本地群集的Storm UI内部服务器错误,apache-storm,internal-server-error,Apache Storm,Internal Server Error,我按照中的方法在Ubuntu 14.04 LTS中设置风暴。 当我尝试连接到Storm UI时,错误如下所示。 我在/home/user/storm/conf中的storm.yaml如下所示: Internal Server Error org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused at org.apache.thrift7.transpor

我按照中的方法在Ubuntu 14.04 LTS中设置风暴。 当我尝试连接到Storm UI时,错误如下所示。 我在/home/user/storm/conf中的storm.yaml如下所示:

Internal Server Error

org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused
    at org.apache.thrift7.transport.TSocket.open(TSocket.java:183)
    at org.apache.thrift7.transport.TFramedTransport.open(TFramedTransport.java:81)
    at backtype.storm.thrift$nimbus_client_and_conn.invoke(thrift.clj:75)
    at backtype.storm.ui.core$all_topologies_summary.invoke(core.clj:515)
    at backtype.storm.ui.core$fn__8018.invoke(core.clj:851)
    at compojure.core$make_route$fn__6199.invoke(core.clj:93)
    at compojure.core$if_route$fn__6187.invoke(core.clj:39)
    at compojure.core$if_method$fn__6180.invoke(core.clj:24)
    at compojure.core$routing$fn__6205.invoke(core.clj:106)
    at clojure.core$some.invoke(core.clj:2443)
    at compojure.core$routing.doInvoke(core.clj:106)
    at clojure.lang.RestFn.applyTo(RestFn.java:139)
    at clojure.core$apply.invoke(core.clj:619)
    at compojure.core$routes$fn__6209.invoke(core.clj:111)
    at ring.middleware.reload$wrap_reload$fn__6234.invoke(reload.clj:14)
    at backtype.storm.ui.core$catch_errors$fn__8059.invoke(core.clj:909)
    at ring.middleware.keyword_params$wrap_keyword_params$fn__6876.invoke(keyword_params.clj:27)
    at ring.middleware.nested_params$wrap_nested_params$fn__6915.invoke(nested_params.clj:65)
    at ring.middleware.params$wrap_params$fn__6848.invoke(params.clj:55)
    at ring.middleware.multipart_params$wrap_multipart_params$fn__6943.invoke(multipart_params.clj:103)
    at ring.middleware.flash$wrap_flash$fn__7124.invoke(flash.clj:14)
有人知道怎么解决这个问题吗?我是新手,详细的解决方案会很有帮助

我的zoo.cfg如下:

########### These MUST be filled in for a storm configuration
 storm.zookeeper.servers:
     - "localhost"

 storm.zookeeper.port: 2181

 nimbus.host: "localhost"
 nimbus.thrift.port: 6627
# ui.port:8772

 storm.local.dir: "/home/user/storm/data"

 java.library.path: "/usr/lib/jvm/java-7-oracle"

 supervisor.slots.ports:
     - 6700
     - 6701
     - 6702
     - 6703
     - 6704

我在VMWare、Ubuntu14.04 LTS中运行这个。我应该在服务器中输入什么IP地址。1?

我认为您的zookeeper运行不正常,在运行zookeeper之前,您必须创建仅包含每个节点id的myid文件


请参阅此处:

您能确保storm启动并运行吗?您是否手动启动了storm ui?我在我的storm/bin目录中使用了./storm nimbus、./storm supervisor和./storm ui。如何检查storm是否启动并运行?检查是否。。您在日志中看到了什么吗?当我在zookeeper/bin目录下使用/zkCli.sh-server 127.0.0.1:2181时,在使用/zkServer.sh后,在同一目录下启动,出现以下错误:2015-04-19 22:43:25693[myid:]-INFO[main SendThread(127.0.1:2181):ClientCnxn$SendThread@975]-打开到服务器127.0.0.1/127.0.0.1:2181的套接字连接。不会尝试使用SASL进行身份验证(未知错误)2015-04-19 22:43:25694[myid:]-警告[main SendThread(127.0.0.1:2181):客户端CNXN$SendThread@1102]-服务器为空的会话0x0,出现意外错误,正在关闭套接字连接并尝试重新连接在VMWare Ubuntu 14.04 LTS中运行storm。我只有一个zookeeper节点,所以我应该为服务器分配什么IP。zookeeper/conf中zoo.cfg文件中的1?谢谢。现在问题解决了。正如您提到的,我的zookeeper/conf目录中缺少myid。我的zoo.cfg中也有一个错误,如果我使用独立模式,则不需要server.1、server.2、server.3、autopurge、initLimit和syncLimit。
# The number of milliseconds of each tick
tickTime=2000 

# The number of ticks that the initial synchronization phase can take
initLimit=10  

# The number of ticks that can pass between sending a request and getting an acknowledgement
syncLimit=5  

# the directory where the snapshot is stored.
dataDir=/home/user/zookeeper-data  

# The location of the log file
 dataLogDir=/home/user/zookeeper/log/data_log 

# the port at which the clients will connect
clientPort=2181  
server.1=10.0.0.2:2888:3888  
server.2=10.0.0.3:2888:3888  
server.3=10.0.0.4:2888:3888  

# The number of snapshots to retain in dataDir
autopurge.snapRetainCount=3

# Purge task interval in hours
# Set to "0" to disable auto purge feature
autopurge.purgeInterval=1