You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Siyao Meng (JIRA)" <ji...@apache.org> on 2019/05/02 17:44:00 UTC

[jira] [Comment Edited] (HADOOP-16276) Fix jsvc startup command in hadoop-functions.sh due to jsvc >= 1.0.11 changed default current working directory

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

Siyao Meng edited comment on HADOOP-16276 at 5/2/19 5:43 PM:
-------------------------------------------------------------

[~hgadre] Sure. In patch 003. I've added an external environment variable JSVC_EXTRA_HADOOP_DAEMON_OPTS that allows the user to add jsvc options to the command line. When JSVC_EXTRA_HADOOP_DAEMON_OPTS is NOT set, cwd option will be automatically added if jsvc version >= 1.0.11; when JSVC_EXTRA_HADOOP_DAEMON_OPTS is set, cwd option will NOT be added automatically and the users are responsible to set "-cwd /path/to/dir" they need.


was (Author: smeng):
[~hgadre] Sure. In patch 003. I've added an external environment variable JSVC_EXTRA_HADOOP_DAEMON_OPTS that allows the user to add jsvc options to the command line. When JSVC_EXTRA_HADOOP_DAEMON_OPTS is NOT set, cwd option will be automatically added if jsvc version < 1.0.11; when JSVC_EXTRA_HADOOP_DAEMON_OPTS is set, cwd option will NOT be added automatically and the users are responsible to set "-cwd /path/to/dir" they need.

> Fix jsvc startup command in hadoop-functions.sh due to jsvc >= 1.0.11 changed default current working directory
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-16276
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16276
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 3.2.0, 3.1.2
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>         Attachments: HADOOP-16276.001.patch, HADOOP-16276.002.patch, HADOOP-16276.003.patch
>
>
> In CDH6, when we bump jsvc from 1.0.10 to 1.1.0 we hit *KerberosAuthException: failure to login / LoginException: Unable to obtain password from user* due to DAEMON-264 and our 
> *dfs.nfs.keytab.file* config uses a relative path. I will probably file another jira to issue a warning like *hdfs.keytab not found* before KerberosAuthException in this case.
> The solution is to add *-cwd $(pwd)* in function hadoop_start_secure_daemon in hadoop-functions.sh but I will have to consider the compatibility with older jsvc versions <= 1.0.10. Will post the patch after I tested it.
> Thanks [~tlipcon] for finding the root cause.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org