Prepare the RPM packages
mvn -U clean install -Prpmbuild -Dmaven.test.skip=true -X
in the project root directory (In the directory: dolphinscheduler-dist/target/rpm/apache-dolphinscheduler/RPMS/noarch )Create an installation for DS,who have read and write access to the installation directory (/opt/soft)
Install with rpm package
Manual installation (recommended):
rpm -ivh apache-dolphinscheduler-xxx.noarch.rpm
Automatic installation with ambari
Copy plug-in directory
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;
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
System Env Optimization will export some system environment config. Modify according to actual situation
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
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
Stop the component in the corresponding node
Remove components