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 DolphinScheduler with the user has 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 DolphinScheduler: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 DolphinScheduler on Ambari web interface
Select the nodes for the DolphinScheduler's Master installation
Configure the DolphinScheduler's nodes for Worker, Api, Logger, Alert installation
Set the installation users of the DolphinScheduler service (created in step 1) and the user groups they belong to
System Env Optimization will export some system environment config. Modify according to the 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: DolphinScheduler 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 DolphinScheduler Worker and DolphinScheduler Logger components
Start the component
Stop the component in the corresponding node
Remove components