Why does building Spark RC release fail with “Could not initialize class sun.util.calendar.ZoneInfoFile”?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 15:06:40

I guess the issue is with your time zone. Export LC_ALL=en_US.UTF-8 and start over. Make sure to have en_US.UTF-8 in locale for all entries.

$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

I had similar issue and the reason was missing timezone info file in java installation (after updating java 8 to newer version).

When I looked for tzdb.dat file - there was only link pointing to missing target

I was able to solve it on RedHat just by:

yum update tzdata-java

and this site was helpful here: https://ekuric.wordpress.com/tag/tzdb-dat/

for other OS-es solution might be similar (there is even timezone updater tool from Oracle: https://www.oracle.com/technetwork/java/javase/documentation/tzupdater-readme-136440.html)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!