Submitting an Oozie SSH Job Using Hue
Scenario
This section guides you to submit an Oozie job of the SSH type on the Hue web UI.
Due to security risks, SSH jobs cannot be submitted by default. To use the SSH function, you need to manually enable it.
Procedure
- Enable the SSH function. (Skip this step if the oozie.job.ssh.enable parameter is unavailable for the current cluster.)
- On FusionInsight Manager, choose Cluster > Services > Oozie and click the Configurations tab and then All Configurations. In the navigation pane on the left, choose oozie(Role) > Security, change the value of oozie.job.ssh.enable to true, and click Save. In the displayed dialog box, click OK to save the configuration.
- On the Dashboard page of Oozie, choose More > Restart Service in the upper-right corner to restart Oozie.
- On FusionInsight Manager, choose Cluster > Services > Oozie and click the Configurations tab and then All Configurations. In the navigation pane on the left, choose oozie(Role) > Security, change the value of oozie.job.ssh.enable to true, and click Save. In the displayed dialog box, click OK to save the configuration.
- Create a workflow. For details, see Creating a Workflow Using Hue.
- For details about how to add the trust relationship, see Configuring Mutual Trust Between Oozie Nodes.
- On the workflow editing page, select the Ssh button and drag it to the operation area.
- In the Ssh window that is displayed, set the following parameters and click Add.
- User and Host: The value of User is the user for which mutual trust is configured in 3. The parameter value is in the format of User who performs the SSH task@IP address of the node where the SSH task is performed. For example, the value of this configuration item can be set to root@x.x.x.x.
- Ssh command: indicates the command for submitting a job.
- Click in the upper right corner of the Oozie editor.
If you need to modify the job name before saving the job (default value: My Workflow), click the name directly for modification, for example, Ssh-Workflow.
- After the configuration is saved, click , and submit the job.
After the job is submitted, you can view the related contents of the job, such as the detailed information, logs, and processes, on Hue.
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