ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Di Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-11961) Knox fails service check during rolling upgrade due to wrong port in dfs.namenode.rpc-address
Date Mon, 22 Jun 2015 12:21:00 GMT

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

Di Li commented on AMBARI-11961:
--------------------------------

The same issue has also been reported, fixed, committed to trunk via 
AMBARI-12039. After Ambari Upgrade Knox fails to start.(vbrodetskyi)
Vitaly Brodetskyi authored on 20/06/2015 03:20:31

This is probably why my patch didn't apply, as it would have overwritten the same block of
code.

> Knox fails service check during rolling upgrade due to wrong port in dfs.namenode.rpc-address
> ---------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-11961
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11961
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Di Li
>            Assignee: Di Li
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11961.patch
>
>
> This is related to JIRA AMBARI-11750. 
> When NameNode HA is enabled, the fs.defaultFS URL is hdfs://binn, it does not have the
port info, thus the UpgradeCatalog210.java code returned -1 to be stored as the port for dfs.namenode.rpc-address
> The port should have been checked based on whether the NameNode HA is enabled. (In fact
for rolling upgrade, the NameNode HA is always enabled for now.)
> Here is the error message: 
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.0/services/KNOX/package/scripts/service_check.py",
line 58, in <module>
>     KnoxServiceCheck().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 216, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.0/services/KNOX/package/scripts/service_check.py",
line 28, in service_check
>     import params
>   File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.0/services/KNOX/package/scripts/params.py",
line 60, in <module>
>     namenode_rpc_port = get_port_from_url(config['configurations']['hdfs-site']['dfs.namenode.rpc-address'])
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_port_from_url.py",
line 45, in get_port_from_url
>     raise Fail("No port in URL:{0}".format(address))
> resource_management.core.exceptions.Fail: No port in URL:bdavm077.svl.ibm.com:-1
> command-284.json >>> "dfs.namenode.rpc-address": "myhost1.test.apache.com:-1",



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

Mime
View raw message