1. 程式人生 > >zookeeper 基本命令 quit 退出客戶端

zookeeper 基本命令 quit 退出客戶端

[[email protected] zookeeper-3.4.6]# cd -
/usr/local/zookeeper/zookeeper-3.4.6/bin
[[email protected] bin]# ls -l
total 36
-rwxr-xr-x 1 1000 1000  238 Feb 20  2014 README.txt
-rwxr-xr-x 1 1000 1000 1937 Feb 20  2014 zkCleanup.sh
-rwxr-xr-x 1 1000 1000 1049 Feb 20  2014 zkCli.cmd
-rwxr-xr-x 1 1000 1000 1534 Feb 20  2014 zkCli.sh
-rwxr-xr-x 1 1000 1000 1333 Feb 20  2014 zkEnv.cmd
-rwxr-xr-x 1 1000 1000 2696 Feb 20  2014 zkEnv.sh
-rwxr-xr-x 1 1000 1000 1084 Feb 20  2014 zkServer.cmd
-rwxr-xr-x 1 1000 1000 5742 Feb 20  2014 zkServer.sh
[
[email protected]
bin]# pwd /usr/local/zookeeper/zookeeper-3.4.6/bin [[email protected] bin]# vi zkEnv.sh [[email protected] bin]# zkServer.sh start JMX enabled by default Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg Starting zookeeper ... STARTED [[email protected] bin]# jps 18433 Master 17602 DataNode 17926 ResourceManager 17513 NameNode 19322 SparkSubmit 17724 SecondaryNameNode 26062 QuorumPeerMain 26078 Jps 18015 NodeManager [
[email protected]
bin]# jps 18433 Master 17602 DataNode 17926 ResourceManager 17513 NameNode 19322 SparkSubmit 17724 SecondaryNameNode 26062 QuorumPeerMain 26126 Jps 18015 NodeManager [[email protected] bin]# [[email protected] bin]# [[email protected] bin]# zkServer.sh status JMX enabled by default Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg Mode: standalone [
[email protected]
bin]# zkCli.sh Connecting to localhost:2181 2016-06-12 18:06:04,162 [myid:] - INFO [main:[email protected]] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT 2016-06-12 18:06:04,180 [myid:] - INFO [main:[email protected]] - Client environment:host.name=localhost 2016-06-12 18:06:04,180 [myid:] - INFO [main:[email protected]] - Client environment:java.version=1.8.0_20 2016-06-12 18:06:04,183 [myid:] - INFO [main:[email protected]] - Client environment:java.vendor=Oracle Corporation 2016-06-12 18:06:04,183 [myid:] - INFO [main:[email protected]] - Client environment:java.home=/usr/local/jdk/jre 2016-06-12 18:06:04,183 [myid:] - INFO [main:[email protected]] - Client environment:java.class.path=/usr/local/zookeeper/zookeeper-3.4.6/bin/../build/classes:/usr/local/zookeeper/zookeeper-3.4.6/bin/../build/lib/*.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/usr/local/zookeeper/zookeeper-3.4.6/bin/../conf: 2016-06-12 18:06:04,183 [myid:] - INFO [main:[email protected]] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib 2016-06-12 18:06:04,184 [myid:] - INFO [main:[email protected]] - Client environment:java.io.tmpdir=/tmp 2016-06-12 18:06:04,186 [myid:] - INFO [main:[email protected]] - Client environment:java.compiler=<NA> 2016-06-12 18:06:04,187 [myid:] - INFO [main:[email protected]] - Client environment:os.name=Linux 2016-06-12 18:06:04,187 [myid:] - INFO [main:[email protected]] - Client environment:os.arch=i386 2016-06-12 18:06:04,187 [myid:] - INFO [main:[email protected]] - Client environment:os.version=2.6.32-358.el6.i686 2016-06-12 18:06:04,187 [myid:] - INFO [main:[email protected]] - Client environment:user.name=root 2016-06-12 18:06:04,188 [myid:] - INFO [main:[email protected]] - Client environment:user.home=/root 2016-06-12 18:06:04,188 [myid:] - INFO [main:[email protected]] - Client environment:user.dir=/usr/local/zookeeper/zookeeper-3.4.6/bin 2016-06-12 18:06:04,191 [myid:] - INFO [main:[email protected]] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 [email protected] Welcome to ZooKeeper! 2016-06-12 18:06:04,272 [myid:] - INFO [main-SendThread(localhost:2181):[email protected]] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) JLine support is enabled [zk: localhost:2181(CONNECTING) 0] 2016-06-12 18:06:04,461 [myid:] - INFO [main-SendThread(localhost:2181):[email protected]] - Socket connection established to localhost/127.0.0.1:2181, initiating session 2016-06-12 18:06:04,508 [myid:] - INFO [main-SendThread(localhost:2181):[email protected]] - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x15547453b750000, negotiated timeout = 30000 WATCHER:: WatchedEvent state:SyncConnected type:None path:null [zk: localhost:2181(CONNECTED) 0] [zk: localhost:2181(CONNECTED) 0] [zk: localhost:2181(CONNECTED) 0] zkServer.sh stop ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 1] jps ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 2] jps ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 3] zkServer.sh stop ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 4] quit; ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 5] zkServer.sh quit ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 6] help ZooKeeper -server host:port cmd args stat path [watch] set path data [version] ls path [watch] delquota [-n|-b] path ls2 path [watch] setAcl path acl setquota -n|-b val path history redo cmdno printwatches on|off delete path [version] sync path listquota path rmr path get path [watch] create [-s] [-e] path data acl addauth scheme auth quit getAcl path close connect host:port [zk: localhost:2181(CONNECTED) 7] quit Quitting... 2016-06-12 18:10:29,234 [myid:] - INFO [main-EventThread:[email protected]] - EventThread shut down 2016-06-12 18:10:29,234 [myid:] - INFO [main:[email protected]] - Session: 0x15547453b750000 closed [[email protected] bin]# zkServer.sh status JMX enabled by default Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg Mode: standalone [[email protected] bin]# jps 18433 Master 17602 DataNode 17926 ResourceManager 26249 Jps 17513 NameNode 19322 SparkSubmit 17724 SecondaryNameNode 26062 QuorumPeerMain 18015 NodeManager [[email protected] bin]# zkServer.sh status JMX enabled by default Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg Mode: standalone [[email protected] bin]# zkServer.sh stop JMX enabled by default Using config: /usr/local/zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg Stopping zookeeper ... STOPPED [[email protected] bin]# jps 18433 Master 17602 DataNode 17926 ResourceManager 17513 NameNode 19322 SparkSubmit 17724 SecondaryNameNode 26302 Jps 18015 NodeManager [[email protected] bin]#

