Package org.apache.zookeeper.client

Examples of org.apache.zookeeper.client.ZooKeeperSaslClient$ClientCallbackHandler


            LOG.info("Opening socket connection to server " + addr);

            setName(getName().replaceAll("\\(.*\\)",
                    "(" + addr.getHostName() + ":" + addr.getPort() + ")"));
            try {
                zooKeeperSaslClient = new ZooKeeperSaslClient("zookeeper/"+addr.getHostName());
            } catch (LoginException e) {
                LOG.warn("SASL authentication failed: " + e + " Will continue connection to Zookeeper server without "
                        + "SASL authentication, if Zookeeper server allows it.");
                eventThread.queueEvent(new WatchedEvent(
                        Watcher.Event.EventType.None,
View Full Code Here


            }

            setName(getName().replaceAll("\\(.*\\)",
                    "(" + addr.getHostName() + ":" + addr.getPort() + ")"));
            try {
                zooKeeperSaslClient = new ZooKeeperSaslClient("zookeeper/"+addr.getHostName());
            } catch (LoginException e) {
                // An authentication error occurred when the SASL client tried to initialize:
                // for Kerberos this means that the client failed to authenticate with the KDC.
                // This is different from an authentication error that occurs during communication
                // with the Zookeeper server, which is handled below.
View Full Code Here

            setName(getName().replaceAll("\\(.*\\)",
                    "(" + addr.getHostName() + ":" + addr.getPort() + ")"));

            if (System.getProperty("java.security.auth.login.config") != null) {
                try {
                    zooKeeperSaslClient = new ZooKeeperSaslClient(ClientCnxn.this, "zookeeper"+"/"+ addr.getHostName());
                }
                catch (LoginException e) {
                    LOG.warn("Zookeeper client cannot authenticate using the Client section of the supplied "
                      + "configuration file: '" + System.getProperty("java.security.auth.login.config")
                      + "'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper "
View Full Code Here

            if (ZooKeeperSaslClient.isEnabled()) {
                try {
                    String principalUserName = System.getProperty(
                            ZK_SASL_CLIENT_USERNAME, "zookeeper");
                    zooKeeperSaslClient =
                        new ZooKeeperSaslClient(
                                principalUserName+"/"+addr.getHostName());
                } catch (LoginException e) {
                    // An authentication error occurred when the SASL client tried to initialize:
                    // for Kerberos this means that the client failed to authenticate with the KDC.
                    // This is different from an authentication error that occurs during communication
View Full Code Here

            if (ZooKeeperSaslClient.isEnabled()) {
                try {
                    String principalUserName = System.getProperty(
                            ZK_SASL_CLIENT_USERNAME, "zookeeper");
                    zooKeeperSaslClient =
                        new ZooKeeperSaslClient(
                                principalUserName+"/"+addr.getHostName());
                } catch (LoginException e) {
                    // An authentication error occurred when the SASL client tried to initialize:
                    // for Kerberos this means that the client failed to authenticate with the KDC.
                    // This is different from an authentication error that occurs during communication
View Full Code Here

TOP

Related Classes of org.apache.zookeeper.client.ZooKeeperSaslClient$ClientCallbackHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.