zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zili Chen <wander4...@gmail.com>
Subject Re: use 3.5.5 version ,,run command : create -t 15000 /1 value return err
Date Fri, 11 Oct 2019 06:05:46 GMT
"zookeeper." will be automatic prefix-ed by zk, please try to configure as

extendedTypesEnabled=true

Best,
tison.


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

> but my zoo.cfg confg:
> zookeeper.extendedTypesEnabled=true
> zookeeper.emulate353TTLNodes=true
>
>
>
> still return error!
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:&nbsp;"Zili Chen"<wander4096@gmail.com&gt;;
> 发送时间:&nbsp;2019年10月11日(星期五) 中午1:43
> 收件人:&nbsp;"user"<user@zookeeper.apache.org&gt;;
>
> 主题:&nbsp;Re: use 3.5.5 version ,,run command : create -t 15000 /1 value
> return err
>
>
>
> so you need to start the server with java system
> property zookeeper.extendedTypesEnabled set to true.
>
> Best,
> tison.
>
>
> Zili Chen <wander4096@gmail.com&gt; 于2019年10月11日周五 下午1:35写道:
>
> &gt; From the document it says
> &gt;
> &gt; # create the ttl node.
> &gt; # set zookeeper.extendedTypesEnabled=true
> &gt; # Otherwise:KeeperErrorCode = Unimplemented for /ttl_node
> &gt; [zkshell: 20] create -t 3000 /ttl_node mydata
> &gt;&nbsp;&nbsp;&nbsp; Created /ttl_node
> &gt;
> &gt; Best,
> &gt; tison.
> &gt;
> &gt;
> &gt; 一直以来 <279377921@qq.com&gt; 于2019年10月11日周五 下午1:28写道:
> &gt;
> &gt;&gt; [ghy@localhost bin]$ ps -ef|grep java
> &gt;&gt; ghy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14773&amp;nbsp;
> &amp;nbsp; &amp;nbsp; 1&amp;nbsp; 0 12:43
> &gt;&gt; pts/0&amp;nbsp; &amp;nbsp; 00:00:02 java
> &gt;&gt; -Dzookeeper.log.dir=/home/ghy/T/z1/bin/../logs
> &gt;&gt;
> -Dzookeeper.log.file=zookeeper-ghy-server-localhost.localdomain.log
> &gt;&gt; -Dzookeeper.root.logger=INFO,CONSOLE
> -XX:+HeapDumpOnOutOfMemoryError
> &gt;&gt; -XX:OnOutOfMemoryError=kill -9 %p -cp
> &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;&gt; -Xmx1000m -Dcom.sun.management.jmxremote
> &gt;&gt; -Dcom.sun.management.jmxremote.local.only=false
> &gt;&gt; org.apache.zookeeper.server.quorum.QuorumPeerMain
> &gt;&gt; /home/ghy/T/z1/bin/../conf/zoo.cfg
> &gt;&gt; ghy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14816&amp;nbsp;
> 14810&amp;nbsp; 0 12:44 pts/1&amp;nbsp;
> &gt;&gt; &amp;nbsp; 00:00:02 java
> -Dzookeeper.log.dir=/home/ghy/T/z1/bin/../logs
> &gt;&gt; -Dzookeeper.root.logger=INFO,CONSOLE
> &gt;&gt; -Dzookeeper.log.file=zookeeper-ghy-cli-localhost.localdomain.log
> -cp
> &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;&gt; -Xmx256m org.apache.zookeeper.ZooKeeperMain -server
> 127.0.0.1:2181
> &gt;&gt; ghy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15498&amp;nbsp;
> &amp;nbsp;9162&amp;nbsp; 0 13:20
> &gt;&gt; pts/0&amp;nbsp; &amp;nbsp; 00:00:00 grep --color=auto java
> &gt;&gt; [ghy@localhost bin]$&amp;nbsp;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; 3.5.5 version!!
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; ------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
> &gt;&gt; 发件人:&amp;nbsp;"Zili Chen"<wander4096@gmail.com&amp;gt;;
> &gt;&gt; 发送时间:&amp;nbsp;2019年10月11日(星期五) 中午1:04
> &gt;&gt; 收件人:&amp;nbsp;"user"<user@zookeeper.apache.org&amp;gt;;
> &gt;&gt;
> &gt;&gt; 主题:&amp;nbsp;Re: use 3.5.5 version ,,run command : create -t
> 15000 /1 value
> &gt;&gt; return err
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; Do you connect to a server running in version 3.4.x?
> &gt;&gt;
> &gt;&gt; Best,
> &gt;&gt; tison.
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; 一直以来 <279377921@qq.com&amp;gt; 于2019年10月11日周五
下午12:46写道:
> &gt;&gt;
> &gt;&gt; &amp;gt; [zk: 127.0.0.1:2181(CONNECTED) 0] ls /
> &gt;&gt; &amp;gt; [zookeeper]
> &gt;&gt; &amp;gt; [zk: 127.0.0.1:2181(CONNECTED) 1] create -t 15000 /1
> value
> &gt;&gt; &amp;gt; KeeperErrorCode = Unimplemented for /1
> &gt;&gt; &amp;gt; [zk: 127.0.0.1:2181(CONNECTED) 2]&amp;amp;nbsp;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt; why??
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt;
> &gt;&gt; &amp;gt; thank you very much!
> &gt;
> &gt;

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message