|
@@ -31,7 +31,6 @@ import org.apache.hadoop.service.ServiceStateException;
|
|
|
import org.apache.hadoop.util.ZKUtil;
|
|
|
import org.apache.zookeeper.Environment;
|
|
|
import org.apache.zookeeper.ZooDefs;
|
|
|
-import org.apache.zookeeper.client.ZooKeeperSaslClient;
|
|
|
import org.apache.zookeeper.data.ACL;
|
|
|
import org.apache.zookeeper.data.Id;
|
|
|
import org.apache.zookeeper.server.auth.DigestAuthenticationProvider;
|
|
@@ -758,7 +757,7 @@ public class RegistrySecurity extends AbstractService {
|
|
|
* <b>Important:</b>This is JVM-wide
|
|
|
*/
|
|
|
public static void disableZookeeperClientSASL() {
|
|
|
- System.setProperty(ZooKeeperSaslClient.ENABLE_CLIENT_SASL_KEY, "false");
|
|
|
+ System.setProperty(ZookeeperConfigOptions.PROP_ZK_ENABLE_SASL_CLIENT, "false");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -766,7 +765,8 @@ public class RegistrySecurity extends AbstractService {
|
|
|
* @return true if the SASL client system property is set.
|
|
|
*/
|
|
|
public static boolean isClientSASLEnabled() {
|
|
|
- return ZooKeeperSaslClient.isEnabled();
|
|
|
+ return Boolean.valueOf(System.getProperty(
|
|
|
+ ZookeeperConfigOptions.PROP_ZK_ENABLE_SASL_CLIENT, "true"));
|
|
|
}
|
|
|
|
|
|
/**
|