Skip to content

Commit fddc976

Browse files
authored
HADOOP-18726. Set the locale to avoid printing useless logs. (#5612). Contributed by Shuyan Zhang.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org> Signed-off-by: He Xiaoqiao <hexiaoqiao@apache.org>
1 parent bfcf5dd commit fddc976

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
# variable is REQUIRED on ALL platforms except OS X!
5454
# export JAVA_HOME=
5555

56+
# The language environment in which Hadoop runs. Use the English
57+
# environment to ensure that logs are printed as expected.
58+
export LANG=en_US.UTF-8
59+
5660
# Location of Hadoop. By default, Hadoop will attempt to determine
5761
# this location based upon its execution path.
5862
# export HADOOP_HOME=

0 commit comments

Comments
 (0)