Difference between revisions of "Zkcli"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
<code>ZkCli</code> or <code>zkcli</code>
 
<code>ZkCli</code> or <code>zkcli</code>
 +
* https://zookeeper.apache.org/doc/current/zookeeperCLI.html
  
  zkCli
+
 
 +
  [[zkcli --help]]
 +
[[zkcli history]]
 +
[[zkcli whoami]]
 +
[[zkcli version]]
 +
[[zkcli create]]
 +
 
 +
zkcli
 +
Connecting to localhost:2181
 +
Welcome to ZooKeeper!
 +
[[JLine]] support is enabled
 +
[zk: localhost:2181(CONNECTING) 0]
 +
 
 +
 
 +
zkcli
 
  Connecting to localhost:[[2181]]
 
  Connecting to localhost:[[2181]]
 
  Welcome to ZooKeeper!
 
  Welcome to ZooKeeper!
Line 12: Line 27:
  
  
  zkCli
+
 
Connecting to localhost:2181
+
 
Welcome to ZooKeeper!
+
== Errors ==
[[JLine]] support is enabled
+
 
[zk: localhost:2181(CONNECTING) 0]
+
<pre>
[zk: localhost:2181(CONNECTING) 0]
+
  zkcli
 +
Failed to auto configure default logger context
 +
Reported exception:
 +
ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML document. See previously reported errors.
 +
at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:65)
 +
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:151)
 +
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
 +
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
 +
at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:64)
 +
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:134)
 +
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
 +
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
 +
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
 +
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
 +
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
 +
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
 +
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
 +
at org.apache.zookeeper.ZooKeeperMain.<clinit>(ZooKeeperMain.java:61)
 +
Caused by: org.xml.sax.SAXParseException; systemId: file:/Users/user/brew/etc/zookeeper/logback.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
 +
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1251)
 +
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
 +
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:326)
 +
at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59)
 +
... 13 more
 +
19:43:32,845 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
 +
19:43:32,846 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/user/brew/etc/zookeeper/logback.xml]
 +
19:43:32,868 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@5fe5c6f - XML_PARSING - Parsing fatal error on line 1 and column 1
 +
19:43:32,868 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@5fe5c6f - org.xml.sax.SAXParseException; systemId: file:/Users/user/brew/etc/zookeeper/logback.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
 +
 
 +
Connecting to localhost:2181
 +
Welcome to ZooKeeper!
 +
JLine support is enabled
 +
 
 +
WATCHER::
 +
 
 +
WatchedEvent state:SyncConnected type:None path:null zxid: -1
 +
[zk: localhost:2181(CONNECTED) 0]
 +
</pre>
  
 
== Related ==
 
== Related ==
[[zkserver start]]
+
* <code>[[zkserver start]]</code>
 +
* [[logback.xml]], [[prolog]]
  
 
== See also ==
 
== See also ==
 +
* {{zkcli}}
 +
* {{zkserver}}
 
* {{zookeeper}}
 
* {{zookeeper}}
  
 
[[Category:Zookeeper]]
 
[[Category:Zookeeper]]

Latest revision as of 19:10, 14 March 2024

ZkCli or zkcli


zkcli --help
zkcli history
zkcli whoami
zkcli version
zkcli create
zkcli
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled
[zk: localhost:2181(CONNECTING) 0]


zkcli
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled
[zk: localhost:2181(CONNECTING) 0]
WATCHER:: 

WatchedEvent state:SyncConnected type:None path:null



Errors[edit]

 zkcli
Failed to auto configure default logger context
Reported exception:
ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML document. See previously reported errors.
	at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:65)
	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:151)
	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
	at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:64)
	at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:134)
	at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
	at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
	at org.apache.zookeeper.ZooKeeperMain.<clinit>(ZooKeeperMain.java:61)
Caused by: org.xml.sax.SAXParseException; systemId: file:/Users/user/brew/etc/zookeeper/logback.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1251)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:326)
	at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59)
	... 13 more
19:43:32,845 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
19:43:32,846 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/user/brew/etc/zookeeper/logback.xml]
19:43:32,868 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@5fe5c6f - XML_PARSING - Parsing fatal error on line 1 and column 1
19:43:32,868 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder@5fe5c6f - org.xml.sax.SAXParseException; systemId: file:/Users/user/brew/etc/zookeeper/logback.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled

WATCHER::

WatchedEvent state:SyncConnected type:None path:null zxid: -1
[zk: localhost:2181(CONNECTED) 0]

Related[edit]

See also[edit]

Advertising: