oozie版本:oozie-4.0.0-cdh5.0.0-beta-1
oozie默认的时区是UTC,所以我们在定时跑任务的时候,如果设置的时间是当前时间,发现JOB并不会跑起来,而是处于PREA状态。如果需要JOB按照我们的设置的时间去跑该如何设置?
我们在配置任务的时候,在coordinator.xml中,有时区的配置,默认是timezone="UTC",当我们把它改成,启动我们的JOB,发现这个配置并没有起作用。
打开oozie的配置文件oozie-default.xml,我们发现有以下的一个配置:
<property>
<name>oozie.processing.timezone</name>
<value>UTC</value>
<description>
Oozie server timezone. Valid values are UTC and GMT(+/-)####, for example 'GMT+0530' would be India
timezone. All dates parsed and genered dates by Oozie Coordinator/Bundle will be done in the specified
timezone. The default value of 'UTC' should not be changed under normal circumtances. If for any reason
is changed, note that GMT(+/-)#### timezones do not observe DST changes.
</description>
</property>
我们把它的配置值改成GMT+0800后,重新启动OOZIE服务,再启动我们的JOB,发现这个配置还是不起作用。
后来发现在OOZIE的启动日志中:
2013-09-05 09:27:06,546 INFO XLogService:539 -
*******************************************************************************
STARTUP MSG: Oozie BUILD_VERSION [3.3.2-cdh4.3.0] compiled by [jenkins] on [2013.05.28-03:57:35GMT]
STARTUP MSG: revision [unavailable]@[unavailable]
*******************************************************************************
2013-09-05 09:27:06,558 INFO XLogService:539 - Log4j configuration file [oozie-log4j.properties]
2013-09-05 09:27:06,560 INFO XLogService:539 - Log4j configuration file loaded from [/dw/oozie/conf]
2013-09-05 09:27:06,561 INFO XLogService:539 - Log4j reload interval [10 sec]
2013-09-05 09:27:06,589 INFO ConfigurationService:539 - USER[-] GROUP[-] Oozie home dir [/dw/oozie]
2013-09-05 09:27:06,590 INFO ConfigurationService:539 - USER[-] GROUP[-] Oozie conf dir [/dw/oozie/conf]
2013-09-05 09:27:06,593 INFO ConfigurationService:539 - USER[-] GROUP[-] Oozie conf file [oozie-site.xml]
发现oozie加载了oozie-site.xml这个配置文件,并没有加载oozie-default.xml,难道是这个原因? 是的,原因在oozie的CDH版本的官方文档中说oozie-default.xml这个文件不会被oozie使用,仅作为一个参考。
所以就把这段代码拷贝到了oozie-site.xml的配置中:
<property>
<name>oozie.processing.timezone</name>
<value>GMT+0800</value>
<description>
Oozie server timezone. Valid values are UTC and GMT(+/-)####, for example 'GMT+0530' would be India
timezone. All dates parsed and genered dates by Oozie Coordinator/Bundle will be done in the specified
timezone. The default value of 'UTC' should not be changed under normal circumtances. If for any reason
is changed, note that GMT(+/-)#### timezones do not observe DST changes.
</description>
</property>
重启oozie服务,JOB可以按照当前时间正常跑起来了。
注意:由于使用了GMT+0800,因此在设置start和end时间时,要改成这个时区的格式。
分享到:
相关推荐
Hadoop oozie报错:Table ‘oozie.VALIDATE_CONN’ doesn’t exist 。 oozie建表sql,直接下载执行
oozie 入门 oozie概述:oozie能干什么 oozie格式:怎么用oozie oozie执行:怎么运行oozie
Oozie 部署 1 1、Maven 安装 1 3、整合Oozie和Hadoop 8 Oozie提交MapReduce任务事例 8 1上传lib和wf到hdfs上 8 2修改job.properties文件 8 3:修改workflow.xml 9 4:执行oozie客户端命令执行mapreduce 10 配置oozie...
2.Coordinator时区配置 3.Coordinator任务实战开发 第五章:Oozie可视化开发 1.集成Hue配置 2.基于Hue构建Oozie工作流开发实战 第六章:Oozie监控任务管理 1.Oozie任务的查看 2.Oozie任务的提交 3....
oozie调用hive介绍,在华为大数据平台下通过oozie调用hive,并解决认证问题
oozie配置mysql所需表结构。Apache Oozie是用于Hadoop平台的一种工作流调度引擎。
oozie 提交任务参数传递到下一个任务节点 oozie 提交任务参数传递到下一个任务节点
CDH安装oozie后不能看console,必须把ext依赖放入oozie的libex
oozie-core
extjs2.2 oozie可以使用的 oozie需要使用extjs2.2
hadoop oozie启动或运行报错:Table ‘oozie.VALIDATE_CONN’ doesn’t exist
oozie-3.0.0-distro.tar.gz
oozie mysql数据库表结构。文档里是oozie mysql的建表语句
oozie配置文件
oozie介绍及使用详解
大数据Oozie架构原理.pdf
oozie-4.2.0
Apache Oozie Essentials starts off with the basics right from installing and configuring Oozie from source code on your Hadoop cluster to managing your complex clusters. You will learn how to create ...
oozie图形界面设置必备工具组件,官网找不到下载的,请下载使用。
大数据技术之Oozie入门到精通