2015-04-17 38 views
0
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) 

我按照https://hadooptips.wordpress.com/2014/05/26/configuring-single-node-storm-cluster/中的方法在Ubuntu 14.04 LTS中設置我的風暴。 當我嘗試連接到Storm UI時,錯誤如上所示。 我在/ home storm.yaml /用戶/風暴/ conf目錄是如下:本地集羣的風暴UI內部服務器錯誤

########### 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 

有誰知道如何解決這個問題?我是新手,詳細的解決方案將會有所幫助。

我zoo.cfg是如下:

# 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 

我在VMWare中運行它,Ubuntu的LTS 14.04。我應該在服務器中放入什麼IP地址?

+0

您能否確定風暴已啓動並正在運行?你是否也手動啓動風暴ui? – user2720864

+0

我在我的storm/bin目錄中使用了./storm nimbus,./storm supervisor和./storm ui。 – Toshihiko

+0

如何檢查風暴是否正常運轉? – Toshihiko

回答

2

我認爲你的zookeeper運行不正常,在運行zookeeper之前你必須創建只包含每個節點的id的myid文件。

請參考此處:Zookeeper - three nodes and nothing but errors

+0

我在VMWare Ubuntu 14.04 LTS中運行風暴。我只有1個zookeeper節點,那麼我應該在zookeeper/conf的zoo.cfg文件中爲服務器分配什麼IP? – Toshihiko

+0

謝謝。現在問題解決了。正如你所提到的,我在zookeeper/conf目錄中缺少myid。而且我的zoo.cfg中還有一個錯誤,如果我使用的是獨立模式,則不需要server.1,server.2,server.3,autopurge,initLimit和syncLimit。 – Toshihiko