HADOOP-11353. Add support for .hadooprc (aw)
This commit is contained in:
parent
390642acf3
commit
8e9a266819
@ -27,6 +27,8 @@ Trunk (Unreleased)
|
||||
|
||||
HADOOP-6590. Add a username check for hadoop sub-commands (John Smith via aw)
|
||||
|
||||
HADOOP-11353. Add support for .hadooprc (aw)
|
||||
|
||||
IMPROVEMENTS
|
||||
|
||||
HADOOP-8017. Configure hadoop-main pom to get rid of M2E plugin execution
|
||||
|
@ -168,6 +168,8 @@ hadoop_exec_userfuncs
|
||||
# IMPORTANT! User provided code is now available!
|
||||
#
|
||||
|
||||
hadoop_exec_hadooprc
|
||||
|
||||
# do all the OS-specific startup bits here
|
||||
# this allows us to get a decent JAVA_HOME,
|
||||
# call crle for LD_LIBRARY_PATH, etc.
|
||||
|
@ -113,6 +113,17 @@ function hadoop_exec_userfuncs
|
||||
fi
|
||||
}
|
||||
|
||||
function hadoop_exec_hadooprc
|
||||
{
|
||||
# Read the user's settings. This provides for users to override
|
||||
# and/or append hadoop-env.sh. It is not meant as a complete system override.
|
||||
|
||||
if [[ -f "${HOME}/.hadooprc" ]]; then
|
||||
hadoop_debug "Applying the user's .hadooprc"
|
||||
. "${HOME}/.hadooprc"
|
||||
fi
|
||||
}
|
||||
|
||||
function hadoop_basic_init
|
||||
{
|
||||
# Some of these are also set in hadoop-env.sh.
|
||||
|
Loading…
Reference in New Issue
Block a user