相關推薦

zookeeper 基本命令 quit 退出客戶

[[email protected] zookeeper-3.4.6]# cd - /usr/local/zookeeper/zookeeper-3.4.6/bin [[email protected] bin]# ls -l total 36 -rwx

zookeeper基本特性及linux客戶操作

1. session的基本原理 客戶端與服務端之間的連線存在會話 每個會話都會可以設定一個超時時間 心跳結束,session過期 session過期,則臨時節點znode會被拋棄 心跳機制:客戶端向服務端的ping包請求 2. zk常用命令列操作

zookeeper的選舉機制及客戶命令

選舉機制 首先給自己一票 注意事項 只要有半數以上的節點存活就能正常工作 如何保證半數以上的存活? 配置zk叢集要配置奇樹臺 偶數個跟奇數個叢集的宕機容忍度相同,所以偶數個屬於浪費資源 zookeeper客戶端命令列 1、啟動客戶端 zkCli.sh 2、檢視幫

HDFS基本操作(命令列和客戶)

一、命令列操作 1.顯示目錄資訊: [[email protected] hadoop-2.6.5]# hadoop fs -ls / [root@hadoop001 hadoop-2.6.5]# hadoop fs -ls /

exportfs命令,NFS客戶問題,FTP介紹,使用vsftp搭建ftp

nfs ftp exportfs vsftp 筆記內容:14.4 exportfs命令14.5 NFS客戶端問題15.1 FTP介紹15.2/15.3 使用vsftpd搭建ftp筆記日期:14.4 exportfs命令這個exportfs命令會在安裝nfs-util包時一起安裝,當服務端需要停

exportfs命令、NFS客戶問題、FTP介紹、使用vsftpd搭建ftp

進入 transfer 登錄系統 ble hash ef7 txt png security exportfs命令 加入我們之前已經配置了nfs的共享目錄,之後要增加更改或增加共享目錄,我們

exportfs命令、NFS客戶問題、FTP介紹、使用vsftpd搭建ftp服務

奇數 嚴重 lib64 filezilla 文件中 屬組 int 服務器程序 ftp服務器 exportfs命令 exportfs命令用來管理當前NFS共享的文件系統列表。 常用選項 -a:全部卸載或全部掛載 -r:重新掛載 -u:卸載某個目錄 -v:顯示共享目錄

NFS(expirtfs命令,NFS客戶創建新文件所屬組和所屬主都為nobody)

