Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-17161

Ubuntu 16, Hive Metastore Start failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      /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

      Attachments

        1. AMBARI-17161.patch
          2 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: