私はambariからhbaseマスターを開始しようとしています。飼い葉桶サーバーが実行されていません
動物園のサーバーに接続できないため起動できません。
Ambariは、すべての動物園のサーバー(3ノード)を実行中とマークします。
zookeperサーバーアプリケーションを実行しているアプリケーションサーバー(tomcat?)が正常に動作しているようです。少なくとも指定されたポートでリッスンするサービスがあります。
しかし、アプリケーションは他のノードに接続することができず、起動しないようです。
すべての接続は、zookeeperサーバーログのエラーメッセージZooKeeperServer not running
とクライアントのzookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x0, likely server has closed socket
というエラーメッセージで閉じられます。
これは、それらのノードのためのzookeperサーバのログ出力(それらのすべてに対して同じログ、名前が変更のみノード)である:クライアントが接続しようとすると
2016-03-31 16:15:34,550 - INFO [main:[email protected]] - Reading configuration from: /usr/hdp/current/zookeeper-server/conf/zoo.cfg
2016-03-31 16:15:34,553 - INFO [main:[email protected]] - Defaulting to majority quorums
2016-03-31 16:15:34,557 - INFO [main:[email protected]] - autopurge.snapRetainCount set to 30
2016-03-31 16:15:34,557 - INFO [main:[email protected]] - autopurge.purgeInterval set to 24
2016-03-31 16:15:34,558 - INFO [PurgeTask:[email protected]] - Purge task started.
2016-03-31 16:15:34,565 - INFO [PurgeTask:[email protected]] - Purge task completed.
2016-03-31 16:15:34,566 - INFO [main:[email protected]] - Starting quorum peer
2016-03-31 16:15:34,573 - INFO [main:[email protected]] - binding to port 0.0.0.0/0.0.0.0:2181
2016-03-31 16:15:34,582 - INFO [main:[email protected]] - tickTime set to 2000
2016-03-31 16:15:34,582 - INFO [main:[email protected]] - minSessionTimeout set to -1
2016-03-31 16:15:34,582 - INFO [main:[email protected]] - maxSessionTimeout set to -1
2016-03-31 16:15:34,582 - INFO [main:[email protected]] - initLimit set to 10
2016-03-31 16:15:34,598 - INFO [Thread-2:[email protected]] - My election bind port: sg1.imatiasl.lan/127.0.0.1:3888
2016-03-31 16:15:34,607 - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:[email protected]] - LOOKING
2016-03-31 16:15:34,608 - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:[email protected]] - New election. My id = 1, proposed zxid=0x0
2016-03-31 16:15:34,609 - INFO [WorkerReceiver[myid=1]:[email protected]] - Notification: 1 (message format version), 1 (n.leader), 0x0 (n.zxid), 0x1 (
n.round), LOOKING (n.state), 1 (n.sid), 0x0 (n.peerEpoch) LOOKING (my state)
2016-03-31 16:15:34,612 - WARN [WorkerSender[myid=1]:[email protected]] - Cannot open channel to 2 at election address sg2.imatiasl.lan/10.7.0.93:3888
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:341)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:449)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:430)
at java.lang.Thread.run(Thread.java:745)
2016-03-31 16:15:34,614 - WARN [WorkerSender[myid=1]:[email protected]] - Cannot open channel to 3 at election address sg3.imatiasl.lan/10.7.0.94:3888
java.net.ConnectException: Conexión rehusada
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:341)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:449)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:430)
at java.lang.Thread.run(Thread.java:745)
2016-03-31 16:15:34,812 - WARN [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:[email protected]] - Cannot open channel to 2 at election address sg2.imatiasl.la
n/10.7.0.93:3888
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:404)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:795)
2016-03-31 16:15:34,813 - WARN [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:[email protected]] - Cannot open channel to 3 at election address sg3.imatiasl.la
n/10.7.0.94:3888
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:404)
at org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:840)
at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:795)
2016-03-31 16:15:34,813 - INFO [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:[email protected]] - Notification time out: 400
:
2016-03-31 16:15:35,086 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Accepted socket connection from /10.7.0.93:55914
2016-03-31 16:15:35,130 - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Exception causing close of session 0x0 due to java.io.IOExcep
tion: ZooKeeperServer not running
2016-03-31 16:15:35,130 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Closed socket connection for client /10.7.0.93:55914 (no ses
sion established for client)
それで...
これを修正する方法はありますか?
ありがとう!私はsgXを各sgXの/ etc/hostsに127.0.0.1でバインドしていました(偶然私が覚えていないクラスタ設定中にいくつかの問題を解決するために行った)。 – NotGaeL
私はzookeeperとhbase RegionServerを問題なく起動できますが、HBaseマスターは耐性がありません。 UnicodeDecodeError: 'ascii'コーデックは、位置58のバイト0xc3をデコードできません:範囲内の序数(128) 'checked_call ['curl -sS -L -w'%{http_code} '-X GET' http : 'user': 'hdfs'、 'stderr'://sg1.imatiasl.lan:50070/webhdfs/v1/apps/hbase/data?op = GETFILESTATUS&user.name = hdfs '' {'ログアウト' -1、 'quiet':False} '。私はこれをどのように解決できるか知っていますか? – NotGaeL
(別の質問がここに掲載されました:http://stackoverflow.com/questions/36409105/hbase-master-not-starting-due-to-non-ascii-input-on-restful-api-call-invocation) – NotGaeL