[ https://issues.apache.org/jira/browse/AMBARI-17161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327588#comment-15327588 ]
Hudson commented on AMBARI-17161: --------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #5065 (See [https://builds.apache.org/job/Ambari-trunk-Commit/5065/]) AMBARI-17161. Ubuntu 16, Hive Metastore Start failed (aonishuk) (aonishuk: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=18d24e55e2f9b48a6353113bda1a55cb71295651]) * ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/addMysqlUser.sh > Ubuntu 16, Hive Metastore Start failed > -------------------------------------- > > Key: AMBARI-17161 > URL: https://issues.apache.org/jira/browse/AMBARI-17161 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 2.4.0 > > Attachments: AMBARI-17161.patch > > > /var/lib/ambari-agent/tmp/addMysqlUser.sh didn't add mysql user. > > > + echo 'Adding user hive@% and removing users with empty name' > Adding user hive@% and removing users with empty name > + /var/lib/ambari-agent/ambari-sudo.sh su mysql -s /bin/bash - -c 'mysql > -u root -e "CREATE USER '\''hive'\''@'\''%'\'' IDENTIFIED BY '\''h'\'';"' > ERROR 1698 (28000): Access denied for user 'root'@'localhost' > + /var/lib/ambari-agent/ambari-sudo.sh su mysql -s /bin/bash - -c 'mysql > -u root -e "GRANT ALL PRIVILEGES ON *.* TO '\''hive'\''@'\''%'\'';"' > ERROR 1698 (28000): Access denied for user 'root'@'localhost' > + /var/lib/ambari-agent/ambari-sudo.sh su mysql -s /bin/bash - -c 'mysql > -u root -e "DELETE FROM mysql.user WHERE user='\'''\'';"' > ERROR 1698 (28000): Access denied for user 'root'@'localhost' > + /var/lib/ambari-agent/ambari-sudo.sh su mysql -s /bin/bash - -c 'mysql > -u root -e "flush privileges;"' > ERROR 1698 (28000): Access denied for user 'root'@'localhost' > + /var/lib/ambari-agent/ambari-sudo.sh service mysql stop > -- This message was sent by Atlassian JIRA (v6.3.4#6332)