91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Ubuntu16.04安裝zookeeper集群

發布時間:2020-06-23 18:54:42 來源:網絡 閱讀:1387 作者:OpenStack2015 欄目:大數據

http://apache.fayea.com/zookeeper/

root@node1:/usr/local/zookeeper-3.4.9# vim /etc/profile

#Zookeeper Home

export ZOOKEEPER_HOME=/usr/local/zookeeper-3.4.9

export PATH=$PATH:$ZOOKEEPER_HOME/bin

root@node1:/usr/local/zookeeper-3.4.9# mkidr data

root@node1:/usr/local/zookeeper-3.4.9# mkidr logs

root@node1:/usr/local/zookeeper-3.4.9# vim data/myid

1

root@node1:/usr/local/zookeeper-3.4.9# cp conf/zoo_sample.cfg conf/zoo.cfg

root@node1:/usr/local/zookeeper-3.4.9# vim conf/zoo.cfg 

dataDir=/usr/local/zookeeper-3.4.9/data

dataLogDir=/usr/local/zookeeper-3.4.9/logs

# the port at which the clients will connect

clientPort=2181

server.1=192.168.117.34:2888:3888

server.2=192.168.117.40:2888:3888

server.3=192.168.117.38:2888:3888

然后將配置文件復制到其它2個節點

root@node1:/usr/local/zookeeper-3.4.9# zkServer.sh start

ZooKeeper JMX enabled by default

Using config: /usr/local/zookeeper-3.4.9/bin/../conf/zoo.cfg

Starting zookeeper ... STARTED

root@node1:/usr/local/zookeeper-3.4.9# zkServer.sh status

ZooKeeper JMX enabled by default

Using config: /usr/local/zookeeper-3.4.9/bin/../conf/zoo.cfg

Mode: follower

imokroot@node1:/usr/local/zookeeper-3.4.9# netstat -antlp | grep 2181

tcp        0      0 127.0.0.1:38052         127.0.0.1:2181          TIME_WAIT   -               

tcp6       0      0 :::2181                 :::*                    LISTEN      31064/java

root@node2:/usr/local/zookeeper-3.4.9# zkServer.sh start

ZooKeeper JMX enabled by default

Using config: /usr/local/zookeeper-3.4.9/bin/../conf/zoo.cfg

Starting zookeeper ... STARTED

root@node2:/usr/local/zookeeper-3.4.9# zkServer.sh status

ZooKeeper JMX enabled by default

Using config: /usr/local/zookeeper-3.4.9/bin/../conf/zoo.cfg

Mode: leader

root@node3:/usr/local/zookeeper-3.4.9# zkServer.sh start

ZooKeeper JMX enabled by default

Using config: /usr/local/zookeeper-3.4.9/bin/../conf/zoo.cfg

Starting zookeeper ... STARTED

root@node3:/usr/local/zookeeper-3.4.9# zkServer.sh status

ZooKeeper JMX enabled by default

Using config: /usr/local/zookeeper-3.4.9/bin/../conf/zoo.cfg

Mode: follower

連接Zookeeper集群

root@node1:/usr/local/zookeeper-3.4.9# zkCli.sh -server node1

Connecting to node1

2017-07-31 16:54:31,066 [myid:] - INFO  [main:Environment@100] - Client environment:zookeeper.version=3.4.9-1757313, built on 08/23/2016 06:50 GMT

2017-07-31 16:54:31,068 [myid:] - INFO  [main:Environment@100] - Client environment:host.name=node1

2017-07-31 16:54:31,068 [myid:] - INFO  [main:Environment@100] - Client environment:java.version=1.8.0_131

2017-07-31 16:54:31,069 [myid:] - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:java.class.path=/usr/local/zookeeper-3.4.9/bin/../build/classes:/usr/local/zookeeper-3.4.9/bin/../build/lib/*.jar:/usr/local/zookeeper-3.4.9/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/zookeeper-3.4.9/bin/../lib/slf4j-api-1.6.1.jar:/usr/local/zookeeper-3.4.9/bin/../lib/netty-3.10.5.Final.jar:/usr/local/zookeeper-3.4.9/bin/../lib/log4j-1.2.16.jar:/usr/local/zookeeper-3.4.9/bin/../lib/jline-0.9.94.jar:/usr/local/zookeeper-3.4.9/bin/../zookeeper-3.4.9.jar:/usr/local/zookeeper-3.4.9/bin/../src/java/lib/*.jar:/usr/local/zookeeper-3.4.9/bin/../conf:.:/usr/lib/jvm/java-8-openjdk-amd64/lib://usr/lib/jvm/java-8-openjdk-amd64/jre/lib

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:java.library.path=/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64::/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:java.io.tmpdir=/tmp

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:java.compiler=<NA>

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:os.name=Linux

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:os.arch=amd64

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:os.version=4.8.0-36-generic

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:user.name=root

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:user.home=/root

2017-07-31 16:54:31,070 [myid:] - INFO  [main:Environment@100] - Client environment:user.dir=/usr/local/zookeeper-3.4.9

2017-07-31 16:54:31,071 [myid:] - INFO  [main:ZooKeeper@438] - Initiating client connection, connectString=node1 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@22d8cfe0

Welcome to ZooKeeper!

2017-07-31 16:54:31,084 [myid:] - INFO  [main-SendThread(node1:2181):ClientCnxn$SendThread@1032] - Opening socket connection to server node1/192.168.117.34:2181. Will not attempt to authenticate using SASL (unknown error)

JLine support is enabled

2017-07-31 16:54:31,123 [myid:] - INFO  [main-SendThread(node1:2181):ClientCnxn$SendThread@876] - Socket connection established to node1/192.168.117.34:2181, initiating session

[zk: node1(CONNECTING) 0] 2017-07-31 16:54:31,196 [myid:] - INFO  [main-SendThread(node1:2181):ClientCnxn$SendThread@1299] - Session establishment complete on server node1/192.168.117.34:2181, sessionid = 0x15d97c546110000, negotiated timeout = 30000

WATCHER::

WatchedEvent state:SyncConnected type:None path:null

[zk: node1(CONNECTED) 0]


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

拉孜县| 定西市| 泸西县| 美姑县| 蒙自县| 腾冲县| 岚皋县| 和静县| 永宁县| 公安县| 呼伦贝尔市| 平安县| 昭通市| 大同县| 晋州市| 冷水江市| 盘锦市| 奇台县| 南汇区| 定结县| 隆尧县| 镇平县| 兖州市| 镇安县| 关岭| 萨迦县| 安多县| 历史| 黄平县| 黄大仙区| 元氏县| 永嘉县| 兴城市| 女性| 驻马店市| 云梦县| 长治县| 凤翔县| 湖口县| 白银市| 沾化县|