首页 > 其他分享 >dophinscheduler单机伪集群模式安装

dophinscheduler单机伪集群模式安装

时间:2023-02-10 11:35:11浏览次数:30  
标签:bin 单机 dolphinscheduler dophinscheduler export localhost mysql HOME 集群

1.jdk 安装 Oracle 官网下载 jdk8
rmp -ivh 

2.CentOS7 安装 Mysql8 
yum install wget 

删除默认的mariadb

添加MySQL yum 源
wget https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm

sudo rpm -Uvh mysql80-community-release-el7-7.noarch.rpm

yum install mysql-community-server

systemctl start mysql

-- 开机启动
systemctl enable mysqld

-- 获取MySQL临时密码
cat /var/log/mysqld.log | grep  passwd

登录mysql 修改秘密
mysql -uroot -p

alter user root@'localhost' identified by 'xxx';

创建dolphinschedual 数据库
mysql -uroot -p


关掉强密码认证
set global validate_password.policy=0

CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

mysql> CREATE USER 'dolphin'@'%' IDENTIFIED BY 'xxx';
mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO 'dolphin'@'%';
mysql> CREATE USER 'dolphin'@'localhost' IDENTIFIED BY 'xxxx';
mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO 'dolphin'@'localhost';
mysql> FLUSH PRIVILEGES;

3.准备 DolphinScheduler 启动环境
a.创建用户
    useradd dolphinscheduler
    echo "xxxx" | passwd --stdin dolphinscheduler

    scp [email protected]:/home/oracle/apache-dolphinscheduler-3.1.3-bin.tar.gz /home/dolphinscheduler/

下载Apache Zookeeper
https://dlcdn.apache.org/zookeeper/zookeeper-3.8.0/apache-zookeeper-3.8.0-bin.tar.gz


b.配置sudo免密
sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers

c.修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin

d.配置机器SSH免密登录
su dolphinscheduler

ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

4.修改install_env.sh 
# ---------------------------------------------------------
# INSTALL MACHINE
# ---------------------------------------------------------
# Due to the master, worker, and API server being deployed on a single node, the IP of the server is the machine IP or localhost
ips="localhost"
sshPort="22"
masters="localhost"
workers="localhost:default"
alertServer="localhost"
apiServers="localhost"

# DolphinScheduler installation path, it will auto-create if not exists
installPath=~/dolphinscheduler

# Deploy user, use the user you create in section **Configure machine SSH password-free login**
deployUser="dolphinscheduler"

5.修改dolphinscheduler_env.sh 
# JAVA_HOME, will use it to start DolphinScheduler server
export JAVA_HOME=${JAVA_HOME:-/opt/soft/java}

# Database related configuration, set database type, username and password
export DATABASE=${DATABASE:-mysql}
export SPRING_PROFILES_ACTIVE=${DATABASE}
export SPRING_DATASOURCE_URL="jdbc:mysql://localhost:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
export SPRING_DATASOURCE_USERNAME=xxxx
export SPRING_DATASOURCE_PASSWORD=xxx

# DolphinScheduler server related configuration
export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
export MASTER_FETCH_COMMAND_NUM=${MASTER_FETCH_COMMAND_NUM:-10}

# Registry center configuration, determines the type and link of the registry center
export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
export REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-localhost:2181}

# Tasks related configurations, need to change the configuration if you use the related tasks.
export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/opt/soft/hadoop/etc/hadoop}
export SPARK_HOME1=${SPARK_HOME1:-/opt/soft/spark1}
export SPARK_HOME2=${SPARK_HOME2:-/opt/soft/spark2}
export PYTHON_HOME=${PYTHON_HOME:-/opt/soft/python}
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
export DATAX_HOME=${DATAX_HOME:-/opt/soft/datax}

export PATH=$HADOOP_HOME/bin:$SPARK_HOME1/bin:$SPARK_HOME2/bin:$PYTHON_HOME/bin:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_HOME/bin:$PATH


6.初始化数据库
bash tools/bin/upgrade-schema.sh
7.暴露12345端口
firewall-cmd --zone=public --permanent --add-port=12345/tcp
firewall-cmd --list-ports --permanent
firewall-cmd --reload
systemctl restart firewalld

8.登录地址 http://localhost:12345/dolphinscheduler/ui

  

标签:bin,单机,dolphinscheduler,dophinscheduler,export,localhost,mysql,HOME,集群
From: https://www.cnblogs.com/Alex-Zeng/p/17108338.html

相关文章

  • K8s集群证书过期或延期(kubeadm)
    不同的K8S版本操作有些许不同,所以建议在遇到问题时先查询K8S官方文档1、连接Api-server失败,报证书已过期不可用$kubectlgetnode,podUnabletoconnecttotheser......
  • TiDB集群安装TiDB Dashboard
    TiDBDashboard是从TiDB4.0版本起引入的可视化面板,用于帮助观察与诊断整个TiDB集群,详情参见 ​​TiDB文档-TiDBDashboard​​。本篇文章将介绍如何在Kubernetes......
  • mariadb 集群 重启的几种情形
    最近项目中遇到过一次mariadb集群中三台节点有两台挂掉的情况。总结了一下mariadb集群可能遇到的几种情况需要重启。 环境说明:mariadb集群ip:10.0.101.5110.0.101......
  • KAFKA学习之集群搭建
    一、下载及安装1.地址https://www.apache.org/dyn/closer.cgi?path=/kafka/3.1.0/kafka_2.12-3.1.0.tgz2.上传到linux解压: tar-zxvfkafka_2.12-3.1.0.tgz-C......
  • zookeeper单机版和伪集群版的搭建
    一.单机版1,下载: wgethttp://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz2,解压: tar-zxvfzookeeper-3.4.10.tar.gz3,在 zookeep......
  • 如何在k8s集群中,删除所有命名空间中的Evicted(被驱逐)的pod?
    通过如下的命令删除k8s集群中,所有命名空间中的所有被驱逐的pod kubectlgetpods-A|awk'/Evicted/{print$1,$2}'\|xargs-r-n2kubectldeletepod-n ......
  • 基于Bucardo建立PostgreSQL 主主混合集群(X86 + ARM)部署 #50
       作者:bzhaoopenstack(https://github.com/bzhaoopenstack)PG在混步跨硬件平台的首次試水,此次基於Bucardo部署PG跨硬件平台集群。基于Buc......
  • Pacemaker+Corosync搭建PostgreSQL集群
    一、环境$ cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) $ uname -aLinux zhaopin-5-90 3.10.0-123.el7.x86_64 #1 SMP Mon Jun......
  • Vastbase G100高可用集群搭建
    VastbaseG100高可用集群搭建苏水的北關注IP屬地:贵州0.2112022.06.0110:42:53字數4,560閱讀1,0361.概述Vastbase集群支持搭建一主一备与一主多备,本文档目......
  • k8s集群安装
    那之前呢已经给大家做过了一个最基础的这么一个安装部分,对吧?包括我们的一些准备操作,包括我们的软路由的安装,那接下来呢带大家去安装一下我们的整个k8s的集群。koolshare构......