This is an automated email from the ASF dual-hosted git repository. jialiang pushed a commit to branch eee in repository https://gitbox.apache.org/repos/asf/ambari.git
commit 71de78c2b07d77ac65305f66b8061b8bf91ff213 Author: jialiang <[email protected]> AuthorDate: Sat Sep 7 14:47:21 2024 +0800 fix ranger --- .../stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms.py | 4 ++-- .../stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/params.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms.py index 0c7e35cbb1..2ad6cc1790 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/kms.py @@ -538,10 +538,10 @@ def enable_kms_plugin(): mode=0o744) if params.xa_audit_db_is_enabled: - cred_setup = params.cred_setup_prefix + ('-f', params.credential_file, '-k', 'auditDBCred', '-v', PasswordString(params.xa_audit_db_password), '-c', '1') + cred_setup = params.cred_setup_prefix + ('-f', params.credential_file, '-k', 'auditDBCred', '-v', PasswordString(params.xa_audit_db_password), '-c', '1') Execute(cred_setup, environment={'JAVA_HOME': params.java_home}, logoutput=True, sudo=True) - cred_setup = params.cred_setup_prefix + ('-f', params.credential_file, '-k', 'sslKeyStore', '-v', PasswordString(params.ssl_keystore_password), '-c', '1') + cred_setup = params.cred_setup_prefix + ('-f', params.credential_file, '-k', 'sslKeyStore', '-v', PasswordString(params.ssl_keystore_password), '-c', '1') Execute(cred_setup, environment={'JAVA_HOME': params.java_home}, logoutput=True, sudo=True) cred_setup = params.cred_setup_prefix + ('-f', params.credential_file, '-k', 'sslTrustStore', '-v', PasswordString(params.ssl_truststore_password), '-c', '1') diff --git a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/params.py b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/params.py index 617513b2f8..9ef7204e0c 100755 --- a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/params.py +++ b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER_KMS/package/scripts/params.py @@ -105,7 +105,7 @@ repo_name_value = config['configurations']['ranger-kms-security']['ranger.plugin if not is_empty(repo_name_value) and repo_name_value != "{{repo_name}}": repo_name = repo_name_value cred_lib_path = os.path.join(kms_home,"cred","lib","*") -cred_setup_prefix = (format('{kms_home}/ranger_credential_helper.py'), '-l', cred_lib_path) +cred_setup_prefix = ('ambari-python-wrap', format('{kms_home}/ranger_credential_helper.py'), '-l', cred_lib_path) credential_file = format('/etc/ranger/{repo_name}/cred.jceks') --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
