zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <indirapriyadharshini.thangam...@wipro.com>
Subject Reg: ZooKeeper Connection
Date Mon, 28 Jan 2013 15:01:00 GMT
Hi ,

I am trying to register a set of data in zk registery.
I am using zookeeper3.4.5 with spring 3.0.
I am connecting to zookeeper server in my init method defined in spring context file.
While running a sample standalone program for registering I am getting the zk disconnected
automatically.

I am trying to implement SASL in this. While debugging I have got SASLAuthentication exception.
Can I conclude that because of authentication failed my zk connection went to "Disconnected"
state?
Please correct me if I am wrong.

Can anyone tell me how SASL authentication to be intergrated with zk and spring.

My Code snippet  for SASL in spring context file is

<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
              <property name="targetObject">
                     <!-- System.getProperties() -->
                     <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
                           <property name="targetClass" value="java.lang.System" />
                           <property name="targetMethod" value="getProperties" />
                     </bean>
              </property>
              <property name="targetMethod" value="putAll" />
              <property name="arguments">
                     <!-- The new Properties -->
                     <util:properties>
                           <prop key="authProvider.1">org.apache.zookeeper.server.auth.SASLAuthenticationProvider</prop>
                           <prop key="java.security.auth.login.config">E:/Software/zookeeper-3.4.5/conf/jaas.conf</prop>
                           <prop key="ZooKeeperSaslClient.LOGIN_CONTEXT_NAME_KEY">Client</prop>
                     </util:properties>
              </property>
       </bean>

Thanks in advance for your replies.

Regards,
Indira

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email
and any attachments for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email. 

www.wipro.com

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