diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 65c6d85ab3e..628faa3d3aa 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -414,6 +414,9 @@ Trunk (Unreleased) HADOOP-11602. Fix toUpperCase/toLowerCase to use Locale.ENGLISH. (ozawa) + HADOOP-11653. shellprofiles should require .sh extension + (Brahma Reddy Battula via aw) + OPTIMIZATIONS HADOOP-7761. Improve the performance of raw comparisons. (todd) diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh index bccbe259d64..9488e3cd1d2 100644 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh @@ -162,13 +162,13 @@ function hadoop_import_shellprofiles local files2 if [[ -d "${HADOOP_LIBEXEC_DIR}/shellprofile.d" ]]; then - files1=(${HADOOP_LIBEXEC_DIR}/shellprofile.d/*) + files1=(${HADOOP_LIBEXEC_DIR}/shellprofile.d/*.sh) else hadoop_error "WARNING: ${HADOOP_LIBEXEC_DIR}/shellprofile.d doesn't exist. Functionality may not work." fi if [[ -d "${HADOOP_CONF_DIR}/shellprofile.d" ]]; then - files2=(${HADOOP_CONF_DIR}/shellprofile.d/*) + files2=(${HADOOP_CONF_DIR}/shellprofile.d/*.sh) fi for i in "${files1[@]}" "${files2[@]}" diff --git a/hadoop-common-project/hadoop-common/src/main/conf/shellprofile.d/example b/hadoop-common-project/hadoop-common/src/main/conf/shellprofile.d/example.sh similarity index 100% rename from hadoop-common-project/hadoop-common/src/main/conf/shellprofile.d/example rename to hadoop-common-project/hadoop-common/src/main/conf/shellprofile.d/example.sh diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/shellprofile.d/hdfs b/hadoop-hdfs-project/hadoop-hdfs/src/main/shellprofile.d/hdfs.sh similarity index 100% rename from hadoop-hdfs-project/hadoop-hdfs/src/main/shellprofile.d/hdfs rename to hadoop-hdfs-project/hadoop-hdfs/src/main/shellprofile.d/hdfs.sh diff --git a/hadoop-mapreduce-project/shellprofile.d/mapreduce b/hadoop-mapreduce-project/shellprofile.d/mapreduce.sh similarity index 100% rename from hadoop-mapreduce-project/shellprofile.d/mapreduce rename to hadoop-mapreduce-project/shellprofile.d/mapreduce.sh diff --git a/hadoop-yarn-project/hadoop-yarn/shellprofile.d/yarn b/hadoop-yarn-project/hadoop-yarn/shellprofile.d/yarn.sh similarity index 100% rename from hadoop-yarn-project/hadoop-yarn/shellprofile.d/yarn rename to hadoop-yarn-project/hadoop-yarn/shellprofile.d/yarn.sh