[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023914#comment-15023914
 ] 

Arshad Mohammad commented on ZOOKEEPER-2139:
--------------------------------------------

Current patch supports only sasl related properties but I think It will be more 
appropriate to handle all the Client system properties . System properties are 
used at both client side as well as server side.There are some system 
properties which are common in bother client and server. Here is the detail.
*Client specific system properties:*
{noformat}
zookeeper.sasl.client.username
zookeeper.sasl.clientconfig
zookeeper.sasl.client
zookeeper.server.realm
zookeeper.disableAutoWatchReset
zookeeper.client.secure
zookeeper.clientCnxnSocket
{noformat}

*Common Client and Server system properties*
{noformat}
zookeeper.ssl.keyStore.location
zookeeper.ssl.keyStore.password
zookeeper.ssl.trustStore.location
zookeeper.ssl.trustStore.password
zookeeper.ssl.authProvider
jute.maxbuffer
zookeeper.kinit
sun.security.jgss.native
java.security.auth.login.config
java.security.krb5.conf
{noformat}

java.security.auth.login.config and java.security.krb5.conf will remain system 
properties even after this patch as these are java API required system 
properties


> Zookeeper client configuration should not be java system property
> -----------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2139
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2139
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.5.0
>            Reporter: Surendra Singh Lilhore
>            Assignee: Arshad Mohammad
>             Fix For: 3.5.2, 3.6.0
>
>         Attachments: ZOOKEEPER-2139-05.patch, ZOOKEEPER-2139.patch, 
> ZOOKEEPER-2139.patch, ZOOKEEPER-2139_1.patch, ZOOKEEPER-2139_2.patch
>
>
> I have two ZK client in one JVM, one is secure client and second is normal 
> client (For non secure cluster).
> "zookeeper.sasl.client" system property is "true" by default, because of this 
> my second client connection is failing.
> We should pass all client configurations in client constructor like HDFS 
> client.
> For example :
> {code}
> public ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, 
> Configuration conf) throws IOException
>       {
>               ......
>               ......
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to