zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "一直以来" <279377...@qq.com>
Subject 回复: use 3.5.5 version ,,run command : create -t 15000 /1 value return err
Date Fri, 11 Oct 2019 06:41:40 GMT
but buttom info:


[ghy@localhost bin]$ sh zkServer.sh status
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /home/ghy/T/z1/bin/../conf/zoo.cfg
Client port found: 2181. Client address: localhost.
Error contacting service. It is probably not running.
[ghy@localhost bin]$&nbsp;







------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"Zili Chen"<wander4096@gmail.com&gt;;
发送时间:&nbsp;2019年10月11日(星期五) 下午2:05
收件人:&nbsp;"user"<user@zookeeper.apache.org&gt;;

主题:&nbsp;Re: use 3.5.5 version ,,run command : create -t 15000 /1 value return err



"zookeeper." will be automatic prefix-ed by zk, please try to configure as

extendedTypesEnabled=true

Best,
tison.


一直以来 <279377921@qq.com&gt; 于2019年10月11日周五 下午1:46写道:

&gt; but my zoo.cfg confg:
&gt; zookeeper.extendedTypesEnabled=true
&gt; zookeeper.emulate353TTLNodes=true
&gt;
&gt;
&gt;
&gt; still return error!
&gt;
&gt;
&gt; ------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
&gt; 发件人:&amp;nbsp;"Zili Chen"<wander4096@gmail.com&amp;gt;;
&gt; 发送时间:&amp;nbsp;2019年10月11日(星期五) 中午1:43
&gt; 收件人:&amp;nbsp;"user"<user@zookeeper.apache.org&amp;gt;;
&gt;
&gt; 主题:&amp;nbsp;Re: use 3.5.5 version ,,run command : create -t 15000 /1 value
&gt; return err
&gt;
&gt;
&gt;
&gt; so you need to start the server with java system
&gt; property zookeeper.extendedTypesEnabled set to true.
&gt;
&gt; Best,
&gt; tison.
&gt;
&gt;
&gt; Zili Chen <wander4096@gmail.com&amp;gt; 于2019年10月11日周五 下午1:35写道:
&gt;
&gt; &amp;gt; From the document it says
&gt; &amp;gt;
&gt; &amp;gt; # create the ttl node.
&gt; &amp;gt; # set zookeeper.extendedTypesEnabled=true
&gt; &amp;gt; # Otherwise:KeeperErrorCode = Unimplemented for /ttl_node
&gt; &amp;gt; [zkshell: 20] create -t 3000 /ttl_node mydata
&gt; &amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Created /ttl_node
&gt; &amp;gt;
&gt; &amp;gt; Best,
&gt; &amp;gt; tison.
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; 一直以来 <279377921@qq.com&amp;gt; 于2019年10月11日周五
下午1:28写道:
&gt; &amp;gt;
&gt; &amp;gt;&amp;gt; [ghy@localhost bin]$ ps -ef|grep java
&gt; &amp;gt;&amp;gt; ghy&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;
&amp;amp;nbsp;14773&amp;amp;nbsp;
&gt; &amp;amp;nbsp; &amp;amp;nbsp; 1&amp;amp;nbsp; 0 12:43
&gt; &amp;gt;&amp;gt; pts/0&amp;amp;nbsp; &amp;amp;nbsp; 00:00:02 java
&gt; &amp;gt;&amp;gt; -Dzookeeper.log.dir=/home/ghy/T/z1/bin/../logs
&gt; &amp;gt;&amp;gt;
&gt; -Dzookeeper.log.file=zookeeper-ghy-server-localhost.localdomain.log
&gt; &amp;gt;&amp;gt; -Dzookeeper.root.logger=INFO,CONSOLE
&gt; -XX:+HeapDumpOnOutOfMemoryError
&gt; &amp;gt;&amp;gt; -XX:OnOutOfMemoryError=kill -9 %p -cp
&gt; &amp;gt;&amp;gt;
&gt; /home/ghy/T/z1/bin/../zookeeper-server/target/classes:/home/ghy/T/z1/bin/../build/classes:/home/ghy/T/z1/bin/../zookeeper-server/target/lib/*.jar:/home/ghy/T/z1/bin/../build/lib/*.jar:/home/ghy/T/z1/bin/../lib/zookeeper-jute-3.5.5.jar:/home/ghy/T/z1/bin/../lib/zookeeper-3.5.5.jar:/home/ghy/T/z1/bin/../lib/slf4j-log4j12-1.7.25.jar:/home/ghy/T/z1/bin/../lib/slf4j-api-1.7.25.jar:/home/ghy/T/z1/bin/../lib/netty-all-4.1.29.Final.jar:/home/ghy/T/z1/bin/../lib/log4j-1.2.17.jar:/home/ghy/T/z1/bin/../lib/json-simple-1.1.1.jar:/home/ghy/T/z1/bin/../lib/jline-2.11.jar:/home/ghy/T/z1/bin/../lib/jetty-util-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-servlet-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-server-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-security-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-io-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-http-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/javax.servlet-api-3.1.0.jar:/home/ghy/T/z1/bin/../lib/jackson-databind-2.9.8.jar:/home/ghy/T/z1/bin/../lib/jackson-core-2.9.8.jar:/home/ghy/T/z1/bin/../lib/jackson-annotations-2.9.0.jar:/home/ghy/T/z1/bin/../lib/commons-cli-1.2.jar:/home/ghy/T/z1/bin/../lib/audience-annotations-0.5.0.jar:/home/ghy/T/z1/bin/../zookeeper-*.jar:/home/ghy/T/z1/bin/../zookeeper-server/src/main/resources/lib/*.jar:/home/ghy/T/z1/bin/../conf:
&gt; &amp;gt;&amp;gt; -Xmx1000m -Dcom.sun.management.jmxremote
&gt; &amp;gt;&amp;gt; -Dcom.sun.management.jmxremote.local.only=false
&gt; &amp;gt;&amp;gt; org.apache.zookeeper.server.quorum.QuorumPeerMain
&gt; &amp;gt;&amp;gt; /home/ghy/T/z1/bin/../conf/zoo.cfg
&gt; &amp;gt;&amp;gt; ghy&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;
&amp;amp;nbsp;14816&amp;amp;nbsp;
&gt; 14810&amp;amp;nbsp; 0 12:44 pts/1&amp;amp;nbsp;
&gt; &amp;gt;&amp;gt; &amp;amp;nbsp; 00:00:02 java
&gt; -Dzookeeper.log.dir=/home/ghy/T/z1/bin/../logs
&gt; &amp;gt;&amp;gt; -Dzookeeper.root.logger=INFO,CONSOLE
&gt; &amp;gt;&amp;gt; -Dzookeeper.log.file=zookeeper-ghy-cli-localhost.localdomain.log
&gt; -cp
&gt; &amp;gt;&amp;gt;
&gt; /home/ghy/T/z1/bin/../zookeeper-server/target/classes:/home/ghy/T/z1/bin/../build/classes:/home/ghy/T/z1/bin/../zookeeper-server/target/lib/*.jar:/home/ghy/T/z1/bin/../build/lib/*.jar:/home/ghy/T/z1/bin/../lib/zookeeper-jute-3.5.5.jar:/home/ghy/T/z1/bin/../lib/zookeeper-3.5.5.jar:/home/ghy/T/z1/bin/../lib/slf4j-log4j12-1.7.25.jar:/home/ghy/T/z1/bin/../lib/slf4j-api-1.7.25.jar:/home/ghy/T/z1/bin/../lib/netty-all-4.1.29.Final.jar:/home/ghy/T/z1/bin/../lib/log4j-1.2.17.jar:/home/ghy/T/z1/bin/../lib/json-simple-1.1.1.jar:/home/ghy/T/z1/bin/../lib/jline-2.11.jar:/home/ghy/T/z1/bin/../lib/jetty-util-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-servlet-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-server-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-security-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-io-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/jetty-http-9.4.17.v20190418.jar:/home/ghy/T/z1/bin/../lib/javax.servlet-api-3.1.0.jar:/home/ghy/T/z1/bin/../lib/jackson-databind-2.9.8.jar:/home/ghy/T/z1/bin/../lib/jackson-core-2.9.8.jar:/home/ghy/T/z1/bin/../lib/jackson-annotations-2.9.0.jar:/home/ghy/T/z1/bin/../lib/commons-cli-1.2.jar:/home/ghy/T/z1/bin/../lib/audience-annotations-0.5.0.jar:/home/ghy/T/z1/bin/../zookeeper-*.jar:/home/ghy/T/z1/bin/../zookeeper-server/src/main/resources/lib/*.jar:/home/ghy/T/z1/bin/../conf:
&gt; &amp;gt;&amp;gt; -Xmx256m org.apache.zookeeper.ZooKeeperMain -server
&gt; 127.0.0.1:2181
&gt; &amp;gt;&amp;gt; ghy&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;
&amp;amp;nbsp;15498&amp;amp;nbsp;
&gt; &amp;amp;nbsp;9162&amp;amp;nbsp; 0 13:20
&gt; &amp;gt;&amp;gt; pts/0&amp;amp;nbsp; &amp;amp;nbsp; 00:00:00 grep
--color=auto java
&gt; &amp;gt;&amp;gt; [ghy@localhost bin]$&amp;amp;nbsp;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; 3.5.5 version!!
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; ------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
&gt; &amp;gt;&amp;gt; 发件人:&amp;amp;nbsp;"Zili Chen"<wander4096@gmail.com&amp;amp;gt;;
&gt; &amp;gt;&amp;gt; 发送时间:&amp;amp;nbsp;2019年10月11日(星期五)
中午1:04
&gt; &amp;gt;&amp;gt; 收件人:&amp;amp;nbsp;"user"<user@zookeeper.apache.org&amp;amp;gt;;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; 主题:&amp;amp;nbsp;Re: use 3.5.5 version ,,run command
: create -t
&gt; 15000 /1 value
&gt; &amp;gt;&amp;gt; return err
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; Do you connect to a server running in version 3.4.x?
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; Best,
&gt; &amp;gt;&amp;gt; tison.
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; 一直以来 <279377921@qq.com&amp;amp;gt; 于2019年10月11日周五
下午12:46写道:
&gt; &amp;gt;&amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt; [zk: 127.0.0.1:2181(CONNECTED) 0] ls /
&gt; &amp;gt;&amp;gt; &amp;amp;gt; [zookeeper]
&gt; &amp;gt;&amp;gt; &amp;amp;gt; [zk: 127.0.0.1:2181(CONNECTED) 1] create
-t 15000 /1
&gt; value
&gt; &amp;gt;&amp;gt; &amp;amp;gt; KeeperErrorCode = Unimplemented for /1
&gt; &amp;gt;&amp;gt; &amp;amp;gt; [zk: 127.0.0.1:2181(CONNECTED) 2]&amp;amp;amp;nbsp;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt; why??
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt;
&gt; &amp;gt;&amp;gt; &amp;amp;gt; thank you very much!
&gt; &amp;gt;
&gt; &amp;gt;
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message