Home Forums HDP on Linux – Installation Ambari MySQL install failure

Tagged: 

This topic contains 5 replies, has 4 voices, and was last updated by  Ben Han 5 months, 3 weeks ago.

  • Creator
    Topic
  • #52318

    Bruno Sarlandie
    Participant

    System CentOS 6.5 (Final), Kernel 2.6.32-431.el6.x86_64, 1 server + 2 virtualbox,
    On install of MySQL, (mysql removed before installation) :
    stderr:
    Traceback (most recent call last):
    File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/mysql_server.py”, line 70, in <module>
    MysqlServer().execute()
    File “/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py”, line 106, in execute
    method(env)
    File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/mysql_server.py”, line 30, in install
    self.configure(env)
    File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/mysql_server.py”, line 51, in configure
    mysql_service(daemon_name=params.daemon_name, action=’stop’)
    File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/mysql_service.py”, line 35, in mysql_service
    logoutput=logoutput)
    File “/usr/lib/python2.6/site-packages/resource_management/core/base.py”, line 148, in __init__
    self.env.run()
    File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 149, in run
    self.run_action(resource, action)
    File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 115, in run_action
    provider_action()
    File “/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py”, line 235, in action_run
    wait_for_finish=self.resource.wait_for_finish, timeout=self.resource.timeout)
    File “/usr/lib/python2.6/site-packages/resource_management/core/shell.py”, line 35, in checked_call
    return _call(command, logoutput, True, cwd, env, preexec_fn, user, wait_for_finish, timeout)
    File “/usr/lib/python2.6/site-packages/resource_management/core/shell.py”, line 86, in _call
    Logger.info(out)
    File “/usr/lib/python2.6/site-packages/resource_management/core/logger.py”, line 35, in info
    Logger.logger.info(Logger.get_protected_text(text))
    File “/usr/lib/python2.6/site-packages/resource_management/core/logger.py”, line 55, in get_protected_text
    text = text.replace(unprotected_string, protected_string)
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 48: ordinal not in range(128)

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #53022

    Ben Han
    Participant

    It s probably due to locales problems when service mysqls stop is called. Here in France it returns “specials” characters Arrêt
    I managed to pass the step by adding LANG=C to the command in /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/mysql_service.py”, line 35
    Don’t know how to clean solve the problem for the moment.

    Collapse
    #52749

    Vincent Gromakowski
    Participant

    Same error here on French Centos 6.5
    I didn’t use any special character in Hive

    Collapse
    #52402

    Jeff Sposetti
    Moderator

    Thanks for the follow-up info. Can you post the contents of this file?

    $ more /etc/sysconfig/i18n

    And also the output of this command?

    $ locale

    Collapse
    #52388

    Bruno Sarlandie
    Participant

    No, just a very simple password like “hivepwd”.
    I removed the “!p” at the end of the password field in the command, and it was ok.
    Many problem identical (UnicodeDecodeError) on module logger.py when the logger output the command (info log).
    The linux server configuration (Centos 6) is in french fr_FR.

    Collapse
    #52353

    Jeff Sposetti
    Moderator

    Do you happen to setting hive password with any special chars?

    Collapse
Viewing 5 replies - 1 through 5 (of 5 total)