[ 
https://issues.apache.org/jira/browse/AMBARI-17161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Onischuk updated AMBARI-17161:
-------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to trunk and branch-2.4

> 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)

Reply via email to