DolphinScheduler/ambari_plugin
BoYiZhang 32e8a9d50c
[bugfix] Default JVM parameter bug (#3212)
* fix bug

Delete invalid field: executorcores

Modify verification prompt

* fix bug

Delete invalid field: executorcores

Modify verification prompt

* fix bug

Delete invalid field: executorcores

Modify verification prompt

* dag  add close button

* reset last version

* reset last version

* dag add close buttion

dag add close buttion

* update  CLICK_SAVE_WORKFLOW_BUTTON  xpath

* updae CLICK_SAVE_WORKFLOW_BUTTON xpath

* updae CLICK_SAVE_WORKFLOW_BUTTON xpath

* updae CLICK_SAVE_WORKFLOW_BUTTON xpath

* Update CreateWorkflowLocator.java

modify submit workflow button

* Update CreateWorkflowLocator.java

* Update CreateWorkflowLocator.java

modify CLICK_ADD_BUTTON

* Update CreateWorkflowLocator.java

delete print

* Update CreateWorkflowLocator.java

1

* Update CreateWorkflowLocator.java

1

* Setting '-XX:+DisableExplicitGC ' causes netty memory leaks

in addition

update '- XX: largepagesizeinbytes = 128M' to '- XX: largepagesizeinbytes = 10M'

* Update dag.vue

* Update dag.vue

* Update dag.vue

* Update CreateWorkflowLocator.java

* Revert "Setting '-XX:+DisableExplicitGC ' causes netty memory leaks"

This reverts commit 3a2cba7a

* Setting '-XX:+DisableExplicitGC ' causes netty memory leaks

in addition

update '- XX: largepagesizeinbytes = 128M' to '- XX: largepagesizeinbytes = 10M'

* Update dolphinscheduler-daemon.sh

Co-authored-by: dailidong <dailidong66@gmail.com>
Co-authored-by: xingchun-chen <55787491+xingchun-chen@users.noreply.github.com>
2020-07-23 10:59:51 +08:00
..
common-services/DOLPHIN [bugfix] Default JVM parameter bug (#3212) 2020-07-23 10:59:51 +08:00
statcks/DOLPHIN update version 2.0.0 backup to 1.3.0 (#2531) 2020-04-26 18:50:38 +08:00
README.md [feature] readme.md adds instructions for changing environment variables (#3031) 2020-06-30 11:02:25 +08:00

Instructions for using the Dolphin Scheduler's Ambari plug-in

Note

  1. This document is intended for users with a basic understanding of Ambari
  2. This document is a description of adding the Dolphin Scheduler service to the installed Ambari service
  3. This document is based on version 2.5.2 of Ambari

Installation preparation

  1. 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 )
  2. Create an installation for DSwho have read and write access to the installation directory (/opt/soft)

  3. 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
      • Mysql-connector-java packaged using the default POM file will not be included.
      • The RPM package was packaged in the project with the installation path of /opt/soft. If you use mysql as the database, you need add it manually.
    • 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
  4. 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
  5. Initializes the database information

    -- Create the database for the Dolphin Schedulerdolphinscheduler
    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

  • NOTE: You have to install zookeeper first
  1. Install Dolphin Scheduler on ambari web interface

  2. Select the nodes for the Dolphin Scheduler's Master installation

  3. Configure the Dolphin Scheduler's nodes for Worker, Api, Logger, Alert installation

  4. Set the installation users of the Dolphin Scheduler service (created in step 1) and the user groups they belong to

  5. System Env Optimization will export some system environment config. Modify according to actual situation

  6. Configure the database information (same as in the initialization database in step 1)

  7. Configure additional information if needed

  8. Perform the next steps as normal

  9. 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)

  1. Locate the component node to add -- for example, node ark3

    DS2_AMBARI_011

  2. Add components -- the drop-down list is all addable

    DS2_AMBARI_012

  3. Confirm component addition

    DS2_AMBARI_013

  4. After adding DS Worker and DS Logger components

    DS2_AMBARI_015

  5. Start the component

    DS2_AMBARI_016

Remove the component from the node with Ambari

  1. Stop the component in the corresponding node

    DS2_AMBARI_018

  2. Remove components

    DS2_AMBARI_019