-
Notifications
You must be signed in to change notification settings - Fork 25
Description
hi @lucasbak
I have installed Apache Ranger on MySQL 8 and have provided all the necessary information and JDBC details to Ambari, but no tables are being created in the database and I am getting errors. Below, I am sending you the error log for your detailed review.
Ambari version: 1.4.6 on RHEL 9
ODP version: ODP‑1.3.1.0 with JDK 17
stderr:
NoneType: None
The above exception was the cause of the following exception:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/ODP/1.0/services/RANGER/package/scripts/ranger_admin.py", line 258, in
RangerAdmin().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 350, in execute
method(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 1013, in restart
self.start(env, upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/ODP/1.0/services/RANGER/package/scripts/ranger_admin.py", line 98, in start
self.configure(env, upgrade_type=upgrade_type, setup_db=params.stack_supports_ranger_setup_db_on_start)
File "/var/lib/ambari-agent/cache/stacks/ODP/1.0/services/RANGER/package/scripts/ranger_admin.py", line 154, in configure
setup_ranger_xml.setup_ranger_db(upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/stacks/ODP/1.0/services/RANGER/package/scripts/setup_ranger_xml.py", line 277, in setup_ranger_db
Execute(dba_setup,
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 164, in init
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 163, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 127, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 332, in action_run
shell.checked_call(
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 73, in inner
result = function(command, kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 100, in checked_call
return _call_wrapper(command, logoutput=logoutput, throw_on_failure=True, stdout=stdout, stderr=stderr,
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 151, in _call_wrapper
result = _call(command, kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 320, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-python-wrap /usr/odp/current/ranger-admin/dba_script.py -q' returned 1. 2025-11-18 19:01:40,634 [I] Running DBA setup script. QuiteMode:True
2025-11-18 19:01:40,634 [I] Using Java:/usr/lib/jvm/java-17-openjdk/bin/java
2025-11-18 19:01:40,634 [I] DB FLAVOR:MYSQL
2025-11-18 19:01:40,634 [I] DB Host:localhost
2025-11-18 19:01:40,634 [I] ---------- Verifying DB root password ----------
2025-11-18 19:01:40,634 [I] DBA root user password validated
2025-11-18 19:01:40,635 [I] ---------- Verifying Ranger Admin db user password ----------
2025-11-18 19:01:40,635 [I] admin user password validated
2025-11-18 19:01:40,635 [I] ---------- Creating Ranger Admin db user ----------
2025-11-18 19:01:40,635 [JISQL] /usr/lib/jvm/java-17-openjdk/bin/java -cp /usr/odp/current/ranger-admin/ews/lib/mysql-connector-java.jar:/usr/odp/current/ranger-admin/jisql/lib/ org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://localhost/mysql?useSSL=false -u root -p '' -noheader -trim -c ; -query "SELECT version();"
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
SQLException : SQL state: 08001 java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed ErrorCode: 0
2025-11-18 19:01:40,972 [E] Can't establish db connection.. Exiting..
stdout:
2025-11-18 19:01:39,884 - Stack Feature Version Info: Cluster Stack=1.3, Command Stack=None, Command Version=1.3.1.0-174 -> 1.3.1.0-174
2025-11-18 19:01:39,889 - Using hadoop conf dir: /usr/odp/1.3.1.0-174/hadoop/conf
2025-11-18 19:01:40,015 - Stack Feature Version Info: Cluster Stack=1.3, Command Stack=None, Command Version=1.3.1.0-174 -> 1.3.1.0-174
2025-11-18 19:01:40,016 - Using hadoop conf dir: /usr/odp/1.3.1.0-174/hadoop/conf
2025-11-18 19:01:40,017 - Skipping param: datanode_max_locked_memory, due to Configuration parameter 'dfs.datanode.max.locked.memory' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: dfs_ha_namenode_ids, due to Configuration parameter 'dfs.ha.namenodes' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: falcon_user, due to Configuration parameter 'falcon-env' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: gmetad_user, due to Configuration parameter 'ganglia-env' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: gmond_user, due to Configuration parameter 'ganglia-env' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: oozie_user, due to Configuration parameter 'oozie-env' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: repo_info, due to Configuration parameter 'repoInfo' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: zeppelin_group, due to Configuration parameter 'zeppelin-env' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Skipping param: zeppelin_user, due to Configuration parameter 'zeppelin-env' was not found in configurations dictionary!
2025-11-18 19:01:40,017 - Group['ranger'] {}
2025-11-18 19:01:40,019 - Group['hdfs'] {}
2025-11-18 19:01:40,019 - Group['hadoop'] {}
2025-11-18 19:01:40,019 - Group['users'] {}
2025-11-18 19:01:40,020 - User['hive'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,020 - User['yarn-ats'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,021 - User['infra-solr'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,022 - User['httpfs'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,022 - User['zookeeper'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,023 - User['ams'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,023 - User['ranger'] {'uid': None, 'gid': 'hadoop', 'groups': ['ranger', 'hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,024 - User['tez'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop', 'users'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,025 - User['ambari-qa'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop', 'users'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,025 - User['hdfs'] {'uid': None, 'gid': 'hadoop', 'groups': ['hdfs', 'hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,026 - User['yarn'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,027 - User['mapred'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,027 - User['hbase'] {'uid': None, 'gid': 'hadoop', 'groups': ['hadoop'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,028 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0o555}
2025-11-18 19:01:40,028 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2025-11-18 19:01:40,033 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
2025-11-18 19:01:40,034 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'mode': 0o775, 'create_parents': True, 'cd_access': 'a'}
2025-11-18 19:01:40,034 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0o555}
2025-11-18 19:01:40,034 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0o555}
2025-11-18 19:01:40,035 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2025-11-18 19:01:40,041 - call returned (0, '1010')
2025-11-18 19:01:40,042 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1010'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2025-11-18 19:01:40,046 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1010'] due to not_if
2025-11-18 19:01:40,046 - Group['hdfs'] {}
2025-11-18 19:01:40,046 - User['hdfs'] {'groups': ['hdfs', 'hadoop', 'hdfs'], 'fetch_nonlocal_groups': True}
2025-11-18 19:01:40,047 - FS Type: HDFS
2025-11-18 19:01:40,047 - Directory['/etc/hadoop'] {'mode': 0o755}
2025-11-18 19:01:40,052 - File['/usr/odp/1.3.1.0-174/hadoop/conf/hadoop-env.sh'] {'owner': 'hdfs', 'group': 'hadoop', 'content': InlineTemplate(...)}
2025-11-18 19:01:40,052 - Writing File['/usr/odp/1.3.1.0-174/hadoop/conf/hadoop-env.sh'] because contents don't match
2025-11-18 19:01:40,053 - Changing owner for /tmp/tmp1763479900.052947_606 from 0 to hdfs
2025-11-18 19:01:40,053 - Changing group for /tmp/tmp1763479900.052947_606 from 0 to hadoop
2025-11-18 19:01:40,053 - Moving /tmp/tmp1763479900.052947_606 to /usr/odp/1.3.1.0-174/hadoop/conf/hadoop-env.sh
2025-11-18 19:01:40,056 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 0o1777}
2025-11-18 19:01:40,075 - Skipping param: hdfs_user_keytab, due to Configuration parameter 'hdfs_user_keytab' was not found in configurations dictionary!
2025-11-18 19:01:40,075 - Execute[('setenforce', '0')] {'only_if': 'test -f /selinux/enforce', 'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True}
2025-11-18 19:01:40,083 - Skipping Execute[('setenforce', '0')] due to not_if
2025-11-18 19:01:40,083 - Directory['/var/log/hadoop'] {'create_parents': True, 'owner': 'root', 'group': 'hadoop', 'mode': 0o775, 'cd_access': 'a'}
2025-11-18 19:01:40,085 - Directory['/var/run/hadoop'] {'create_parents': True, 'owner': 'root', 'group': 'root', 'cd_access': 'a'}
2025-11-18 19:01:40,086 - Directory['/var/run/hadoop/hdfs'] {'owner': 'hdfs', 'cd_access': 'a'}
2025-11-18 19:01:40,086 - Directory['/tmp/hadoop-hdfs'] {'create_parents': True, 'owner': 'hdfs', 'cd_access': 'a'}
2025-11-18 19:01:40,087 - File['/usr/odp/1.3.1.0-174/hadoop/conf/commons-logging.properties'] {'owner': 'hdfs', 'content': Template('commons-logging.properties.j2')}
2025-11-18 19:01:40,088 - Writing File['/usr/odp/1.3.1.0-174/hadoop/conf/commons-logging.properties'] because contents don't match
2025-11-18 19:01:40,088 - Changing owner for /tmp/tmp1763479900.088195_30 from 0 to hdfs
2025-11-18 19:01:40,088 - Moving /tmp/tmp1763479900.088195_30 to /usr/odp/1.3.1.0-174/hadoop/conf/commons-logging.properties
2025-11-18 19:01:40,092 - File['/usr/odp/1.3.1.0-174/hadoop/conf/health_check'] {'owner': 'hdfs', 'content': Template('health_check.j2')}
2025-11-18 19:01:40,092 - Writing File['/usr/odp/1.3.1.0-174/hadoop/conf/health_check'] because contents don't match
2025-11-18 19:01:40,092 - Changing owner for /tmp/tmp1763479900.0927174_312 from 0 to hdfs
2025-11-18 19:01:40,092 - Moving /tmp/tmp1763479900.0927174_312 to /usr/odp/1.3.1.0-174/hadoop/conf/health_check
2025-11-18 19:01:40,098 - File['/usr/odp/1.3.1.0-174/hadoop/conf/log4j.properties'] {'mode': 0o644, 'group': 'hadoop', 'owner': 'hdfs', 'content': InlineTemplate(...)}
2025-11-18 19:01:40,098 - Writing File['/usr/odp/1.3.1.0-174/hadoop/conf/log4j.properties'] because contents don't match
2025-11-18 19:01:40,098 - Changing owner for /tmp/tmp1763479900.0983925_403 from 0 to hdfs
2025-11-18 19:01:40,098 - Changing group for /tmp/tmp1763479900.0983925_403 from 0 to hadoop
2025-11-18 19:01:40,099 - Moving /tmp/tmp1763479900.0983925_403 to /usr/odp/1.3.1.0-174/hadoop/conf/log4j.properties
2025-11-18 19:01:40,105 - File['/usr/odp/1.3.1.0-174/hadoop/conf/hadoop-metrics2.properties'] {'owner': 'hdfs', 'group': 'hadoop', 'content': InlineTemplate(...)}
2025-11-18 19:01:40,105 - Writing File['/usr/odp/1.3.1.0-174/hadoop/conf/hadoop-metrics2.properties'] because contents don't match
2025-11-18 19:01:40,105 - Changing owner for /tmp/tmp1763479900.105838_261 from 0 to hdfs
2025-11-18 19:01:40,106 - Changing group for /tmp/tmp1763479900.105838_261 from 0 to hadoop
2025-11-18 19:01:40,106 - Moving /tmp/tmp1763479900.105838_261 to /usr/odp/1.3.1.0-174/hadoop/conf/hadoop-metrics2.properties
2025-11-18 19:01:40,109 - File['/usr/odp/1.3.1.0-174/hadoop/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0o755}
2025-11-18 19:01:40,111 - File['/etc/hadoop/conf/topology_mappings.data'] {'content': Template('topology_mappings.data.j2'), 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0o644, 'only_if': 'test -d /etc/hadoop/conf'}
2025-11-18 19:01:40,113 - Writing File['/etc/hadoop/conf/topology_mappings.data'] because contents don't match
2025-11-18 19:01:40,114 - Changing owner for /tmp/tmp1763479900.1140041_315 from 0 to hdfs
2025-11-18 19:01:40,114 - Changing group for /tmp/tmp1763479900.1140041_315 from 0 to hadoop
2025-11-18 19:01:40,114 - Moving /tmp/tmp1763479900.1140041_315 to /etc/hadoop/conf/topology_mappings.data
2025-11-18 19:01:40,117 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'mode': 0o755, 'only_if': 'test -d /etc/hadoop/conf'}
2025-11-18 19:01:40,120 - Skipping unlimited key JCE policy check and setup since the Java VM is not managed by Ambari
2025-11-18 19:01:40,120 - Execute[('ambari-python-wrap', '/usr/bin/odp-select', 'set', 'hadoop-hdfs-namenode', '1.3.1.0-174')] {'sudo': True}
2025-11-18 19:01:40,142 - Stack Feature Version Info: Cluster Stack=1.3, Command Stack=None, Command Version=1.3.1.0-174 -> 1.3.1.0-174
2025-11-18 19:01:40,147 - Using hadoop conf dir: /usr/odp/1.3.1.0-174/hadoop/conf
2025-11-18 19:01:40,149 - After ('ambari-python-wrap', '/usr/bin/odp-select', 'set', 'hadoop-hdfs-namenode', '1.3.1.0-174'), reloaded module params
2025-11-18 19:01:40,149 - Execute[('ambari-python-wrap', '/usr/bin/odp-select', 'set', 'hadoop-hdfs-journalnode', '1.3.1.0-174')] {'sudo': True}
2025-11-18 19:01:40,169 - Stack Feature Version Info: Cluster Stack=1.3, Command Stack=None, Command Version=1.3.1.0-174 -> 1.3.1.0-174
2025-11-18 19:01:40,174 - Using hadoop conf dir: /usr/odp/1.3.1.0-174/hadoop/conf
2025-11-18 19:01:40,175 - After ('ambari-python-wrap', '/usr/bin/odp-select', 'set', 'hadoop-hdfs-journalnode', '1.3.1.0-174'), reloaded module params
2025-11-18 19:01:40,431 - Stack Feature Version Info: Cluster Stack=1.3, Command Stack=None, Command Version=1.3.1.0-174 -> 1.3.1.0-174
2025-11-18 19:01:40,443 - Skipping param: sql_command_invoker, due to Configuration parameter 'SQL_COMMAND_INVOKER' was not found in configurations dictionary!
2025-11-18 19:01:40,444 - Execute['/usr/odp/current/ranger-admin/ews/ranger-admin-services.sh stop'] {'environment': {'JAVA_HOME': '/usr/lib/jvm/java-17-openjdk'}, 'user': 'ranger'}
2025-11-18 19:01:40,541 - File['/var/run/ranger/rangeradmin.pid'] {'action': ['delete']}
2025-11-18 19:01:40,541 - Temporarily skipping status check for RANGER service only.
2025-11-18 19:01:40,542 - Skipping param: sql_command_invoker, due to Configuration parameter 'SQL_COMMAND_INVOKER' was not found in configurations dictionary!
2025-11-18 19:01:40,542 - Skipping param: sql_command_invoker, due to Configuration parameter 'SQL_COMMAND_INVOKER' was not found in configurations dictionary!
2025-11-18 19:01:40,542 - File['/var/lib/ambari-agent/tmp/mysql-connector-java.jar'] {'content': DownloadSource('http://ambariserver.bigdata.local:7180/resources/mysql-connector-java.jar'), 'mode': 0o644}
2025-11-18 19:01:40,542 - Not downloading the file from http://ambariserver.bigdata.local:7180/resources/mysql-connector-java.jar, because /var/lib/ambari-agent/tmp/mysql-connector-java.jar already exists
2025-11-18 19:01:40,545 - Execute[('cp', '--remove-destination', '/var/lib/ambari-agent/tmp/mysql-connector-java.jar', '/usr/odp/current/ranger-admin/ews/lib')] {'path': ['/bin', '/usr/bin/'], 'sudo': True}
2025-11-18 19:01:40,550 - File['/usr/odp/current/ranger-admin/ews/lib/mysql-connector-java.jar'] {'mode': 0o644}
2025-11-18 19:01:40,551 - ModifyPropertiesFile['/usr/odp/current/ranger-admin/install.properties'] {'properties': ..., 'owner': 'ranger'}
2025-11-18 19:01:40,551 - Modifying existing properties file: /usr/odp/current/ranger-admin/install.properties
2025-11-18 19:01:40,554 - File['/usr/odp/current/ranger-admin/install.properties'] {'content': ..., 'owner': 'ranger', 'group': None, 'mode': None, 'encoding': 'utf-8'}
2025-11-18 19:01:40,554 - Writing File['/usr/odp/current/ranger-admin/install.properties'] because contents don't match
2025-11-18 19:01:40,555 - Changing owner for /tmp/tmp1763479900.5551038_917 from 0 to ranger
2025-11-18 19:01:40,555 - Moving /tmp/tmp1763479900.5551038_917 to /usr/odp/current/ranger-admin/install.properties
2025-11-18 19:01:40,558 - ModifyPropertiesFile['/usr/odp/current/ranger-admin/install.properties'] {'properties': {'SQL_CONNECTOR_JAR': '/usr/odp/current/ranger-admin/ews/lib/mysql-connector-java.jar'}, 'owner': 'ranger'}
2025-11-18 19:01:40,558 - Modifying existing properties file: /usr/odp/current/ranger-admin/install.properties
2025-11-18 19:01:40,559 - File['/usr/odp/current/ranger-admin/install.properties'] {'content': ..., 'owner': 'ranger', 'group': None, 'mode': None, 'encoding': 'utf-8'}
2025-11-18 19:01:40,559 - Writing File['/usr/odp/current/ranger-admin/install.properties'] because contents don't match
2025-11-18 19:01:40,559 - Changing owner for /tmp/tmp1763479900.559722_463 from 0 to ranger
2025-11-18 19:01:40,559 - Moving /tmp/tmp1763479900.559722_463 to /usr/odp/current/ranger-admin/install.properties
2025-11-18 19:01:40,563 - ModifyPropertiesFile['/usr/odp/current/ranger-admin/install.properties'] {'properties': {'audit_store': 'solr'}, 'owner': 'ranger'}
2025-11-18 19:01:40,563 - Modifying existing properties file: /usr/odp/current/ranger-admin/install.properties
2025-11-18 19:01:40,563 - File['/usr/odp/current/ranger-admin/install.properties'] {'content': ..., 'owner': 'ranger', 'group': None, 'mode': None, 'encoding': 'utf-8'}
2025-11-18 19:01:40,563 - Writing File['/usr/odp/current/ranger-admin/install.properties'] because contents don't match
2025-11-18 19:01:40,564 - Changing owner for /tmp/tmp1763479900.5639365_456 from 0 to ranger
2025-11-18 19:01:40,564 - Moving /tmp/tmp1763479900.5639365_456 to /usr/odp/current/ranger-admin/install.properties
2025-11-18 19:01:40,566 - Setting up Ranger DB and DB User
2025-11-18 19:01:40,567 - Execute['ambari-python-wrap /usr/odp/current/ranger-admin/dba_script.py -q'] {'environment': {'RANGER_ADMIN_HOME': '/usr/odp/current/ranger-admin', 'JAVA_HOME': '/usr/lib/jvm/java-17-openjdk'}, 'logoutput': True, 'user': 'ranger'}
2025-11-18 19:01:40,634 [I] Running DBA setup script. QuiteMode:True
2025-11-18 19:01:40,634 [I] Using Java:/usr/lib/jvm/java-17-openjdk/bin/java
2025-11-18 19:01:40,634 [I] DB FLAVOR:MYSQL
2025-11-18 19:01:40,634 [I] DB Host:localhost
2025-11-18 19:01:40,634 [I] ---------- Verifying DB root password ----------
2025-11-18 19:01:40,634 [I] DBA root user password validated
2025-11-18 19:01:40,635 [I] ---------- Verifying Ranger Admin db user password ----------
2025-11-18 19:01:40,635 [I] admin user password validated
2025-11-18 19:01:40,635 [I] ---------- Creating Ranger Admin db user ----------
2025-11-18 19:01:40,635 [JISQL] /usr/lib/jvm/java-17-openjdk/bin/java -cp /usr/odp/current/ranger-admin/ews/lib/mysql-connector-java.jar:/usr/odp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://localhost/mysql?useSSL=false -u root -p '***' -noheader -trim -c ; -query "SELECT version();"
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
SQLException : SQL state: 08001 java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed ErrorCode: 0
2025-11-18 19:01:40,972 [E] Can't establish db connection.. Exiting..
Command failed after 1 tries