hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siyao Meng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-16276) Fix jsvc startup command in hadoop-functions.sh due to jsvc >= 1.0.11 changed default current working directory
Date Thu, 25 Apr 2019 20:41:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-16276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Siyao Meng updated HADOOP-16276:
--------------------------------
    Attachment: HADOOP-16276.001.patch
        Status: Patch Available  (was: Open)

Uploaded patch rev 001. Tested with jsvc 1.1.0 and 1.0.10 on CDH6.

FYI excerpt from stderr logs with HADOOP_SHELL_SCRIPT_DEBUG turned on:
jsvc 1.0.10
{code}
DEBUG: jsvc: /opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.1029728/lib/bigtop-utils/jsvc
DEBUG: Class name: org.apache.hadoop.hdfs.nfs.nfs3.PrivilegedNfsGatewayStarter
DEBUG: Command line options: 
DEBUG: Detected jsvc version 1.0.10  < 1.0.11. Won't add -cwd parameter. See HADOOP-16276
and DAEMON-264 for details.
{code}

jsvc 1.1.0
{code}
DEBUG: jsvc: /opt/cloudera/parcels/CDH-6.x-1.cdh6.x.p0.1029728/lib/bigtop-utils/jsvc
DEBUG: Class name: org.apache.hadoop.hdfs.nfs.nfs3.PrivilegedNfsGatewayStarter
DEBUG: Command line options: 
DEBUG: Detected jsvc version 1.1.0  >= 1.0.11. Adding extra parameter -cwd /run/cloudera-scm-agent/process/110-hdfs-NFSGATEWAY.
See HADOOP-16276 and DAEMON-264 for details.
{code}

> 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.1.2, 3.2.0
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>         Attachments: HADOOP-16276.001.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


Mime
View raw message