cdh6.3.2 oozie HA 高可用配置

目录

1、配置 Oozie Load Balancer

2、配置 Oozie Load Balancer HTTP、HTTPS Port

3、编辑 ozie-site.xml 文件

4、启用 High Availability (Oozie HA)

5、注意事项(躺过的坑)


 

1、配置 Oozie Load Balancer

(1)进入Oozie配置页面,搜索关键字 port 

(2)在Oozie Load Balancer栏输入需要开启oozie的host,以逗号隔开

cdh01,cdh02,cdh03,cdh04,cdh05,cdh06

2、配置 Oozie Load Balancer HTTP、HTTPS Port

注意:定义的 http 和 https 端口要和 Oozie Load Balancer Port 对应一致

3、编辑 ozie-site.xml 文件

由于oozie是cdh自动配置的,并不知道oozie的配置文件在哪里

所以需要自己手动在oozie主节点上搜索 oozie-site.xml 文件

find / -name oozie-site.xml

搜索找到问文件之后,vim 编辑 oozie-site.xml 文件,

提示:这里已经配置成功一次了所以会有多个oozie-site.xml 文件,没配置过Oozie HA的话只需要配置一个

注意:修改的是 /run/cloudera-scm-agent/process/ 目录下的 oozie-site.xml 文件

 

vim /run/cloudera-scm-agent/process/59-oozie-OOZIE_SERVER/oozie-site.xml

找到 oozie.services.ext 配置项,添加依赖

org.apache.oozie.service.ZKLocksService,org.apache.oozie.service.ZKXLogStreamingService,org.apache.oozie.service.ZKJobsConcurrencyService,

完整的 oozie.services.ext 配置如下所示

  <property>
    <name>oozie.services.ext</name>
   <value>org.apache.oozie.service.ZKLocksService,org.apache.oozie.service.ZKXLogStreamingService,org.apache.oozie.service.ZKJobsConcurrencyService,
org.apache.oozie.service.PartitionDependencyManagerService,org.apache.oozie.service.HCatAccessorService,org.apache.oozie.service.JMSAccessorService,org.apache.oozie.service.JMSTopicService,org.apache.oozie.service.EventHandlerService,org.apache.oozie.sla.service.SLAService,org.apache.oozie.service.MetricsInstrumentationService</value>
  </property>

4、启用 High Availability (Oozie HA)

(1)点击 “操作”,“启用 High Availability”

 (2)添加 oozie sever(需要添加哪台就选哪台)

 (3)这里的配置我们已经配置好了,直接点击继续

 (4)等待 cdh 自动配置oozie

5、注意事项(躺过的坑)

(1)Oozie Load Balancer 配置提示是以 host:port 格式指定的,但是这里只需要指定host(有点坑人)

(2)Oozie Load Balancer 的 port 配置其实是另外单独配置的,分别需要配置 http和https端口,默认端口

Oozie Load Balancer HTTP Port:11000

Oozie Load Balancer HTTPS Port:11443

(3)直接添加 oozie server会出现以下错误,所以必须手动配置 oozie-site.xml文件配置oozie.services.ext

Command failed to run because service Oozie has an invalid configuration. Review and correct its configuration. First error: Oozie Server (cdh06) is missing these plugins needed for High Availability: org.apache.oozie.service.ZKLocksService,org.apache.oozie.service.ZKXLogStreamingService,org.apache.oozie.service.ZKJobsConcurrencyService,org.apache.oozie.service.ZKUUIDService

发布了160 篇原创文章 · 获赞 45 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/qq262593421/article/details/105642353