mar tfs 依然 我們 重啟 此刻 otto 全部 用戶 一、exportfs命令nfs進程不能隨便從新啟動,如果不得已要重啟,必須把客戶端的掛載目錄卸載,然後在從新啟動。這時候就可以用exportfs命令-a 全部掛載或者全部卸載-r

nfs下的exportfs命令和nfs客戶重新掛載

exportfs nfs remount mount nfs4 工作中,如果使用了nfs服務器,會遇到修改nfs服務器配置的情況,如果想重新讓客戶端加載上修改後的配置,但是又不能重啟rpcbind服務,我們需要使用export命令了 exportfs命令 常用選項 -a 全部掛載或者全部卸

14.4exportfs命令14.5NFS客戶問題15.1FTP介紹 使用vsftpd搭建ftp

十四周二次課(3月27日)14.4 exportfs命令在服務器上運行了exportfs -arv然後在客戶端showmount -e 192.168.133.130查看是否連接14.5 NFS客戶端問題在centos6就會有以上的情況mount -t nfs -o nfsers=3 192.168.137.

NFS(1)NFS介紹、 NFS服務安裝配置、配置選項、exportfs命令、NFS客戶問題

NFS服務端安裝配置 NFS介紹NFS服務常常用到,用於在網絡上共享存儲NFS工作原理(在centos版本5及之前的版本,RPC服務叫portmap,之後就叫:rpcbind)NFS服務需要借助RPC協議進行通信。 NFS服務端安裝配置先準

五十五、exportfs命令、NFS客戶問題

exportfs命令 NFS客戶端問題 五十五、exportfs命令、NFS客戶端問題一、exportfs命令這個命令是和nfs-utils一起安裝的。NFS服務不能隨便重啟,要想重啟,要先把其他共享機器上的掛載的目錄卸載下來,或者使用exportfs命令。常用選項 -a 全部掛載或者全部卸載 -r

Zookeeper詳解(四):Zookeeper中的zkCli.sh客戶使用

zkCli.sh zookeeper客戶端 最好配置上環境變量連接操作:zkCli.sh -timeout 1000 -r -server 127.0.0.1 # -timeout 設置客戶端和服務器之間的超時時長,單位毫秒 # -r 只讀模式,不加就是讀寫模式 # -server IP:PORT 要

NFS相關、NFS服務安裝配置、exportfs命令、nfs客戶的問題

技術分享 創建 NFS客戶端問題 nfs服務 sdi 解釋 ima span 技術 1、NFS (network file system,基於RPC協議) 2、NFS服務端安裝配置安裝服務端:yum install nfs-utils rpcbind -y安裝客戶端:yum

Zookeeper學習(三) 客戶和原生API

safe ima call proc string 過程 心跳 current catch 前言 在這篇博客裏我會主要總結下兩個部分的操作: 在安裝ZooKeeper的機器上利用ZKClient連接Zookeeper的集群,然後利用相應的命令做一些簡單的操作。相信很多沒有

54次課(exportfs命令、NFS客戶問題、FTP介紹、使用vsftpd搭建ftp)

cto nfs配置文件 客戶端 哪裏 color port 計算 允許 pri exportfs命令 exportfs命令可以添加共享目錄不用重啟nfs服務, 測試:首先更改服務器端的nfs配置文件 [root@100xuni1 ~]# vim /etc/expor

exportfs命令、NFS客戶問題、使用vsftpd搭建ftp

bad 包安裝 smb file linux man secure rtu 登陸 排障 一:exportfs命令 常用選項為[-aruv] -a :全部掛載或者卸載 -r :重新掛載 -u :卸載某一個目錄 -v :顯示共享的目錄 使用exportfs命令,當改變/etc/

ZooKeeper(四)-- 第三方客戶 ZkClient的使用

實現 kafka int java pid () config obj 9.1 前言   zkClient主要做了兩件事情:     一件是在session loss和session expire時自動創建新的ZooKeeper實例進行重連。     另一件是將一次性wat

Oracle數據庫之體系結構詳解,基本操作管理及客戶遠程連接

plus down 緩沖區 擴展名 應用 提交 normal 系統 等待 上一篇文章《Oracle Database 12c安裝》講解了如何安裝oracle數據庫,這篇文章繼續講解數據庫的體系結構,基本操作管理及客戶端遠程連接Oracle的體系結構 Oracle數據庫由兩部

zookeeper 基本命令和java api

1.Zookeeper命令工具 啟動zookeeper服務後,連線到zookeeper服務: zkServer -server localhost:2181 執行結果如下: Connecting to localhost:2181 2018-06-10 03:5