----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/48540/#review137277 -----------------------------------------------------------
Ship it! Ship It! - Myroslav Papirkovskyy On Червень 10, 2016, 1:23 після полудня, Andrew Onischuk wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/48540/ > ----------------------------------------------------------- > > (Updated Червень 10, 2016, 1:23 після полудня) > > > Review request for Ambari and Myroslav Papirkovskyy. > > > Bugs: AMBARI-17161 > https://issues.apache.org/jira/browse/AMBARI-17161 > > > Repository: ambari > > > 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 > > > Diffs > ----- > > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/addMysqlUser.sh > 36ed58f > > Diff: https://reviews.apache.org/r/48540/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Andrew Onischuk > >