[
https://issues.apache.org/jira/browse/AMBARI-11961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Di Li resolved AMBARI-11961.
----------------------------
Resolution: Duplicate
> 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)