From fddc9769a588102acb806b0a2187a111bb4fa0a2 Mon Sep 17 00:00:00 2001 From: zhangshuyan <81411509+zhangshuyan0@users.noreply.github.com> Date: Wed, 3 May 2023 00:09:36 +0800 Subject: [PATCH] HADOOP-18726. Set the locale to avoid printing useless logs. (#5612). Contributed by Shuyan Zhang. Signed-off-by: Ayush Saxena Signed-off-by: He Xiaoqiao --- .../hadoop-common/src/main/conf/hadoop-env.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh b/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh index f4625f5999..01559e1fd7 100644 --- a/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh +++ b/hadoop-common-project/hadoop-common/src/main/conf/hadoop-env.sh @@ -53,6 +53,10 @@ # variable is REQUIRED on ALL platforms except OS X! # export JAVA_HOME= +# The language environment in which Hadoop runs. Use the English +# environment to ensure that logs are printed as expected. +export LANG=en_US.UTF-8 + # Location of Hadoop. By default, Hadoop will attempt to determine # this location based upon its execution path. # export HADOOP_HOME=