⚠️⚠️ NOTE ⚠️⚠️: Apache Ambari plugin only support installation DolphinScheduler for version 1.3.0 - 1.3.9. The reason we split to this repo as below:
You could find more detail in mail thread: https://lists.apache.org/thread/5l2zy28q1l5tl87q84h8qsw59z5vg2ly
# Only support version 1.3.0 - 1.3.9, we here use 1.3.3 as example DOLPHINSCHEDULER_VERSION=1.3.3 git clone --depth 1 --branch ${DOLPHINSCHEDULER_VERSION} git@github.com:apache/dolphinscheduler.git dolphinscheduler_${DOLPHINSCHEDULER_VERSION}_ambari cd dolphinscheduler_${DOLPHINSCHEDULER_VERSION}_ambari # It is generated by executing the command, the project root directory (In the directory: dolphinscheduler-dist/target/rpm/apache-dolphinscheduler/RPMS/noarch ) mvn -U clean install -Prpmbuild -Dmaven.test.skip=true -X
Create an installation for DS,who have read and write access to the installation directory (/opt/soft)
Manual installation (recommended):
rpm -ivh apache-dolphinscheduler-xxx.noarch.rpm
Automatic installation with ambari
-- 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;
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)
Remove the component from the node with Ambari