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欄輸入host

 

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章