Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Hadoop adjusts time zone

Shulou Source: shulou.com Published: 2022-06-03 07:32:58 11月23日 Update

The system time of the hadoop cluster is correct, but the log output time of hadoop/hbase is 8 hours less than the system time.

You can adjust the hadoop/hbase time zone in the following ways.

If the time of each node is not synchronized, a startup exception will occur, or for other reasons. Here the time is uniformly set to the Shanghai time zone. The command is as follows:

# cp / usr/share/zoneinfo/Asia/Shanghai / etc/localtimecp: overwrite `/ etc/localtime'? Yes was modified to # vi / etc/sysconfig/clockZONE= "Asia/Shanghai" UTC=falseARC=false in East eighth District of China.

After adjusting the time zone, re-hadoop/hbase service, hadoop/hbase log input time is normal.

Reference article: http://www.open-open.com/lib/view/open1424920623031.html

Tags: Time time zone adjustment log system reason command hour article mode node cluster China zone 8 reference synchronization service unified input output Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information Xiaomi Linux vpn