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