Zookeeper 节点操作,storm 启动

[root@cdh1 zookeeper-3.4.6]# zkServer.sh status
JMX enabled by default
Using config: /user/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Mode: standalone
[root@cdh1 zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3681 Jps
[root@cdh1 zookeeper-3.4.6]# storm nimbus&
[5] 3692
[root@cdh1 zookeeper-3.4.6]# jps


3081 QuorumPeerMain
3693 config_value
3702 Jps
[root@cdh1 zookeeper-3.4.6]# 
[root@cdh1 zookeeper-3.4.6]# 
[root@cdh1 zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3719 config_value
3718 Jps
[root@cdh1 zookeeper-3.4.6]# jps
Running: /user/local/jdk/bin/java -server -Dstorm.options= -Dstorm.home=/user/local/apache-storm-0.9.2-incubating -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /user/local/apache-storm-0.9.2-incubating/lib/zookeeper-3.4.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/json-simple-1.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-fileupload-1.2.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/netty-3.2.2.Final.jar:/user/local/apache-storm-0.9.2-incubating/lib/servlet-api-2.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/jetty-util-6.1.26.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-codec-1.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/logback-classic-1.0.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/guava-13.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/objenesis-1.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/math.numeric-tower-0.0.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/chill-java-0.3.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/carbonite-1.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.logging-0.2.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/jetty-6.1.26.jar:/user/local/apache-storm-0.9.2-incubating/lib/clout-1.0.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/joda-time-2.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/asm-4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/kryo-2.21.jar:/user/local/apache-storm-0.9.2-incubating/lib/minlog-1.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-io-2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/disruptor-2.10.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-logging-1.1.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/servlet-api-2.5-20081211.jar:/user/local/apache-storm-0.9.2-incubating/lib/snakeyaml-1.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/reflectasm-1.07-shaded.jar:/user/local/apache-storm-0.9.2-incubating/lib/clojure-1.5.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-servlet-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.macro-0.1.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/netty-3.6.3.Final.jar:/user/local/apache-storm-0.9.2-incubating/lib/jgrapht-core-0.9.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/httpcore-4.3.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/storm-core-0.9.2-incubating.jar:/user/local/apache-storm-0.9.2-incubating/lib/slf4j-api-1.6.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/jline-2.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.cli-0.2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/curator-client-2.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/compojure-1.1.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-lang-2.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/hiccup-0.3.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/curator-framework-2.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/logback-core-1.0.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/log4j-over-slf4j-1.6.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/clj-time-0.4.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-jetty-adapter-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-devel-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/httpclient-4.3.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-exec-1.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/clj-stacktrace-0.2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-core-1.1.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/core.incubator-0.1.0.jar:/user/local/apache-storm-0.9.2-incubating/conf -Xmx1024m -Dlogfile.name=nimbus.log -Dlogback.configurationFile=/user/local/apache-storm-0.9.2-incubating/logback/cluster.xml backtype.storm.daemon.nimbus
3081 QuorumPeerMain
3737 Jps
[root@cdh1 zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3692 nimbus
3757 Jps
[root@cdh1 zookeeper-3.4.6]# storm supervisor&
[6] 3780
[root@cdh1 zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3692 nimbus
3791 Jps
[root@cdh1 zookeeper-3.4.6]# Running: /user/local/jdk/bin/java -server -Dstorm.options= -Dstorm.home=/user/local/apache-storm-0.9.2-incubating -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /user/local/apache-storm-0.9.2-incubating/lib/zookeeper-3.4.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/json-simple-1.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-fileupload-1.2.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/netty-3.2.2.Final.jar:/user/local/apache-storm-0.9.2-incubating/lib/servlet-api-2.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/jetty-util-6.1.26.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-codec-1.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/logback-classic-1.0.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/guava-13.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/objenesis-1.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/math.numeric-tower-0.0.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/chill-java-0.3.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/carbonite-1.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.logging-0.2.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/jetty-6.1.26.jar:/user/local/apache-storm-0.9.2-incubating/lib/clout-1.0.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/joda-time-2.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/asm-4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/kryo-2.21.jar:/user/local/apache-storm-0.9.2-incubating/lib/minlog-1.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-io-2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/disruptor-2.10.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-logging-1.1.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/servlet-api-2.5-20081211.jar:/user/local/apache-storm-0.9.2-incubating/lib/snakeyaml-1.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/reflectasm-1.07-shaded.jar:/user/local/apache-storm-0.9.2-incubating/lib/clojure-1.5.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-servlet-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.macro-0.1.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/netty-3.6.3.Final.jar:/user/local/apache-storm-0.9.2-incubating/lib/jgrapht-core-0.9.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/httpcore-4.3.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/storm-core-0.9.2-incubating.jar:/user/local/apache-storm-0.9.2-incubating/lib/slf4j-api-1.6.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/jline-2.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.cli-0.2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/curator-client-2.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/compojure-1.1.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-lang-2.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/hiccup-0.3.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/curator-framework-2.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/logback-core-1.0.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/log4j-over-slf4j-1.6.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/clj-time-0.4.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-jetty-adapter-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-devel-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/httpclient-4.3.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-exec-1.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/clj-stacktrace-0.2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-core-1.1.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/core.incubator-0.1.0.jar:/user/local/apache-storm-0.9.2-incubating/conf -Xmx256m -Dlogfile.name=supervisor.log -Dlogback.configurationFile=/user/local/apache-storm-0.9.2-incubating/logback/cluster.xml backtype.storm.daemon.supervisor
^C
[root@cdh1 zookeeper-3.4.6]# jps

3081 QuorumPeerMain
3780 supervisor
3692 nimbus
3835 Jps
[root@cdh1 zookeeper-3.4.6]# 
[root@cdh1 zookeeper-3.4.6]# storm ui&
[7] 3845
[root@cdh1 zookeeper-3.4.6]# jps
^Z
[8]+  Stopped                 jps
[root@cdh1 zookeeper-3.4.6]# ^C
[root@cdh1 zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3855 Jps
3867 Jps
3780 supervisor
3692 nimbus
3873 config_value
[root@cdh1 zookeeper-3.4.6]# jps

3081 QuorumPeerMain
3855 Jps
3780 supervisor
3692 nimbus
3889 Jps
3873 config_value
[root@cdh1 zookeeper-3.4.6]# 
[root@cdh1 zookeeper-3.4.6]# Running: /user/local/jdk/bin/java -server -Dstorm.options= -Dstorm.home=/user/local/apache-storm-0.9.2-incubating -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /user/local/apache-storm-0.9.2-incubating/lib/zookeeper-3.4.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/json-simple-1.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-fileupload-1.2.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/netty-3.2.2.Final.jar:/user/local/apache-storm-0.9.2-incubating/lib/servlet-api-2.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/jetty-util-6.1.26.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-codec-1.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/logback-classic-1.0.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/guava-13.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/objenesis-1.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/math.numeric-tower-0.0.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/chill-java-0.3.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/carbonite-1.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.logging-0.2.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/jetty-6.1.26.jar:/user/local/apache-storm-0.9.2-incubating/lib/clout-1.0.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/joda-time-2.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/asm-4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/kryo-2.21.jar:/user/local/apache-storm-0.9.2-incubating/lib/minlog-1.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-io-2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/disruptor-2.10.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-logging-1.1.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/servlet-api-2.5-20081211.jar:/user/local/apache-storm-0.9.2-incubating/lib/snakeyaml-1.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/reflectasm-1.07-shaded.jar:/user/local/apache-storm-0.9.2-incubating/lib/clojure-1.5.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-servlet-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.macro-0.1.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/netty-3.6.3.Final.jar:/user/local/apache-storm-0.9.2-incubating/lib/jgrapht-core-0.9.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/httpcore-4.3.2.jar:/user/local/apache-storm-0.9.2-incubating/lib/storm-core-0.9.2-incubating.jar:/user/local/apache-storm-0.9.2-incubating/lib/slf4j-api-1.6.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/jline-2.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/tools.cli-0.2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/curator-client-2.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/compojure-1.1.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-lang-2.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/hiccup-0.3.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/curator-framework-2.4.0.jar:/user/local/apache-storm-0.9.2-incubating/lib/logback-core-1.0.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/log4j-over-slf4j-1.6.6.jar:/user/local/apache-storm-0.9.2-incubating/lib/clj-time-0.4.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-jetty-adapter-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-devel-0.3.11.jar:/user/local/apache-storm-0.9.2-incubating/lib/httpclient-4.3.3.jar:/user/local/apache-storm-0.9.2-incubating/lib/commons-exec-1.1.jar:/user/local/apache-storm-0.9.2-incubating/lib/clj-stacktrace-0.2.4.jar:/user/local/apache-storm-0.9.2-incubating/lib/ring-core-1.1.5.jar:/user/local/apache-storm-0.9.2-incubating/lib/core.incubator-0.1.0.jar:/user/local/apache-storm-0.9.2-incubating:/user/local/apache-storm-0.9.2-incubating/conf -Xmx768m -Dlogfile.name=ui.log -Dlogback.configurationFile=/user/local/apache-storm-0.9.2-incubating/logback/cluster.xml backtype.storm.ui.core
^C
[root@cdh1 zookeeper-3.4.6]# jps
3914 Jps
3081 QuorumPeerMain
3855 Jps
3780 supervisor
3692 nimbus
3845 core
[root@cdh1 zookeeper-3.4.6]# zkCli.sh
Connecting to localhost:2181
2016-06-28 06:05:48,281 [myid:] - INFO  [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-28 06:05:48,284 [myid:] - INFO  [main:Environment@100] - Client environment:host.name=cdh1
2016-06-28 06:05:48,284 [myid:] - INFO  [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-28 06:05:48,287 [myid:] - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-28 06:05:48,287 [myid:] - INFO  [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-28 06:05:48,287 [myid:] - INFO  [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6/bin/../build/classes:/user/local/zookeeper-3.4.6/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-28 06:05:48,287 [myid:] - INFO  [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-28 06:05:48,287 [myid:] - INFO  [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-28 06:05:48,287 [myid:] - INFO  [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-28 06:05:48,290 [myid:] - INFO  [main:Environment@100] - Client environment:os.name=Linux
2016-06-28 06:05:48,290 [myid:] - INFO  [main:Environment@100] - Client environment:os.arch=i386
2016-06-28 06:05:48,297 [myid:] - INFO  [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-28 06:05:48,297 [myid:] - INFO  [main:Environment@100] - Client environment:user.name=root
2016-06-28 06:05:48,297 [myid:] - INFO  [main:Environment@100] - Client environment:user.home=/root
2016-06-28 06:05:48,297 [myid:] - INFO  [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-bak
2016-06-28 06:05:48,311 [myid:] - INFO  [main:ZooKeeper@438] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@e13c84
Welcome to ZooKeeper!
2016-06-28 06:05:48,463 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@975] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
JLine support is enabled
2016-06-28 06:05:48,532 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@852] - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
2016-06-28 06:05:48,585 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1235] - Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x15596acc2aa0004, negotiated timeout = 30000

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] 
[9]+  Stopped                 zkCli.sh
[root@cdh1 zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3855 Jps
4033 ZooKeeperMain
3780 supervisor
3692 nimbus
3845 core
4060 Jps
[root@cdh1 zookeeper-3.4.6]# cd ..
[root@cdh1 local]# ls -l
total 228120
drwxr-xr-x 11 root   root        4096 Jun 28 05:50 apache-storm-0.9.2-incubating
-rwxr-xr-x  1 root   root    20077564 Jun 28 02:29 apache-storm-0.9.2-incubating.tar.gz
drwxr-xr-x 10 root   root        4096 Jun 16 16:19 hadoop-2.6.0
-rw-r--r--  1 root   root   180047399 Jun 16 15:38 hadoop-2.6.0.tar.gz
drwxr-xr-x  9 root   root        4096 Jun 27 08:40 hbase-0.98.20-hadoop2
drwxr-xr-x  8 root   root        4096 Jun 16 02:50 jdk
drwxr-xr-x 10 root   root        4096 Jun 27 23:49 jzmq
drwxr-x--- 18   1000   1002      4096 Jun 27 23:56 Python-2.7.2
-rw-r--r--  1 root   root    14091337 Jun 11  2011 Python-2.7.2.tgz
drwxr-xr-x  8    119    129      4096 Jun 17 08:35 scala-2.9.3
drwxr-xr-x 13 hadoop hadoop      4096 Jun 17 09:03 spark-1.4.0-bin-hadoop2.6
drwxr-xr-x  2 root   root        4096 Jun 27 19:33 src_old
drwxrwxr-x 11   1000   1000      4096 Jun 27 23:44 zeromq-4.1.2
-rwxr-xr-x  1 root   root     1367275 Jun 27 23:22 zeromq-4.1.2.tar.gz
drwxr-xr-x 11   1000   1000      4096 Jun 28 03:56 zookeeper-3.4.6
-rwxr-xr-x  1 root   root    17699306 Jun 27 23:22 zookeeper-3.4.6.tar.gz
drwxr-xr-x 11   1000   1000      4096 Jun 28 02:52 zookeeper-bak
[root@cdh1 local]# rm zookeeper-bak/
rm: cannot remove `zookeeper-bak/': Is a directory
[root@cdh1 local]# rm -r zookeeper-bak/
rm: descend into directory `zookeeper-bak'? 
[root@cdh1 local]# ls -l
total 228120
drwxr-xr-x 11 root   root        4096 Jun 28 05:50 apache-storm-0.9.2-incubating
-rwxr-xr-x  1 root   root    20077564 Jun 28 02:29 apache-storm-0.9.2-incubating.tar.gz
drwxr-xr-x 10 root   root        4096 Jun 16 16:19 hadoop-2.6.0
-rw-r--r--  1 root   root   180047399 Jun 16 15:38 hadoop-2.6.0.tar.gz
drwxr-xr-x  9 root   root        4096 Jun 27 08:40 hbase-0.98.20-hadoop2
drwxr-xr-x  8 root   root        4096 Jun 16 02:50 jdk
drwxr-xr-x 10 root   root        4096 Jun 27 23:49 jzmq
drwxr-x--- 18   1000   1002      4096 Jun 27 23:56 Python-2.7.2
-rw-r--r--  1 root   root    14091337 Jun 11  2011 Python-2.7.2.tgz
drwxr-xr-x  8    119    129      4096 Jun 17 08:35 scala-2.9.3
drwxr-xr-x 13 hadoop hadoop      4096 Jun 17 09:03 spark-1.4.0-bin-hadoop2.6
drwxr-xr-x  2 root   root        4096 Jun 27 19:33 src_old
drwxrwxr-x 11   1000   1000      4096 Jun 27 23:44 zeromq-4.1.2
-rwxr-xr-x  1 root   root     1367275 Jun 27 23:22 zeromq-4.1.2.tar.gz
drwxr-xr-x 11   1000   1000      4096 Jun 28 03:56 zookeeper-3.4.6
-rwxr-xr-x  1 root   root    17699306 Jun 27 23:22 zookeeper-3.4.6.tar.gz
drwxr-xr-x 11   1000   1000      4096 Jun 28 02:52 zookeeper-bak
[root@cdh1 local]# rm -rf zookeeper-bak/
[root@cdh1 local]# ls -l
total 228116
drwxr-xr-x 11 root   root        4096 Jun 28 05:50 apache-storm-0.9.2-incubating
-rwxr-xr-x  1 root   root    20077564 Jun 28 02:29 apache-storm-0.9.2-incubating.tar.gz
drwxr-xr-x 10 root   root        4096 Jun 16 16:19 hadoop-2.6.0
-rw-r--r--  1 root   root   180047399 Jun 16 15:38 hadoop-2.6.0.tar.gz
drwxr-xr-x  9 root   root        4096 Jun 27 08:40 hbase-0.98.20-hadoop2
drwxr-xr-x  8 root   root        4096 Jun 16 02:50 jdk
drwxr-xr-x 10 root   root        4096 Jun 27 23:49 jzmq
drwxr-x--- 18   1000   1002      4096 Jun 27 23:56 Python-2.7.2
-rw-r--r--  1 root   root    14091337 Jun 11  2011 Python-2.7.2.tgz
drwxr-xr-x  8    119    129      4096 Jun 17 08:35 scala-2.9.3
drwxr-xr-x 13 hadoop hadoop      4096 Jun 17 09:03 spark-1.4.0-bin-hadoop2.6
drwxr-xr-x  2 root   root        4096 Jun 27 19:33 src_old
drwxrwxr-x 11   1000   1000      4096 Jun 27 23:44 zeromq-4.1.2
-rwxr-xr-x  1 root   root     1367275 Jun 27 23:22 zeromq-4.1.2.tar.gz
drwxr-xr-x 11   1000   1000      4096 Jun 28 03:56 zookeeper-3.4.6
-rwxr-xr-x  1 root   root    17699306 Jun 27 23:22 zookeeper-3.4.6.tar.gz
[root@cdh1 local]# cd -
/user/local/zookeeper-3.4.6
[root@cdh1 zookeeper-3.4.6]# ls -l
total 1568
drwxr-xr-x  2 1000 1000    4096 Feb 20  2014 bin
-rw-rw-r--  1 1000 1000   82446 Feb 20  2014 build.xml
-rw-rw-r--  1 1000 1000   80776 Feb 20  2014 CHANGES.txt
drwxr-xr-x  2 1000 1000    4096 Jun 28 03:58 conf
drwxr-xr-x 10 1000 1000    4096 Feb 20  2014 contrib
drwxr-xr-x  3 root root    4096 Jun 28 04:02 data
drwxr-xr-x  2 1000 1000    4096 Feb 20  2014 dist-maven
drwxr-xr-x  6 1000 1000    4096 Feb 20  2014 docs
-rw-rw-r--  1 1000 1000    1953 Feb 20  2014 ivysettings.xml
-rw-rw-r--  1 1000 1000    3375 Feb 20  2014 ivy.xml
drwxr-xr-x  4 1000 1000    4096 Feb 20  2014 lib
-rw-rw-r--  1 1000 1000   11358 Feb 20  2014 LICENSE.txt
-rw-rw-r--  1 1000 1000     170 Feb 20  2014 NOTICE.txt
-rw-rw-r--  1 1000 1000    1770 Feb 20  2014 README_packaging.txt
-rw-rw-r--  1 1000 1000    1585 Feb 20  2014 README.txt
drwxr-xr-x  5 1000 1000    4096 Feb 20  2014 recipes
drwxr-xr-x  8 1000 1000    4096 Feb 20  2014 src
-rw-rw-r--  1 1000 1000 1340305 Feb 20  2014 zookeeper-3.4.6.jar
-rw-rw-r--  1 1000 1000     836 Feb 20  2014 zookeeper-3.4.6.jar.asc
-rw-rw-r--  1 1000 1000      33 Feb 20  2014 zookeeper-3.4.6.jar.md5
-rw-rw-r--  1 1000 1000      41 Feb 20  2014 zookeeper-3.4.6.jar.sha1
[root@cdh1 zookeeper-3.4.6]# zkCli.sh -server 127.0.0.1:2181
Connecting to 127.0.0.1:2181
2016-06-28 06:09:45,728 [myid:] - INFO  [main:Environment@100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2016-06-28 06:09:45,841 [myid:] - INFO  [main:Environment@100] - Client environment:host.name=cdh1
2016-06-28 06:09:45,842 [myid:] - INFO  [main:Environment@100] - Client environment:java.version=1.7.0_67
2016-06-28 06:09:45,854 [myid:] - INFO  [main:Environment@100] - Client environment:java.vendor=Oracle Corporation
2016-06-28 06:09:45,854 [myid:] - INFO  [main:Environment@100] - Client environment:java.home=/user/local/jdk/jre
2016-06-28 06:09:45,854 [myid:] - INFO  [main:Environment@100] - Client environment:java.class.path=/user/local/zookeeper-3.4.6/bin/../build/classes:/user/local/zookeeper-3.4.6/bin/../build/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/user/local/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/user/local/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/user/local/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/user/local/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/user/local/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/user/local/zookeeper-3.4.6/bin/../conf:.:/user/local/jdk/lib:/user/local/jdk/jre/lib
2016-06-28 06:09:45,855 [myid:] - INFO  [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-28 06:09:45,855 [myid:] - INFO  [main:Environment@100] - Client environment:java.io.tmpdir=/tmp
2016-06-28 06:09:45,855 [myid:] - INFO  [main:Environment@100] - Client environment:java.compiler=<NA>
2016-06-28 06:09:45,858 [myid:] - INFO  [main:Environment@100] - Client environment:os.name=Linux
2016-06-28 06:09:45,859 [myid:] - INFO  [main:Environment@100] - Client environment:os.arch=i386
2016-06-28 06:09:45,859 [myid:] - INFO  [main:Environment@100] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-28 06:09:45,859 [myid:] - INFO  [main:Environment@100] - Client environment:user.name=root
2016-06-28 06:09:45,859 [myid:] - INFO  [main:Environment@100] - Client environment:user.home=/root
2016-06-28 06:09:45,859 [myid:] - INFO  [main:Environment@100] - Client environment:user.dir=/user/local/zookeeper-3.4.6
2016-06-28 06:09:45,949 [myid:] - INFO  [main:ZooKeeper@438] - Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@14c1313
Welcome to ZooKeeper!
2016-06-28 06:09:46,491 [myid:] - INFO  [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@975] - Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2016-06-28 06:09:46,572 [myid:] - INFO  [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@852] - Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session
2016-06-28 06:09:46,843 [myid:] - INFO  [main-SendThread(127.0.0.1:2181):ClientCnxn$SendThread@1235] - Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x15596acc2aa0005, negotiated timeout = 30000

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
JLine support is enabled
[zk: 127.0.0.1:2181(CONNECTED) 0] ls
[zk: 127.0.0.1:2181(CONNECTED) 1] ls /
[storm, zookeeper]
[zk: 127.0.0.1:2181(CONNECTED) 2] create /mykey1 myvalue1
Created /mykey1
[zk: 127.0.0.1:2181(CONNECTED) 3] ls /
[mykey1, storm, zookeeper]
[zk: 127.0.0.1:2181(CONNECTED) 4] create /mykey2 myvalue2
Created /mykey2
[zk: 127.0.0.1:2181(CONNECTED) 5] ls /
[mykey1, storm, mykey2, zookeeper]
[zk: 127.0.0.1:2181(CONNECTED) 6] get /mykey1
myvalue1
cZxid = 0xfa
ctime = Tue Jun 28 06:10:59 PDT 2016
mZxid = 0xfa
mtime = Tue Jun 28 06:10:59 PDT 2016
pZxid = 0xfa
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 8
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 7] get /mykey2
myvalue2
cZxid = 0xfe
ctime = Tue Jun 28 06:11:15 PDT 2016
mZxid = 0xfe
mtime = Tue Jun 28 06:11:15 PDT 2016
pZxid = 0xfe
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 8
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 8] set /mykey1 myvalue11
cZxid = 0xfa
ctime = Tue Jun 28 06:10:59 PDT 2016
mZxid = 0x10a
mtime = Tue Jun 28 06:12:10 PDT 2016
pZxid = 0xfa
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 9] get /mykey1          
myvalue11
cZxid = 0xfa
ctime = Tue Jun 28 06:10:59 PDT 2016
mZxid = 0x10a
mtime = Tue Jun 28 06:12:10 PDT 2016
pZxid = 0xfa
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 10] set /mykey2 myvalue22
cZxid = 0xfe
ctime = Tue Jun 28 06:11:15 PDT 2016
mZxid = 0x10e
mtime = Tue Jun 28 06:12:25 PDT 2016
pZxid = 0xfe
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 11] get /mykey2          
myvalue22
cZxid = 0xfe
ctime = Tue Jun 28 06:11:15 PDT 2016
mZxid = 0x10e
mtime = Tue Jun 28 06:12:25 PDT 2016
pZxid = 0xfe
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 12] get /mykey1          
myvalue11
cZxid = 0xfa
ctime = Tue Jun 28 06:10:59 PDT 2016
mZxid = 0x10a
mtime = Tue Jun 28 06:12:10 PDT 2016
pZxid = 0xfa
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 13] get /mykey2
myvalue22
cZxid = 0xfe
ctime = Tue Jun 28 06:11:15 PDT 2016
mZxid = 0x10e
mtime = Tue Jun 28 06:12:25 PDT 2016
pZxid = 0xfe
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 14] set /mykey1
[zk: 127.0.0.1:2181(CONNECTED) 15] get /mykey1
myvalue11
cZxid = 0xfa
ctime = Tue Jun 28 06:10:59 PDT 2016
mZxid = 0x10a
mtime = Tue Jun 28 06:12:10 PDT 2016
pZxid = 0xfa
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 16] get /mykey1
myvalue11
cZxid = 0xfa
ctime = Tue Jun 28 06:10:59 PDT 2016
mZxid = 0x10a
mtime = Tue Jun 28 06:12:10 PDT 2016
pZxid = 0xfa
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 9
numChildren = 0
[zk: 127.0.0.1:2181(CONNECTED) 17] delete /mykey1
[zk: 127.0.0.1:2181(CONNECTED) 18] get /mykey1   
Node does not exist: /mykey1
[zk: 127.0.0.1:2181(CONNECTED) 19]  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

5icode.top

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值