HADOOP-17718. Explicitly set locale in the Dockerfile. (#3034)

Reviewed-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit ad923ad564)

Conflicts:
	dev-support/docker/Dockerfile_centos_7
	dev-support/docker/Dockerfile_centos_8
This commit is contained in:
Wei-Chiu Chuang 2021-05-21 09:26:50 -07:00
parent 86682a83aa
commit 5e09d38b25
No known key found for this signature in database
GPG Key ID: B362E1C021854B9D
2 changed files with 8 additions and 0 deletions

View File

@ -85,6 +85,10 @@ RUN apt-get -q update \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
###### ######
# Set env vars required to build Hadoop # Set env vars required to build Hadoop
###### ######

View File

@ -85,6 +85,10 @@ RUN apt-get -q update \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
###### ######
# Set env vars required to build Hadoop # Set env vars required to build Hadoop
###### ######