def disable_security(self, env): import params if not params.rm_zk_address: Logger.info("Skipping reverting ACL") return zkmigrator = ZkMigrator( params.rm_zk_address, \ params.java_exec, \ params.java64_home, \ params.yarn_jaas_file, \ params.yarn_user) zkmigrator.set_acls(params.rm_zk_znode, 'world:anyone:crdwa') zkmigrator.set_acls(params.hadoop_registry_zk_root, 'world:anyone:crdwa') zkmigrator.delete_node(params.rm_zk_failover_znode)
def disable_security(self, env): import params if not params.stack_supports_zk_security: Logger.info("Stack doesn't support zookeeper security") return if not params.rm_zk_address: Logger.info("No zookeeper connection string. Skipping reverting ACL") return zkmigrator = ZkMigrator( params.rm_zk_address, params.java_exec, params.java64_home, params.yarn_jaas_file, params.yarn_user) zkmigrator.set_acls(params.rm_zk_znode, 'world:anyone:crdwa') zkmigrator.set_acls(params.hadoop_registry_zk_root, 'world:anyone:crdwa') zkmigrator.delete_node(params.rm_zk_failover_znode)