如何在 Apache Spark 中将时区设置为 UTC? [英] How to set timezone to UTC in Apache Spark?

查看:105
本文介绍了如何在 Apache Spark 中将时区设置为 UTC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Spark 的 WebUI(端口 8080)和环境选项卡上,有以下设置:

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

user.timezone   Zulu

你知道我如何/在哪里可以将其覆盖为 UTC?

Do you know how/where I can override this to UTC?

环境细节:

  • Spark 2.1.1
  • jre-1.8.0-openjdk.x86_64
  • 没有 jdk
  • EC2 亚马逊 Linux

编辑(有人回答了下面然后删除):https://www.timeanddate.com/time/zones/z

EDIT (someone answered the below then deleted): https://www.timeanddate.com/time/zones/z

推荐答案

更改您的系统时区并检查它我希望它会起作用

Change your system timezone and check it I hope it will works

这篇关于如何在 Apache Spark 中将时区设置为 UTC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