[
https://issues.apache.org/jira/browse/ZOOKEEPER-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leader Ni updated ZOOKEEPER-1320:
---------------------------------
Attachment: ZOOKEEPER-1320-iplimited.patch
zookeeper-3.3.3.jar_iplimited
UserGuide-1320-iplimited.pdf
UserGuide-1320-iplimited.docx
Any problem,mail to [email protected]
How to use this feature:
1. Download ZOOKEEPER-1320-iplimited.patch, and patch it on you zookeeper
server source code, and rebuild you project. Or you can download the
zookeeper-3.3.3.jar_iplimited and rename it to zookeeper-3.3.3.jar.
2. Replace zookeeper-3.3.3.jar of %ZK_HOME%/
3. Start it.
4. Use ./zkCli.sh to connect to the server, and use commands as follow:
set /zookeeper/extends/skip_limited_ip false
set /zookeeper/extends/limited_ip 1.1.1.1,1.1.1.2,1.1.1.3
5. Use these command in runtime feel free, take effect within 10 seconds.
6. Note: Use comma with English state input method.
7. Enjoy.
1. 下载
ZOOKEEPER-1320-iplimited.patch,打到你的zk源代码上,然后重新build一次。或者可以直接zookeeper-3.3.3.jar_iplimited
(这个是我在3.3.3-rc0基础上build的),并重命名为zookeeper-3.3.3.jar。
2. 替换server上 %ZK_HOME%中的zookeeper-3.3.3.jar。
3. 启动zk。
4. 通过命令方式 ./zkCli.sh 连接zk,进行如下操作:
set /zookeeper/extends/skip_limited_ip false
set /zookeeper/extends/limited_ip 1.1.1.1,1.1.1.2,1.1.1.3
注意:不同ip之间用英文状态 , 隔开。以后可以随时执行以上命令,至多10s内生效。
> Add the feathre to zookeeper allow client limited.
> --------------------------------------------------
>
> Key: ZOOKEEPER-1320
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1320
> Project: ZooKeeper
> Issue Type: New Feature
> Components: server
> Affects Versions: 3.3.3
> Environment: Linux version 2.6.18-164.el5 (gcc version 4.1.2 20080704
> (Red Hat 4.1.2-46)), jdk-1.6.0_17
> Reporter: Leader Ni
> Assignee: Leader Ni
> Labels: client,server,limited,ipfilter
> Fix For: 3.3.5
>
> Attachments: UserGuide-1320-iplimited.docx,
> UserGuide-1320-iplimited.pdf, ZOOKEEPER-1320-iplimited.patch,
> zookeeper-3.3.3.jar_iplimited
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Add the feature to zookeeper so that administrator can set the list of ips
> that limit which nodes can connect to the zk servers and which connected
> clients can operate on data.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira