You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Alex Bush (JIRA)" <ji...@apache.org> on 2016/04/18 12:05:25 UTC

[jira] [Commented] (AMBARI-15790) Clean up stack scripts that refer to dfs.nameservices to use dfs.internal.nameservices as first option

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

Alex Bush commented on AMBARI-15790:
------------------------------------

Hi, just to note, due to: https://issues.apache.org/jira/browse/HDFS-9112

'I think for admin or other clients it's not necessary for them to clearly distinguish internal/external name services. The internal/external ns makes sense maybe only to DataNodes. Thus I'm currently leaning towards requiring admins to explicitly specify the name service using "-ns" option.'

There are several points in Ambari when haadmin is called and fails due to:
call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'export  PATH='"'"'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/sbin:/usr/sbin:/bin:/usr/bin:/var/lib/ambari-agent:/usr/hdp/current/hadoop-client/bin'"'"' ; /usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs --config /usr/hdp/current/hadoop-client/conf haadmin -getServiceState nn1 | grep active''] {}
2016-04-18 09:51:39,868 - call returned (1, 'Illegal argument: Unable to determine the name service ID. This is an HA configuration with multiple name services configured. dfs.nameservices is set to [CLUSTER2, CLUSTER1]. Please re-run with the -ns option.')

https://github.com/apache/ambari/search?utf8=%E2%9C%93&q=haadmin

Should a separate issue be raised for this, or can this issue cover haadmin too?

> Clean up stack scripts that refer to dfs.nameservices to use dfs.internal.nameservices as first option
> ------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-15790
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15790
>             Project: Ambari
>          Issue Type: Bug
>          Components: stacks
>    Affects Versions: 2.2.2
>            Reporter: Sumit Mohanty
>            Assignee: Dmytro Sen
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-15790.patch
>
>
> Several stack scripts refer to dfs.nameservices and they should be modified to use dfs.internal.nameservices



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