2016-12-26 11 views
1

こんにちは、私はクラスター環境でZookeeperをセットアップしようとしています。Zookeeperでクラスターを設定する

if server.1 is the current node does not have the form host:port 
or host:port:portor host:port:port:type 

しかし、私は、現在のノードがあると思われると信じて:現在のノードすなわち1フォアグラウンド私はエラーを取得しています起動しようとすると

tickTime=2000    # REQUIRED - This will be the basis of timing 

events (milliseconds) 
initLimit=5     # REQUIRED - Amount of ticks in initialization 
syncLimit=2     # REQUIRED - Amount of ticks to determine if node is still connected 
dataDir=/var/lib/zookeeper # REQUIRED - Where to store zookeeper sync data 
clientPort=2181    # REQUIRED - Port which clients connect to 
server.1=0.0.0.0:2888:3888 # or "0.0.0.0:2888:3888" if server.1 is the current node 
server.2=server2host:2888:3888 # or "0.0.0.0:2888:3888" if server.2 is the current node 
server.3=server3host:2888:3888 # or "0.0.0.0:2888:3888" if server.N is the current node 

:このために私はzoo.cfgをしましたOK。 誰かが欠けているものが何であるかを案内できます。

-V

答えて

0

[OK]を私は

tickTime=2000 
initLimit=5 
syncLimit=2 
dataDir=/var/lib/zookeeper 
clientPort=2181 
server.1=0.0.0.0:2888:3888 
server.2=server2host:2888:3888 
server.3=server3host:2888:3888 

作品を修正し、何とかコメントはコメントとして扱わなっていなかったので、起動時にエラーを投げている、それを考え出しました! -Vaibhav

関連する問題