Carbondata timestamp Timestamp format difference 13 hours

0x0 exception

After loading the CSV file into the table, it is found that the column times of the TIMESTAMP type are not correct, and the difference is exactly 13 hours.

0x1 Analyze the reason

There is a problem with the time zone of the UBUNTU server (US Eastern Time Zone), and JDK8 makes a corresponding error when obtaining the system time, resulting in an error in CarbonData conversion Timestamp!

0x2 Workaround

Modify the time zone:
Modify the /etc/timezone file (sudo vi /etc/timezone)
to read: Asia/Shanghai

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325941462&siteId=291194637