Apache Spark - how to set timezone to UTC? currently defaulted to Zulu

前端 未结 4 1998
花落未央
花落未央 2020-12-20 04:06

In Spark\'s WebUI (port 8080) and on the environment tab there is a setting of the below:

user.timezone Zulu

Do you know how/where I can override this to U

4条回答
  •  萌比男神i
    2020-12-20 04:40

    As described in these SPARK bug reports (link, link), the most current SPARK versions (3.0.0 and 2.4.6 at time of writing) do not fully/correctly support setting the timezone for all operations, despite the answers by @Moemars and @Daniel.

    I suggest avoiding time operations in SPARK as much as possible, and either perform them yourself after extraction from SPARK or by using UDFs, as used in this question.

提交回复
热议问题