docker-hadoop
docker-hadoop copied to clipboard
Hadoop time is inconsistent with system time
Can anyone help me?
Hello,
Just add the timezone corresponding to the location (eg: TZ: Europe/Paris
) you want in environment
, find an example bellow :
image: bde2020/hadoop-namenode:latest
container_name: namenode
restart: always
ports:
- 9870:9870
- 9000:9000
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment:
CLUSTER_NAME: test
TZ: Europe/Paris
env_file:
- ./hadoop.env