Hadoop adjusts time zone
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