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 "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2017/04/06 22:57:41 UTC

[jira] [Updated] (HADOOP-14202) fix jsvc/secure user var inconsistencies

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

Allen Wittenauer updated HADOOP-14202:
--------------------------------------
    Attachment: HADOOP-14202.03.patch

-03:
* remove some more shellcheck overrides that are no longer needed
* updated documentation to address feedback
* fix a bug with JSVC_HOME where the default wasn't actually being set
* flip the return state for hadoop_detect_priv_subcmd
* add a test for hadoop_detect_priv_subcmd
* add a check for SECURE_USER in hadoop_uservar_su to default to a working state if the current process is privileged but _USER is undefined
* check the error message for hadoop_uservar_su because if we are trying to stop a daemon "launch" makes zero sense.
* rework hadoop_generic_java_subcmd_handler a bit to better handle 3rd party stuff and make the comments more sane
* clean up hadoop-env.sh to reflect reality


> fix jsvc/secure user var inconsistencies
> ----------------------------------------
>
>                 Key: HADOOP-14202
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14202
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Allen Wittenauer
>            Assignee: Allen Wittenauer
>         Attachments: HADOOP-14202.00.patch, HADOOP-14202.01.patch, HADOOP-14202.02.patch, HADOOP-14202.03.patch
>
>
> Post-HADOOP-13341 and (more importantly) HADOOP-13673, there has been a major effort on making the configuration environment variables consistent among all the projects. The vast majority of vars now look like (command)_(subcommand)_(etc). Two hold outs are HADOOP_SECURE_DN_USER  and HADOOP_PRIVILEGED_NFS_USER.
> Additionally, there is
> * no generic handling
> * no documentation for anyone
> * no safety checks to make sure things are defined
> In order to fix all of this, we should:
> * deprecate the previous vars using the deprecation function, updating the HDFS documentation that references them
> * add generic (command)_(subcommand)_SECURE_USER support
> * add some verification for the previously mentioned var
> * add some docs to UnixShellGuide.md



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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