5.2 KiB
Instructions for using the Dolphin Scheduler's Ambari plug-in
Note
- This document is intended for users with a basic understanding of Ambari
- This document is a description of adding the Dolphin Scheduler(version 1.3.0) service to the installed Ambari service
Installation preparation
-
Prepare the RPM packages
- It is generated by executing the command
mvn -U clean install -Prpmbuild -Dmaven.test.skip=true -X
in the project root directory (In the directory: dolphinscheduler-dist/target/rpm/apache-dolphinscheduler-incubating/RPMS/noarch )
- It is generated by executing the command
-
Create an installation for DS,who have read and write access to the installation directory (/opt/soft)
-
Install with rpm package
- Manual installation (recommended):
- Copy the prepared RPM packages to each node of the cluster
- Execute with DS installation user:
rpm -ivh apache-dolphinscheduler-incubating-xxx.noarch.rpm
- Automatic installation with ambari
- Each node of the cluster needs to configure the local yum source
- Copy the prepared RPM packages to each node local yum source
- Manual installation (recommended):
-
Copy plug-in directory
- copy directory ambari_plugin/common-services/DOLPHIN to ambari-server/resources/common-services/
- copy directory ambari_plugin/statcks/DOLPHIN to ambari-server/resources/stacks/HDP/2.6/services/--stack version is selected based on the actual situation
-
Initializes the database information
-- Create the database for the Dolphin Scheduler:dolphinscheduler CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; -- Initialize the user and password for the dolphinscheduler database and assign permissions -- Replace the {user} in the SQL statement below with the user of the dolphinscheduler database GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%' IDENTIFIED BY '{password}'; GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost' IDENTIFIED BY '{password}'; flush privileges;
Ambari Install Dolphin Scheduler
-
Install Dolphin Scheduler on ambari web interface
-
Select the nodes for the Dolphin Scheduler's Master installation
-
Configure the Dolphin Scheduler's nodes for Worker, Api, Logger, Alert installation
-
Set the installation users of the Dolphin Scheduler service (created in step 1) and the user groups they belong to
-
Configure the database information (same as in the initialization database in step 1)
-
Configure additional information if needed
-
Perform the next steps as normal
-
The interface after successful installation
Add components to the node through Ambari -- for example, add a DS Worker
NOTE: DS Logger is the installation dependent component of DS Worker in Dolphin's Ambari installation (need to add installation first; Prevent the Job log on the corresponding Worker from being checked)
-
Locate the component node to add -- for example, node ark3
-
Add components -- the drop-down list is all addable
-
Confirm component addition
-
After adding DS Worker and DS Logger components
-
Start the component