ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Brodetskyi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-13739) RESTART ZOOKEEPER_SERVER failed after Upgrade from 1.6.1 to 2.1.3
Date Thu, 05 Nov 2015 13:01:27 GMT

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

Vitaly Brodetskyi updated AMBARI-13739:
---------------------------------------
    Attachment: AMBARI-13739.patch

> RESTART ZOOKEEPER_SERVER failed after Upgrade from 1.6.1 to 2.1.3
> -----------------------------------------------------------------
>
>                 Key: AMBARI-13739
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13739
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.3
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Blocker
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-13739.patch
>
>
> STR:
> 1)Deploy old version 1.6.1
> 2)Enable/Disable security (MIT)
> 3)Make Ambari only upgrade to 2.1.3
> Actual results:
> RESTART ZOOKEEPER_SERVER failed after Upgrade from 1.6.1 to 2.1.3
> {code}
>   {
>   "href" : "http://172.22.87.177:8080/api/v1/clusters/cl1/requests/11/tasks/501",
>   "Tasks" : {
>     "attempt_cnt" : 1,
>     "cluster_name" : "cl1",
>     "command" : "CUSTOM_COMMAND",
>     "command_detail" : "RESTART ZOOKEEPER/ZOOKEEPER_SERVER",
>     "custom_command_name" : "RESTART",
>     "end_time" : 1446626534832,
>     "error_log" : "/var/lib/ambari-agent/data/errors-501.txt",
>     "exit_code" : 1,
>     "host_name" : "amb-upg161-rhel6mysql1446600673-3.novalocal",
>     "id" : 501,
>     "output_log" : "/var/lib/ambari-agent/data/output-501.txt",
>     "request_id" : 11,
>     "role" : "ZOOKEEPER_SERVER",
>     "stage_id" : 0,
>     "start_time" : 1446626531540,
>     "status" : "FAILED",
>     "stderr" : "Traceback (most recent call last):\n  File \"/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py\",
line 179, in <module>\n    ZookeeperServer().execute()\n  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
line 218, in execute\n    method(env)\n  File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
line 486, in restart\n    self.stop(env, upgrade_type=upgrade_type)\n  File \"/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_server.py\",
line 60, in stop\n    zookeeper_service(action='stop', upgrade_type=upgrade_type)\n  File
\"/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py\", line 89, in thunk\n
   return fn(*args, **kwargs)\n  File \"/var/lib/ambari-agent/cache/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/zookeeper_service.py\",
line 36, in zookeeper_service\n    hdp_select.select(\"zookeeper-server\", params.version)\n
 File \"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/hdp_select.py\",
line 116, in select\n    Execute(command, sudo=True)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\",
line 154, in __init__\n    self.env.run()\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\",
line 156, in run\n    self.run_action(resource, action)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\",
line 119, in run_action\n    provider_action()\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\",
line 238, in action_run\n    tries=self.resource.tries, try_sleep=self.resource.try_sleep)\n
 File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 70, in
inner\n    result = function(command, **kwargs)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\",
line 92, in checked_call\n    tries=tries, try_sleep=try_sleep)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\",
line 140, in _call_wrapper\n    result = _call(command, **kwargs_copy)\n  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\",
line 291, in _call\n    raise Fail(err_msg)\nresource_management.core.exceptions.Fail: Execution
of 'hdp-select set zookeeper-server 2.1.0.0-0001' returned 127. /var/lib/ambari-agent/ambari-sudo.sh:
line 50: hdp-select: command not found",
>     "stdout" : "2015-11-04 08:42:14,133 - Group['hadoop'] {}\n2015-11-04 08:42:14,135
- Group['nobody'] {}\n2015-11-04 08:42:14,135 - Group['users'] {}\n2015-11-04 08:42:14,135
- User['hive'] {'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,137 - User['oozie']
{'gid': 'hadoop', 'groups': ['users']}\n2015-11-04 08:42:14,138 - User['nobody'] {'gid': 'hadoop',
'groups': ['nobody']}\n2015-11-04 08:42:14,139 - User['ambari-qa'] {'gid': 'hadoop', 'groups':
['users']}\n2015-11-04 08:42:14,140 - User['hdfs'] {'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04
08:42:14,142 - User['storm'] {'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,143
- User['mapred'] {'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,144 - User['hbase']
{'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,145 - User['tez'] {'gid': 'hadoop',
'groups': ['users']}\n2015-11-04 08:42:14,146 - User['zookeeper'] {'gid': 'hadoop', 'groups':
['hadoop']}\n2015-11-04 08:42:14,147 - User['falcon'] {'gid': 'hadoop', 'groups': ['users']}\n2015-11-04
08:42:14,148 - User['sqoop'] {'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,150
- User['yarn'] {'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,152 - User['hcat']
{'gid': 'hadoop', 'groups': ['hadoop']}\n2015-11-04 08:42:14,153 - File['/var/lib/ambari-agent/tmp/changeUid.sh']
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}\n2015-11-04 08:42:14,155 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh
ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
{'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}\n2015-11-04 08:42:14,165 - Skipping
Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
due to not_if\n2015-11-04 08:42:14,166 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase',
'recursive': True, 'mode': 0775, 'cd_access': 'a'}\n2015-11-04 08:42:14,169 - File['/var/lib/ambari-agent/tmp/changeUid.sh']
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}\n2015-11-04 08:42:14,170 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh
hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test
$(id -u hbase) -gt 1000) || (false)'}\n2015-11-04 08:42:14,180 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh
hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if\n2015-11-04
08:42:14,181 - Group['hdfs'] {'ignore_failures': False}\n2015-11-04 08:42:14,181 - User['hdfs']
{'ignore_failures': False, 'groups': ['hadoop', 'hdfs']}\n2015-11-04 08:42:14,183 - Directory['/etc/hadoop']
{'mode': 0755}\n2015-11-04 08:42:14,184 - Directory['/etc/hadoop/conf.empty'] {'owner': 'root',
'group': 'hadoop', 'recursive': True}\n2015-11-04 08:42:14,184 - Link['/etc/hadoop/conf']
{'not_if': 'ls /etc/hadoop/conf', 'to': '/etc/hadoop/conf.empty'}\n2015-11-04 08:42:14,193
- Skipping Link['/etc/hadoop/conf'] due to not_if\n2015-11-04 08:42:14,222 - File['/etc/hadoop/conf/hadoop-env.sh']
{'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}\n2015-11-04 08:42:14,223
- Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group':
'hadoop', 'mode': 0777}\n2015-11-04 08:42:14,239 - Execute[('setenforce', '0')] {'not_if':
'(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo':
True, 'only_if': 'test -f /selinux/enforce'}\n2015-11-04 08:42:14,273 - Directory['/grid/0/log/hadoop']
{'owner': 'root', 'mode': 0775, 'group': 'hadoop', 'recursive': True, 'cd_access': 'a'}\n2015-11-04
08:42:14,274 - Directory['/var/run/hadoop'] {'owner': 'root', 'group': 'root', 'recursive':
True, 'cd_access': 'a'}\n2015-11-04 08:42:14,275 - Directory['/tmp/hadoop-hdfs'] {'owner':
'hdfs', 'recursive': True, 'cd_access': 'a'}\n2015-11-04 08:42:14,283 - File['/etc/hadoop/conf/commons-logging.properties']
{'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}\n2015-11-04 08:42:14,286
- File['/etc/hadoop/conf/health_check'] {'content': Template('health_check.j2'), 'owner':
'hdfs'}\n2015-11-04 08:42:14,287 - File['/etc/hadoop/conf/log4j.properties'] {'content': ...,
'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}\n2015-11-04 08:42:14,305 - File['/etc/hadoop/conf/hadoop-metrics2.properties']
{'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs'}\n2015-11-04 08:42:14,306
- File['/etc/hadoop/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'),
'mode': 0755}\n2015-11-04 08:42:14,307 - File['/etc/hadoop/conf/configuration.xsl'] {'owner':
'hdfs', 'group': 'hadoop'}\n2015-11-04 08:42:14,314 - File['/etc/hadoop/conf/topology_mappings.data']
{'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf',
'group': 'hadoop'}\n2015-11-04 08:42:14,324 - File['/etc/hadoop/conf/topology_script.py']
{'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode':
0755}\n2015-11-04 08:42:14,544 - Execute[('hdp-select', 'set', 'zookeeper-server', '2.1.0.0-0001')]
{'sudo': True}",
>     "structured_out" : { }
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message