You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2017/11/29 22:27:00 UTC

[jira] [Commented] (AMBARI-22547) History and Hive server start failed during IOP migration with AttributeError

    [ https://issues.apache.org/jira/browse/AMBARI-22547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16271656#comment-16271656 ] 

Hudson commented on AMBARI-22547:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #503 (See [https://builds.apache.org/job/Ambari-branch-2.6/503/])
AMBARI-22547 - History and Hive server start failed during IOP migration (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ec846e18042dfe15d1035e4d1f24af2ed97a2679])
* (edit) ambari-common/src/main/python/resource_management/libraries/functions/copy_tarball.py
* (edit) ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py


> History and Hive server start failed during IOP migration with AttributeError
> -----------------------------------------------------------------------------
>
>                 Key: AMBARI-22547
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22547
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.6.1
>            Reporter: Vivek Sharma
>            Assignee: Jonathan Hurley
>            Priority: Blocker
>             Fix For: 2.6.1
>
>         Attachments: AMBARI-22547.patch
>
>
> *STR*
> # Deployed cluster with Ambari version: 2.4.2.0_IBM_000000 and HDP version: 4.2.5.0-0000 (LZO is enabled in HDFS configs)
> # Upgrade Ambari to Target Version: 2.6.1.0-64 | Hash: cd4db8e9ac0ea7ce14fc1253959a121688f34952
> # Register HDP-2.6.4.0-51 version and call remove iop-slect
> # Install the bits and start EU
> *Result*
> History server start failed with below error:
> {code}
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", line 129, in <module>
>     HistoryServer().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
>     method(env)
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 946, in restart
>     self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
>   File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/historyserver.py", line 81, in pre_upgrade_restart
>     copy_to_hdfs("tez", params.user_group, params.hdfs_user, skip=params.sysprep_skip_copy_tarballs_hdfs)
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/copy_tarball.py", line 464, in copy_to_hdfs
>     source_file = prepare_function()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/copy_tarball.py", line 94, in _prepare_tez_tarball
>     hadoop_lib_native_lzo_dir = os.path.join(stack_root, tez_version, "hadoop", "lib", "native")
>   File "/usr/lib64/python2.6/posixpath.py", line 65, in join
>     if b.startswith('/'):
> AttributeError: 'NoneType' object has no attribute 'startswith'
> {code}
> The error looks to be due to lzo changes, as the following code has the issue:
> {code}
> # if enabled, LZO GPL libraries must be copied as well
>      91   if lzo_utils.should_install_lzo():
>      92     stack_root = Script.get_stack_root()
>      93     tez_version = component_version.get_component_repository_version("TEZ")
>      94     hadoop_lib_native_lzo_dir = os.path.join(stack_root, tez_version, "hadoop", "lib", "native")
>      95
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)