Configuring Oozie High Availability (HA)
Scenario
When multiple Oozie nodes provide services at the same time, you can use ZooKeeper to provide high availability (HA), which helps avoid single points of failure (SPOFs) and prevent multiple nodes from concurrently processing the same task.
For MRS 3.3.1 or later, the HA mechanism is enabled for Oozie by default. Therefore, you do not need to perform the operations in this section.
Impact on the System
Enabling Oozie HA requires an Oozie restart, and Oozie cannot provide services during the restart.
Prerequisites
- Oozie and ZooKeeper have been installed and are running properly.
- No task is running.
- The current cluster is of the latest version. If it is not, copy the curator-x-discovery-x.x.x.jar package from the $BIGDATA_HOME/FusionInsight_Porter_x.x.x/install/FusionInsight-Oozie-x.x.x/oozie-x.x.x/embedded-oozie-server/webapp/WEB-INF/lib directory to the $BIGDATA_HOME/FusionInsight_Porter_x.x.x/install/FusionInsight-Oozie-x.x.x/oozie-x.x.x/lib directory.
Procedure
- On FusionInsight Manager, choose Cluster > Services > Oozie. On the displayed page, click the Configurations tab and then All Configurations. In the navigation pane on the left, choose oozie(Role) > Customization and add the configuration items listed in the following table for oozie.site.configs. Click Save after the modification. In the displayed dialog box, click OK.
Parameter
Setting
Description
oozie.services.ext
org.apache.oozie.service.ZKLocksService,org.apache.oozie.service.ZKXLogStreamingService,org.apache.oozie.service.ZKJobsConcurrencyService,org.apache.oozie.service.ZKUUIDService
Services providing enhanced HA
oozie.zookeeper.connection.string
ZooKeeper instance service IP address:Port number. Use commas (,) to separate multiple IP address:port pairs.
ZooKeeper connection information
oozie.zookeeper.namespace
oozie
Oozie path on ZooKeeper
oozie.zookeeper.secure
Security cluster: true
Normal cluster: not required
Whether to enable Kerberos on ZooKeeper.
- On the Dashboard page of Oozie, choose More > Restart Service in the upper-right corner to restart Oozie.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot