Zookeeper 節點操作,storm 啟動
[[email protected] 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
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3681 Jps
[[email protected] zookeeper-3.4.6]# storm nimbus&
[5] 3692
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3693 config_value
3702 Jps
[[email protected] zookeeper-3.4.6]#
[[email protected] zookeeper-3.4.6]#
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3719 config_value
3718 Jps
[[email protected] 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
[ [email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3692 nimbus
3757 Jps
[[email protected] zookeeper-3.4.6]# storm supervisor&
[6] 3780
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3692 nimbus
3791 Jps
[[email protected] 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
[ [email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3780 supervisor
3692 nimbus
3835 Jps
[[email protected] zookeeper-3.4.6]#
[[email protected] zookeeper-3.4.6]# storm ui&
[7] 3845
[[email protected] zookeeper-3.4.6]# jps
^Z
[8]+ Stopped jps
[[email protected] zookeeper-3.4.6]# ^C
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3855 Jps
3867 Jps
3780 supervisor
3692 nimbus
3873 config_value
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3855 Jps
3780 supervisor
3692 nimbus
3889 Jps
3873 config_value
[[email protected] zookeeper-3.4.6]#
[[email protected] 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
[[email protected] zookeeper-3.4.6]# jps
3914 Jps
3081 QuorumPeerMain
3855 Jps
3780 supervisor
3692 nimbus
3845 core
[[email protected] zookeeper-3.4.6]# zkCli.sh
Connecting to localhost:2181
2016-06-28 06:05:48,281 [myid:] - INFO [main:[email protected]] - 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:[email protected]] - Client environment:host.name=cdh1
2016-06-28 06:05:48,284 [myid:] - INFO [main:[email protected]] - Client environment:java.version=1.7.0_67
2016-06-28 06:05:48,287 [myid:] - INFO [main:[email protected]] - Client environment:java.vendor=Oracle Corporation
2016-06-28 06:05:48,287 [myid:] - INFO [main:[email protected]] - Client environment:java.home=/user/local/jdk/jre
2016-06-28 06:05:48,287 [myid:] - INFO [main:[email protected]] - 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:[email protected]] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-28 06:05:48,287 [myid:] - INFO [main:[email protected]] - Client environment:java.io.tmpdir=/tmp
2016-06-28 06:05:48,287 [myid:] - INFO [main:[email protected]] - Client environment:java.compiler=<NA>
2016-06-28 06:05:48,290 [myid:] - INFO [main:[email protected]] - Client environment:os.name=Linux
2016-06-28 06:05:48,290 [myid:] - INFO [main:[email protected]] - Client environment:os.arch=i386
2016-06-28 06:05:48,297 [myid:] - INFO [main:[email protected]] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-28 06:05:48,297 [myid:] - INFO [main:[email protected]] - Client environment:user.name=root
2016-06-28 06:05:48,297 [myid:] - INFO [main:[email protected]] - Client environment:user.home=/root
2016-06-28 06:05:48,297 [myid:] - INFO [main:[email protected]] - Client environment:user.dir=/user/local/zookeeper-bak
2016-06-28 06:05:48,311 [myid:] - INFO [main:[email protected]] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 [email protected]
Welcome to ZooKeeper!
2016-06-28 06:05:48,463 [myid:] - INFO [main-SendThread(localhost:2181):[email protected]] - 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):[email protected]] - 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):[email protected]] - 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
[[email protected] zookeeper-3.4.6]# jps
3081 QuorumPeerMain
3855 Jps
4033 ZooKeeperMain
3780 supervisor
3692 nimbus
3845 core
4060 Jps
[[email protected] zookeeper-3.4.6]# cd ..
[[email protected] 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
[[email protected] local]# rm zookeeper-bak/
rm: cannot remove `zookeeper-bak/': Is a directory
[[email protected] local]# rm -r zookeeper-bak/
rm: descend into directory `zookeeper-bak'?
[[email protected] 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
[[email protected] local]# rm -rf zookeeper-bak/
[[email protected] 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
[[email protected] local]# cd -
/user/local/zookeeper-3.4.6
[[email protected] 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
[[email protected] 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:[email protected]] - 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:[email protected]] - Client environment:host.name=cdh1
2016-06-28 06:09:45,842 [myid:] - INFO [main:[email protected]] - Client environment:java.version=1.7.0_67
2016-06-28 06:09:45,854 [myid:] - INFO [main:[email protected]] - Client environment:java.vendor=Oracle Corporation
2016-06-28 06:09:45,854 [myid:] - INFO [main:[email protected]] - Client environment:java.home=/user/local/jdk/jre
2016-06-28 06:09:45,854 [myid:] - INFO [main:[email protected]] - 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:[email protected]] - Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib
2016-06-28 06:09:45,855 [myid:] - INFO [main:[email protected]] - Client environment:java.io.tmpdir=/tmp
2016-06-28 06:09:45,855 [myid:] - INFO [main:[email protected]] - Client environment:java.compiler=<NA>
2016-06-28 06:09:45,858 [myid:] - INFO [main:[email protected]] - Client environment:os.name=Linux
2016-06-28 06:09:45,859 [myid:] - INFO [main:[email protected]] - Client environment:os.arch=i386
2016-06-28 06:09:45,859 [myid:] - INFO [main:[email protected]] - Client environment:os.version=2.6.32-358.el6.i686
2016-06-28 06:09:45,859 [myid:] - INFO [main:[email protected]] - Client environment:user.name=root
2016-06-28 06:09:45,859 [myid:] - INFO [main:[email protected]] - Client environment:user.home=/root
2016-06-28 06:09:45,859 [myid:] - INFO [main:[email protected]] - Client environment:user.dir=/user/local/zookeeper-3.4.6
2016-06-28 06:09:45,949 [myid:] - INFO [main:[email protected]] - Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=30000 [email protected]
Welcome to ZooKeeper!
2016-06-28 06:09:46,491 [myid:] - INFO [main-SendThread(127.0.0.1:2181):[email protected]] - 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):[email protected]] - 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):[email protected]] - 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]
相關推薦
Zookeeper 節點操作,storm 啟動
[[email protected] zookeeper-3.4.6]# zkServer.sh status JMX enabled by default Using config: /user/local/zookeeper-3.4.6/bin/../conf
通過節點操作,實現隔行變色效果
要點: 1.通過.childNodes獲取的節點,有標籤、文字(包括空文字)、和屬性都要算在內。我們要的只是元素型別為標籤,通過nodeType判斷元素的型別,標籤返回值是1,屬性返回的是2,文字返回的是3 2.通過nodeName返回的節點名字,如果是標籤節點,返回標籤型別的大寫名字如LI
微信瀏覽器內,不需任何操作,直接啟動外部瀏覽器是怎麼實現的
做微信營銷活動或者APK下載推廣時候,域名被經常被封,做到微信中正常使用呢?這就要藉助一些工具來實現有效的操作。先來認識一下微信遮蔽的原理。按原理逐個攻破,本人做防封一年來自認為得心應手 工具介紹: 月牙跳轉是一款基於微信後端開發了一款微信營銷下載推廣助手,使用了本外掛生成的連結,使用者在微信任意環境下點
zookeeper節點操作zkclient
增加、刪除節點,監測節點資訊的變化,解析json package com.keixn.inspect.controller; /** * @Author KeXin * @Date 2018/7/19 下午3:36 **/ import com.
linux 下面oracle資料庫的一些常用操作,包含啟動arcgissde
1、啟動或者關閉oralce資料庫(12C版本) 以oracle身份登入資料庫,命令:su - oracle (2) 進入Sqlplus控制檯,命令:sqlplus /nolog (3) 以系統管理員登入,命令:connect /as sysdba (4) 啟動
Zookeeper命令列操作 常用命令 客戶端連線 檢視znode路徑 建立節點 獲取znode資料,檢視節點內容,設定
8.1.常用命令 啟動ZK服務bin/zkServer.sh start 檢視ZK服務狀態bin/zkServer.sh status 停止ZK服務bin/zkServer.sh stop 重啟ZK服務bin/zkServer.sh restart 連線伺服器
每天一個JS 小demo之個人信息添加。主要知識點:DOM操作中的表格操作,節點操作
mov src i++ blog this tex set elements img 以下是簡易效果: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8">
js的DOM節點操作:創建 ,插入,刪除,復制,查找節點
con 函數 nts html屬性 追加 clas tracking nodes 末尾 DOM含義:DOM是文檔對象模型(Document Object Model,是基於瀏覽器編程的一套API接口,是W3C出臺的推薦標準。其賦予了JS操作節點的能力。當網頁被加載時,瀏
JS節點操作 (表格在js中添加行和單元格,並有一個刪除鍵)
sed doc nod lis 姓名 ins func play 移除 1 <div id="div"> 2 <table id="tab"> 3 <tr> 4 <th&g
JavaScript基礎及函數,BOM,DOM的節點及DOM節點操作
需要 兩個 進行 history des s系列 onclick 系統信息 回車 使用js的三種方式 1.直接在HTML標簽中,使用事件屬性,調用js代碼: <button onclick="alert(‘點我呀‘)">點我啊!<tton>
第五篇:zTree節點的一些操作,權當備份
專案場景:將zTree的一個節點挪到某個已知的根節點下,因為樹上的節點都是資料庫查詢出來的,所以不能直接用addNodes()這個方法(否則一重新整理又恢復原樣了),而是要把這個節點及其某些屬性資料儲存到資料庫中,進一步的需求是:如果層級很多,挪過去的時候,要連帶他的所有父節點,子孫節點一起挪過去,加上他們的
CF E. Vasya and a Tree】 dfs+樹狀陣列(給你一棵n個節點的樹,每個點有一個權值,初始全為0,m次操作,每次三個數(v, d, x)表示只考慮以v為根的子樹,將所有與v點距離小於等於d的點權值全部加上x,求所有操作完畢後,所有節點的值)
題意: 給你一棵n個節點的樹,每個點有一個權值,初始全為0,m次操作,每次三個數(v, d, x)表示只考慮以v為根的子樹,將所有與v點距離小於等於d的點權值全部加上x,求所有操作完畢後,所有節點的值 首先要明確兩件事情性質1.每個人的操作只會影響到他的子孫(包括自己) 性質1.每個人的操
Jenkins中啟動從節點時,出現問題如何解決,問題:No Known Hosts...
Jenkins中,啟動從節點時,出現如下問題如何解決:/root/.ssh/known_hosts [SSH] No Known Hosts file was found at /root/.ssh/known_hosts. Please ensure one is created at this path
Dubbo優化,不用啟動zookeeper
直連 :消費方—提供方 1.設定 超時時間 600000s 和 檢查項 消費方: <dubbo:reference interface... url="dubbo://127.0.0.1:20882"/> <
C語言連結串列:遍歷,頭插,尾插,中間插入;頭節點刪除,尾節點刪除,中間刪除的操作
/****************************************************************************************************************************************
【原創】redis庫存操作,分散式鎖的四種實現方式[連載一]--基於zookeeper實現分散式鎖
一、背景 在電商系統中,庫存的概念一定是有的,例如配一些商品的庫存,做商品秒殺活動等,而由於庫存操作頻繁且要求原子性操作,所以絕大多數電商系統都用Redis來實現庫存的加減,最近公司專案做架構升級,以微服務的形式做分散式部署,對庫存的操作也單獨封裝為一個微服務,這樣在高併發情況下,加減庫存時,就會出現超賣等
【原創】redis庫存操作,分布式鎖的四種實現方式[連載一]--基於zookeeper實現分布式鎖
zookeepe operation iat 並發 method logger 方案 nag 概念 一、背景 在電商系統中,庫存的概念一定是有的,例如配一些商品的庫存,做商品秒殺活動等,而由於庫存操作頻繁且要求原子性操作,所以絕大多數電商系統都用Redis來實現庫存的加減,
Jedis操作單節點redis,叢集及redisTemplate操作redis叢集(三)
package com.dream21th.dream21thredis.controller;import java.util.List;import java.util.Map;import org.springframework.beans.factory.annotation.Autowired;im
無法執行該操作,因為連結伺服器 "XXX" 的 OLE DB 訪問介面 "SQLNCLI10" 無法啟動分散式事務。
在儲存過程中使用事務,並且使用連結伺服器時,報以下錯誤: 無法執行該操作,因為連結伺服器 "XXX" 的 OLE DB 訪問介面 "SQLNCLI10" 無法啟動分散式事務。 連結伺服器"XXX"的 OLE DB 訪問介面 "SQLNCLI10" 返回了訊息 "沒有活動事務。  
無法執行該操作,因為鏈接服務器 "XXX" 的 OLE DB 訪問接口 "SQLNCLI10" 無法啟動分布式事務。
設置 ted -c inf 服務器管理 網絡 右擊 window 存儲過程 在存儲過程中使用事務,並且使用鏈接服務器時,報以下錯誤: 無法執行該操作,因為鏈接服務器 "XXX" 的 OLE DB 訪問接口 "SQLNCLI10" 無法啟動分布式事務。 鏈接服務器"XXX