Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2444 | 04-27-2020 03:48 AM | |
4877 | 04-26-2020 06:18 PM | |
3976 | 04-26-2020 06:05 PM | |
3217 | 04-13-2020 08:53 PM | |
4924 | 03-31-2020 02:10 AM |
08-21-2019
01:55 AM
@Manoj690 As we see the mentioned message "require_secure_transport=ON" in your exception which indicates that you might have configured your MySQL to allow secure connections. You can find that setting inside the "/etc/my.cnf" Option-1). Hence ether you will need to disable that setting from mysql config and restart MySQL. If it is ON means it is enabled. # grep 'require_secure_transport' /etc/my.cnf
require_secure_transport = OFF
# systemctl restart mysql.service Option-2). OR you will need to Get the MySQL service certificate and then make sure that you import the MySQL certificate inside the AmbariServer truststore OR insie the JDK cacert in which your AmbariServer is running. Example: Importing MySQL CA Certificate in AmbariServer's JDK Truststore : # /usr/jdk64/jdk1.8.0_112/bin/keytool -import -file /tmp/mysql_cert.pem -alias mysql_ambari -keystore /usr/jdk64/jdk1.8.0_112/jre/lib/security/cacerts The restart AmbariServer. # ambari-server restart .
... View more
08-21-2019
12:40 AM
@Manoj690 This is a completely different error ... Please open a separate Topic for detailed discussion and close this Thread. --require_secure_transport=ON Caused by: java.sql.SQLException: Connections using insecure transport are prohibited while --require_secure_transport=ON.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973) https://mysqlserverteam.com/restricting-connections-to-secure-transport/
... View more
08-21-2019
12:08 AM
@Manoj690 As you created a DB user CREATE USER 'ambari'@'gaian-lap386.com' IDENTIFIED BY 'bigdata';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'gaian-lap386.com';
FLUSH PRIVILEGES; Please make sure that your ambari server host name is correct. Is it "gaian-lap386.com" your AmbariServer FQDN? Are you running AmbariServer and MYSQL Server on the same host "gaian-lap386.com" ?
... View more
08-20-2019
11:59 PM
@Manoj690 As we still see the error : Caused by: java.sql.SQLException: Access denied for user 'ambari'@'gaian-lap386.com' (using password: YES) Are you sure that you are using correct password for ambari user? Also after executing the following query have you run the "FLUSH PRIVILEGES" command? At the end? CREATE USER 'ambari'@'%' IDENTIFIED BY 'bigdata';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%';
CREATE USER 'ambari'@'localhost' IDENTIFIED BY 'bigdata';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost';
CREATE USER 'ambari'@'gaian-lap386.com' IDENTIFIED BY 'bigdata';
GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'gaian-lap386.com';
FLUSH PRIVILEGES; Password as 'bigdata' is just dummy here. You will need to use your own password. .
... View more
08-20-2019
11:45 PM
@Manoj690 Please share the output of the following SQL query.. I do not think that you have correct privileges # mysql -u root -p
Enter Password:
mysql> use mysql;
mysql> SELECT user, host FROM user;
+--------+---------------------+
| user | host |
+--------+---------------------+
| root | % |
| root | 127.0.0.1 |
| root | ::1 |
| ambari | % |
| ambari | localhost |
| ambari | gaian-lap386.com |
+--------+---------------------+ Do you see above kind of entry in your MySQL DB table?
... View more
08-20-2019
08:32 PM
@Jeongtaek Please ignore my previous comment. I reread your query and looks like you are not running the query explicitly rather the hive process is executing such query on MariaDB and failing. I was reading something similar for PostgreSQL where it provides a special property to avoid such issues standard_conforming_strings = off in postgresql.conf Similar discussion for PostgreSQL: https://grokbase.com/t/hive/user/131qf335q5/problem-with-using-postgres-as-hive-meta-store-db So i think that in MariaDB also there might be some setting to avoid similar failures with string literals with escape chars. I will do bit more research on MariaDB ...
... View more
08-20-2019
08:06 PM
@Jeongtaek Your Query seems to be partially correct. Except the LIKE ? ESCAPE '\\'' part. MariaDB [hive]> SELECT this.name AS NUCORDER0 FROM DBS this WHERE ( LOWER(this.name) LIKE 'default' ) ORDER BY NUCORDER0 ;
+-----------+
| NUCORDER0 |
+-----------+
| default |
+-----------+ - Can you please let us know what do you want to match in the LIKE condition? - Can you please share some example of DBS names that you want to filter using LIKE clause?
... View more
08-20-2019
01:57 AM
@Manoj690 Can you please try this: Try changing the "ping_port" of ambari agent in the following file: (default port is 8670 may be try changing it to 8671 or something unused) # grep '8670' /etc/ambari-agent/conf/ambari-agent.ini
ping_port=8670 After changing the port please try this: # netstat -tnlpa | grep 8670
# kill -9 $PID_from_above_command
# rm -f /var/run/ambari-agent/ambari-agent.pid
# ambari-agent start .
... View more
08-19-2019
09:42 PM
@irfangk1 You can find more details about headless / service principals/keytabs in the following doc: https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/authentication-with-kerberos/content/kerberos_principals.html
... View more
08-19-2019
09:34 PM
@irfangk1 From Standard Kerberos perspective there is no command to differentiate between headless/service keytab. However, we can differentiate between headless / service keytabs you can find the detailed discussion about it in the following thread: https://community.cloudera.com/t5/Support-Questions/Headless-Keytab-Vs-User-Keytab-Vs-Service-Keytab/m-p/175276 Try running the following command on your keytab: Headless keytab Headless principals are not bound to a specific host or node, they have the syntax: - @EXAMPLE.COM # klist -kte /etc/security/keytabs/hdfs.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
2 08/11/2019 01:58:27 hdfs-ker1latest@EXAMPLE.COM (des-cbc-md5)
2 08/11/2019 01:58:27 hdfs-ker1latest@EXAMPLE.COM (aes256-cts-hmac-sha1-96)
2 08/11/2019 01:58:27 hdfs-ker1latest@EXAMPLE.COM (des3-cbc-sha1)
2 08/11/2019 01:58:27 hdfs-ker1latest@EXAMPLE.COM (arcfour-hmac)
2 08/11/2019 01:58:27 hdfs-ker1latest@EXAMPLE.COM (aes128-cts-hmac-sha1-96) If it is truly a headless keytab then it will not have a principal specific to a Host. Service keytab Service principal is something that does not need to be a POSIX user,they are mostly applications that have own arrangement on how they run on the OS level and need to interact with the Kerberized cluster. Notice it's principal name has hostname included. Example: # klist -kte /etc/security/keytabs/nn.service.keytab
Keytab name: FILE:/etc/security/keytabs/nn.service.keytab
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
2 08/11/2019 01:58:40 nn/ker1latest1.example.com@EXAMPLE.COM (des-cbc-md5)
2 08/11/2019 01:58:40 nn/ker1latest1.example.com@EXAMPLE.COM (aes256-cts-hmac-sha1-96)
2 08/11/2019 01:58:40 nn/ker1latest1.example.com@EXAMPLE.COM (des3-cbc-sha1)
2 08/11/2019 01:58:40 nn/ker1latest1.example.com@EXAMPLE.COM (arcfour-hmac)
2 08/11/2019 01:58:40 nn/ker1latest1.example.com@EXAMPLE.COM (aes128-cts-hmac-sha1-96) .
... View more