Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMBARI-23101. Rhel6: Deploy with NewMySQL for Hive fails #488

Merged
merged 1 commit into from
Mar 1, 2018

Conversation

aonishuk
Copy link
Contributor

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py", line 64, in
MysqlServer().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py", line 34, in install
self.configure(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 120, in locking_configure
original_configure(obj, *args, **kw)
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py", line 44, in configure
mysql_configure()
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_utils.py", line 34, in mysql_configure
mysql_users.mysql_adduser()
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_users.py", line 44, in mysql_adduser
path='/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in init
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'bash -x /var/lib/ambari-agent/tmp/addMysqlUser.sh mysqld hive [PROTECTED] ctr-e138-1518143905142-49064-01-000005.hwx.site' returned 1. + mysqldservice=mysqld

  • mysqldbuser=hive
  • mysqldbpasswd=password
  • userhost=ctr-e138-1518143905142-49064-01-000005.hwx.site
  • /var/lib/ambari-agent/ambari-sudo.sh service mysqld restart
    mysqld: unrecognized service
  • 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 mysql -u root -e 'CREATE USER '''hive'''@'''%''' IDENTIFIED BY '''password''';'
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
  • /var/lib/ambari-agent/ambari-sudo.sh mysql -u root -e 'GRANT ALL PRIVILEGES ON . TO '''hive'''@'''%''';'
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
  • /var/lib/ambari-agent/ambari-sudo.sh mysql -u root -e 'DELETE FROM mysql.user WHERE user='''''';'
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
  • /var/lib/ambari-agent/ambari-sudo.sh mysql -u root -e 'flush privileges;'
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
  • /var/lib/ambari-agent/ambari-sudo.sh service mysqld stop
    mysqld: unrecognized service

@aonishuk aonishuk self-assigned this Feb 27, 2018
@aonishuk aonishuk requested a review from swagle February 27, 2018 20:11
@asfgit
Copy link

asfgit commented Feb 28, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/854/
Test FAILed.
Test FAILured.

@swagle swagle merged commit 74b6a45 into apache:branch-2.6 Mar 1, 2018
mpapirkovskyy pushed a commit to mpapirkovskyy/ambari that referenced this pull request Apr 12, 2019
…pache#488)

(cherry picked from commit 74b6a45)

Change-Id: I94e265bd63546aaa08f47e51bd40bb00be23b64d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants