Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

ZooKeeper Shell

Introduction

It's super easy to launch ZooKeeper shell with on command.

This container is based on Ubuntu 14.10, Oracle Java 7 and latest ZooKeeper(3.6.0-SNAPSHOT).

Usage

Run docker run -i -t -p 2181:2181 tobegit3hub/zookeeper-shell.

➜  zookeeper-shell git:(master) ✗ docker run -i -t -p 2181:2181 tobegit3hub/zookeeper-shell
ZooKeeper JMX enabled by default
Using config: /zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
Connecting to localhost:2181
2014-12-16 03:18:08,314 [myid:] - INFO  [main:Environment@109] - Client environment:zookeeper.version=3.6.0-SNAPSHOT--1, built on 12/16/2014 03:08 GMT
2014-12-16 03:18:08,326 [myid:] - INFO  [main:Environment@109] - Client environment:host.name=3d2d670183dc
2014-12-16 03:18:08,326 [myid:] - INFO  [main:Environment@109] - Client environment:java.version=1.7.0_72
2014-12-16 03:18:08,331 [myid:] - INFO  [main:Environment@109] - Client environment:java.vendor=Oracle Corporation
2014-12-16 03:18:08,331 [myid:] - INFO  [main:Environment@109] - Client environment:java.home=/usr/lib/jvm/java-7-oracle/jre
2014-12-16 03:18:08,332 [myid:] - INFO  [main:Environment@109] - Client environment:java.class.path=/zookeeper/bin/../build/classes:/zookeeper/bin/../build/lib/slf4j-log4j12-1.7.5.jar:/zookeeper/bin/../build/lib/slf4j-api-1.7.5.jar:/zookeeper/bin/../build/lib/servlet-api-2.5-20081211.jar:/zookeeper/bin/../build/lib/netty-3.7.0.Final.jar:/zookeeper/bin/../build/lib/log4j-1.2.16.jar:/zookeeper/bin/../build/lib/jline-2.11.jar:/zookeeper/bin/../build/lib/jetty-util-6.1.26.jar:/zookeeper/bin/../build/lib/jetty-6.1.26.jar:/zookeeper/bin/../build/lib/javacc.jar:/zookeeper/bin/../build/lib/jackson-mapper-asl-1.9.11.jar:/zookeeper/bin/../build/lib/jackson-core-asl-1.9.11.jar:/zookeeper/bin/../build/lib/commons-cli-1.2.jar:/zookeeper/bin/../lib/*.jar:/zookeeper/bin/../zookeeper-*.jar:/zookeeper/bin/../src/java/lib/ivy-2.2.0.jar:/zookeeper/bin/../conf:
2014-12-16 03:18:08,332 [myid:] - INFO  [main:Environment@109] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2014-12-16 03:18:08,333 [myid:] - INFO  [main:Environment@109] - Client environment:java.io.tmpdir=/tmp
2014-12-16 03:18:08,334 [myid:] - INFO  [main:Environment@109] - Client environment:java.compiler=<NA>
2014-12-16 03:18:08,334 [myid:] - INFO  [main:Environment@109] - Client environment:os.name=Linux
2014-12-16 03:18:08,335 [myid:] - INFO  [main:Environment@109] - Client environment:os.arch=amd64
2014-12-16 03:18:08,335 [myid:] - INFO  [main:Environment@109] - Client environment:os.version=3.16.5-x86_64-linode46
2014-12-16 03:18:08,335 [myid:] - INFO  [main:Environment@109] - Client environment:user.name=root
2014-12-16 03:18:08,336 [myid:] - INFO  [main:Environment@109] - Client environment:user.home=/root
2014-12-16 03:18:08,336 [myid:] - INFO  [main:Environment@109] - Client environment:user.dir=/zookeeper
2014-12-16 03:18:08,336 [myid:] - INFO  [main:Environment@109] - Client environment:os.memory.free=11MB
2014-12-16 03:18:08,339 [myid:] - INFO  [main:Environment@109] - Client environment:os.memory.max=247MB
2014-12-16 03:18:08,339 [myid:] - INFO  [main:Environment@109] - Client environment:os.memory.total=15MB
2014-12-16 03:18:08,341 [myid:] - INFO  [main:ZooKeeper@709] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@7f4fe1f9
Welcome to ZooKeeper!
2014-12-16 03:18:08,389 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1093] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
2014-12-16 03:18:08,405 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@963] - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
JLine support is enabled
2014-12-16 03:18:08,469 [myid:] - INFO  [main-SendThread(localhost:2181):ClientCnxn$SendThread@1346] - Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x14a511a54d30000, negotiated timeout = 30000

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /
[zookeeper]
[zk: localhost:2181(CONNECTED) 1] quit
2014-12-16 03:18:21,995 [myid:] - INFO  [main:ZooKeeper@968] - Session: 0x14a511a54d30000 closed
2014-12-16 03:18:21,996 [myid:] - INFO  [main-EventThread:ClientCnxn$EventThread@529] - EventThread shut down

Reference

If you want to use standalone ZooKeeper, it would be better to use standalone-zookeeper.

Docker Pull Command
Owner
tobegit3hub
Source Repository

Comments (0)