Ranger初始化报错

2021-12-10 16:44:49,584   --------- Running Ranger PolicyManager Web Application Install Script ---------
2021-12-10 16:44:49,587  [I] uname=Linux
2021-12-10 16:44:49,590  [I] hostname=master
2021-12-10 16:44:49,597  [I] DB_FLAVOR=MYSQL
2021-12-10 16:44:49,603  [I] Audit source=
2021-12-10 16:44:49,606  [I] Checking distribution name..
2021-12-10 16:44:49,618  [I] Found distribution : CentOS
2021-12-10 16:44:49,620  [I] check if command /app/software/jdk1.8.0_201/bin/java exists
2021-12-10 16:44:49,622  [I] '/app/software/jdk1.8.0_201/bin/java' command found
2021-12-10 16:44:49,696  [I] Checking MYSQL CONNECTOR FILE : /mysql-connector-java-5.1.49.jar
2021-12-10 16:44:49,698  [I] MYSQL CONNECTOR FILE : /mysql-connector-java-5.1.49.jar file found
2021-12-10 16:44:49,700  [I] Setting up UNIX user : ranger and group: ranger
2021-12-10 16:44:49,709  [I] the ranger user already exists and belongs to group ranger
2021-12-10 16:44:49,713  [I] Setting up UNIX user : ranger and group: ranger DONE
2021-12-10 16:44:49,714  [I] Setting up installation files and directory
2021-12-10 16:44:49,716  [I] Copying /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/classes/conf.dist /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/classes/conf
2021-12-10 16:44:49,725  [WARN] core-site.xml file not found in provided hadoop_conf path. Creating blank core-site.xml
2021-12-10 16:44:49,727  [I] Creating /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/classes/lib
2021-12-10 16:44:49,732  [I] Setting up init.d
2021-12-10 16:44:49,738  [I] Creating script S88ranger-admin/K90ranger-admin in /etc/rc2.d directory ....
2021-12-10 16:44:49,743  [I] Creating script S88ranger-admin/K90ranger-admin in /etc/rc3.d directory ....
2021-12-10 16:44:49,749  [I] Creating script S88ranger-admin/K90ranger-admin in /etc/rc.d/rc2.d directory ....
2021-12-10 16:44:49,755  [I] Creating script S88ranger-admin/K90ranger-admin in /etc/rc.d/rc3.d directory ....
2021-12-10 16:44:49,763  [I] /app/software/ranger.shangda/ranger-2.0.0-admin/ews/logs Ranger Log folder
2021-12-10 16:44:49,774  [I] Setting up installation files and directory DONE
2021-12-10 16:44:49,793  [I] /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp folder found
2021-12-10 16:44:49,795  [I] db/mysql/optimized/current/ranger_core_db_mysql.sql file found
2021-12-10 16:44:49,797  [I] Copying MYSQL Connector to /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/lib
2021-12-10 16:44:49,804  [I] Copying MYSQL Connector to /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/lib DONE
2021-12-10 16:44:49,806  [I] check if command python exists
2021-12-10 16:44:49,808  [I] 'python' command found
2021-12-10 16:44:49,959  [I] DB FLAVOR :MYSQL
2021-12-10 16:44:49,959  [I] --------- Verifying Ranger DB connection ---------
2021-12-10 16:44:49,959  [I] Checking connection..
2021-12-10 16:44:49,959  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "select 1;"
Fri Dec 10 16:44:50 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:50,268  [I] Checking connection passed.
2021-12-10 16:44:50,278  [E] 'setup_mode' not found in /app/software/ranger.shangda/ranger-2.0.0-admin/install.properties file while getting....!!
2021-12-10 16:44:50,280  [I] Setup mode is not set. Running DBA steps..
2021-12-10 16:44:50,315  [I] Running DBA setup script. QuiteMode:True
2021-12-10 16:44:50,315  [I] Using Java:/app/software/jdk1.8.0_201/bin/java
2021-12-10 16:44:50,315  [I] DB FLAVOR:MYSQL
2021-12-10 16:44:50,315  [I] DB Host:master
2021-12-10 16:44:50,315  [I] ---------- Verifying DB root password ----------
2021-12-10 16:44:50,316  [I] DBA root user password validated
2021-12-10 16:44:50,316  [I] ---------- Verifying Ranger Admin db user password ----------
2021-12-10 16:44:50,316  [I] admin user password validated
2021-12-10 16:44:50,316  [I] ---------- Creating Ranger Admin db user ----------
2021-12-10 16:44:50,316  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "SELECT version();"
Fri Dec 10 16:44:50 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:50,632  [I] Verifying user ranger for Host %
2021-12-10 16:44:50,632  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "select user from mysql.user where user='ranger' and host='%';"
Fri Dec 10 16:44:50 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:50,947  [I] MySQL user ranger already exists for host %
2021-12-10 16:44:50,948  [I] Verifying user ranger for Host localhost
2021-12-10 16:44:50,948  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "select user from mysql.user where user='ranger' and host='localhost';"
Fri Dec 10 16:44:51 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:51,256  [I] MySQL user ranger already exists for host localhost
2021-12-10 16:44:51,256  [I] Verifying user ranger for Host master
2021-12-10 16:44:51,256  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "select user from mysql.user where user='ranger' and host='master';"
Fri Dec 10 16:44:51 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:51,566  [I] MySQL user ranger already exists for host master
2021-12-10 16:44:51,566  [I] ---------- Creating Ranger Admin database ----------
2021-12-10 16:44:51,566  [I] Verifying database ranger
2021-12-10 16:44:51,566  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "show databases like 'ranger';"
Fri Dec 10 16:44:51 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:51,872  [I] Database ranger already exists.
2021-12-10 16:44:51,872  [I] ---------- Granting permission to Ranger Admin db user ----------
2021-12-10 16:44:51,872  [I] ---------- Granting privileges TO user 'ranger'@'%' on db 'ranger'----------
2021-12-10 16:44:51,872  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "grant all privileges on ranger.* to 'ranger'@'%' with grant option;"
Fri Dec 10 16:44:52 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:52,185  [I] ---------- FLUSH PRIVILEGES ----------
2021-12-10 16:44:52,185  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "FLUSH PRIVILEGES;"
Fri Dec 10 16:44:52 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:52,491  [I] Privileges granted to 'ranger' on 'ranger'
2021-12-10 16:44:52,492  [I] ---------- Granting privileges TO user 'ranger'@'localhost' on db 'ranger'----------
2021-12-10 16:44:52,492  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "grant all privileges on ranger.* to 'ranger'@'localhost' with grant option;"
Fri Dec 10 16:44:52 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:52,800  [I] ---------- FLUSH PRIVILEGES ----------
2021-12-10 16:44:52,800  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "FLUSH PRIVILEGES;"
Fri Dec 10 16:44:53 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:53,103  [I] Privileges granted to 'ranger' on 'ranger'
2021-12-10 16:44:53,103  [I] ---------- Granting privileges TO user 'ranger'@'master' on db 'ranger'----------
2021-12-10 16:44:53,103  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "grant all privileges on ranger.* to 'ranger'@'master' with grant option;"
Fri Dec 10 16:44:53 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:53,414  [I] ---------- FLUSH PRIVILEGES ----------
2021-12-10 16:44:53,415  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/mysql -u root -p '********' -noheader -trim -c \; -query "FLUSH PRIVILEGES;"
Fri Dec 10 16:44:53 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:53,714  [I] Privileges granted to 'ranger' on 'ranger'
2021-12-10 16:44:53,715  [I] ---------- Ranger Policy Manager DB and User Creation Process Completed..  ----------
2021-12-10 16:44:53,722  [I] /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-site.xml file found
2021-12-10 16:44:53,724  [I] /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-default-site.xml file found
Starting configuration for Ranger DB credentials:
Using Java:/app/software/jdk1.8.0_201/bin/java
Alias ranger.db.password created successfully!
Using Java:/app/software/jdk1.8.0_201/bin/java
Alias unixAuthKeyStoreAlias created successfully!
Using Java:/app/software/jdk1.8.0_201/bin/java
Alias unixAuthTrustStoreAlias created successfully!
2021-12-10 16:44:56,556  [I] Starting setup based on user authentication method=NONE
/app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp
2021-12-10 16:44:56,580  [I] Finished setup based on user authentication method=NONE
ln -sf /app/software/ranger.shangda/ranger-2.0.0-admin/ews/webapp/WEB-INF/classes/conf /app/software/ranger.shangda/ranger-2.0.0-admin/conf
2021-12-10 16:44:56,734  [I] DB FLAVOR :MYSQL
2021-12-10 16:44:56,734  [I] --------- Verifying Ranger DB connection ---------
2021-12-10 16:44:56,734  [I] Checking connection..
2021-12-10 16:44:56,734  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "select 1;"
Fri Dec 10 16:44:56 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:57,039  [I] Checking connection passed.
2021-12-10 16:44:57,039  [I] --------- Verifying version history table ---------
2021-12-10 16:44:57,039  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "show tables like 'x_db_version_h';"
Fri Dec 10 16:44:57 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:57,348  [I] Table x_db_version_h does not exist in database ranger
2021-12-10 16:44:57,349  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "show tables like 'x_db_version_h';"
Fri Dec 10 16:44:57 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:57,646  [I] Table x_db_version_h does not exist in database ranger
2021-12-10 16:44:57,647  [I] Importing x_db_version_h table schema to database ranger from file: create_dbversion_catalog.sql
2021-12-10 16:44:57,647  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \; -input /app/software/ranger.shangda/ranger-2.0.0-admin/db/mysql/create_dbversion_catalog.sql
Fri Dec 10 16:44:57 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:57,963  [I] create_dbversion_catalog.sql file imported successfully
2021-12-10 16:44:57,963  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "show tables like 'x_db_version_h';"
Fri Dec 10 16:44:58 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:58,264  [I] Table x_db_version_h already exists in database 'ranger'
2021-12-10 16:44:58,264  [I] --------- Importing Ranger Core DB Schema ---------
2021-12-10 16:44:58,265  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'CORE_DB_SCHEMA' and active = 'Y';"
Fri Dec 10 16:44:58 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:58,581  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'CORE_DB_SCHEMA' and active = 'N';"
Fri Dec 10 16:44:58 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:58,884  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "insert into x_db_version_h (version, inst_at, inst_by, updated_at, updated_by,active) values ('CORE_DB_SCHEMA', current_timestamp, 'Ranger 2.0.0', current_timestamp, 'master','N') ;"
Fri Dec 10 16:44:59 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:59,190  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "show tables like 'x_portal_user';"
Fri Dec 10 16:44:59 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:59,488  [I] Table x_portal_user does not exist in database ranger
2021-12-10 16:44:59,488  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "show tables like 'x_policy_ref_group';"
Fri Dec 10 16:44:59 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:44:59,794  [I] Table x_policy_ref_group does not exist in database ranger
2021-12-10 16:44:59,794  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'DB_PATCHES' and active = 'Y';"
Fri Dec 10 16:44:59 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:45:00,099  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "select version from x_db_version_h where version = 'JAVA_PATCHES' and active = 'Y';"
Fri Dec 10 16:45:00 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:45:00,410  [I] Importing DB schema to database ranger from file: ranger_core_db_mysql.sql
2021-12-10 16:45:00,410  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \; -input /app/software/ranger.shangda/ranger-2.0.0-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql
Fri Dec 10 16:45:00 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Error executing: CREATE FUNCTION `getXportalUIdByLoginId`(input_val VARCHAR(100)) RETURNS int(11) BEGIN DECLARE myid INT; SELECT x_portal_user.id into myid FROM x_portal_user WHERE x_portal_user.login_id = input_val; RETURN myid; END
java.sql.SQLException: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
SQLException : SQL state: HY000 java.sql.SQLException: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) ErrorCode: 1418
2021-12-10 16:45:02,538  [E] ranger_core_db_mysql.sql file import failed!
2021-12-10 16:45:02,538  [I] Unable to create DB schema, Please drop the database and try again
2021-12-10 16:45:02,538  [JISQL] /app/software/jdk1.8.0_201/bin/java  -cp /mysql-connector-java-5.1.49.jar:/app/software/ranger.shangda/ranger-2.0.0-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://master/ranger -u 'ranger' -p '********' -noheader -trim -c \;  -query "delete from x_db_version_h where version = 'CORE_DB_SCHEMA' and active = 'N' and updated_by='master';"
Fri Dec 10 16:45:02 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2021-12-10 16:45:02,846  [E] CORE_DB_SCHEMA import failed!
 

你可能感兴趣的:(大数据)