当前位置: 首页 > news >正文

个人网站备案可以做项目网站西安今天刚刚发生的新闻

个人网站备案可以做项目网站,西安今天刚刚发生的新闻,公司一定建设网站,h5小游戏制作教程海豚调度系列之:集群部署Cluster 一、前置准备工作二、准备 DolphinScheduler 启动环境1.配置用户免密及权限2.配置机器 SSH 免密登陆3.启动 zookeeper4.初始化数据库5.修改相关配置5.修改 dolphinscheduler_env.sh 文件 三、启动DolphinScheduler四、登录 DolphinS…

海豚调度系列之:集群部署Cluster

  • 一、前置准备工作
  • 二、准备 DolphinScheduler 启动环境
    • 1.配置用户免密及权限
    • 2.配置机器 SSH 免密登陆
    • 3.启动 zookeeper
    • 4.初始化数据库
    • 5.修改相关配置
    • 5.修改 dolphinscheduler_env.sh 文件
  • 三、启动DolphinScheduler
  • 四、登录 DolphinScheduler
  • 五、启停服务

集群部署目的是在多台机器部署 DolphinScheduler 服务,用于运行大量任务情况。

一、前置准备工作

  • JDK:下载JDK (1.8+),安装并配置 JAVA_HOME 环境变量,并将其下的 bin 目录追加到 PATH 环境变量中。如果你的环境中已存在,可以跳过这步。
  • 二进制包:下载 DolphinScheduler 二进制包海豚调度下载地址
  • 数据库: MySQL (5.7+),如 MySQL 则需要 JDBC Driver 8.0.16
  • 注册中心:ZooKeeper (3.8.0+)
  • 进程树分析:Fedora/Red/Hat/CentOS/Ubuntu/Debian 安装psmisc
  • 注意: DolphinScheduler 本身不依赖 Hadoop、Hive、Spark,但如果你运行的任务需要依赖他们,就需要有对应的环境支持

二、准备 DolphinScheduler 启动环境

1.配置用户免密及权限

创建部署用户,并且一定要配置 sudo 免密。以创建 dolphinscheduler 用户为例

# 创建用户需使用 root 登录
useradd dolphinscheduler# 添加密码
echo "dolphinscheduler" | passwd --stdin dolphinscheduler# 配置 sudo 免密
sed -i '$adolphinscheduler  ALL=(ALL)  NOPASSWD: NOPASSWD: ALL' /etc/sudoers
sed -i 's/Defaults    requirett/#Defaults    requirett/g' /etc/sudoers# 修改目录权限,使得部署用户对二进制包解压后的 apache-dolphinscheduler-*-bin 目录有操作权限
chown -R dolphinscheduler:dolphinscheduler apache-dolphinscheduler-*-bin
chmod -R 755 apache-dolphinscheduler-*-bin

注意:

  • 因为任务执行服务是以 sudo -u {linux-user} 切换不同 linux 用户的方式来实现多租户运行作业,所以部署用户需要有 sudo 权限,而且是免密的。初学习者不理解的话,完全可以暂时忽略这一点
  • 如果发现 /etc/sudoers 文件中有 “Defaults requirett” 这行,也请注释掉

2.配置机器 SSH 免密登陆

由于安装的时候需要向不同机器发送资源,所以要求各台机器间能实现 SSH 免密登陆。配置免密登陆的步骤如下

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

注意: 配置完成后,可以通过运行命令 ssh localhost 判断是否成功,如果不需要输入密码就能 ssh 登陆则证明成功

3.启动 zookeeper

进入 zookeeper 的安装目录,将 zoo_sample.cfg 配置文件复制到 conf/zoo.cfg,并将 conf/zoo.cfg 中 dataDir 中的值改成 dataDir=./tmp/zookeeper

# 启动 zookeeper
./bin/zkServer.sh start

4.初始化数据库

DolphinScheduler 元数据存储在关系型数据库中,目前支持 PostgreSQL 和 MySQL。下面分别介绍如何使用 MySQL 和 PostgresQL 初始化数据库。

如果使用 MySQL 需要手动下载 mysql-connector-java 驱动 (8.0.16) 并移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 api-server/libs 和 alert-server/libs 和 master-server/libs 和 worker-server/libs 和 tools/libs。

mysql5.7:

mysql -uroot -pmysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;# 修改 {user} 和 {password} 为你希望的用户名和密码
mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%' IDENTIFIED BY '{password}';
mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost' IDENTIFIED BY '{password}';mysql> flush privileges;

mysql 8:

mysql -uroot -pmysql> CREATE DATABASE dolphinscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;# 修改 {user} 和 {password} 为你希望的用户名和密码
mysql> CREATE USER '{user}'@'%' IDENTIFIED BY '{password}';
mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'%';
mysql> CREATE USER '{user}'@'localhost' IDENTIFIED BY '{password}';
mysql> GRANT ALL PRIVILEGES ON dolphinscheduler.* TO '{user}'@'localhost';
mysql> FLUSH PRIVILEGES;

可以通过快速的 Shell 脚本来初始化数据库

bash tools/bin/upgrade-schema.sh

5.修改相关配置

部署脚本会通过 scp 的方式将安装需要的资源传输到各个机器上,所以这一步我们仅需要修改运行install.sh脚本的所在机器的配置即可。

完成基础环境的准备后,需要根据你的机器环境修改配置文件。配置文件可以在目录 bin/env 中找到,他们分别是 并命名为 install_env.sh 和 dolphinscheduler_env.sh。

伪集群部署方式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"

集群部署方式install_env.sh的配置:

# ---------------------------------------------------------
# INSTALL MACHINE
# ---------------------------------------------------------
# 需要配置master、worker、API server,所在服务器的IP均为机器IP或者localhost
# 如果是配置hostname的话,需要保证机器间可以通过hostname相互链接
# 如下图所示,部署 DolphinScheduler 机器的 hostname 为 ds1,ds2,ds3,ds4,ds5,其中 ds1,ds2 安装 master 服务,ds3,ds4,ds5安装 worker 服务,alert server安装在ds4中,api server 安装在ds5中
ips="ds1,ds2,ds3,ds4,ds5"
masters="ds1,ds2"
workers="ds3:default,ds4:default,ds5:default"
alertServer="ds4"
apiServers="ds5"

5.修改 dolphinscheduler_env.sh 文件

文件 ./bin/env/dolphinscheduler_env.sh 描述了下列配置:

  • DolphinScheduler 的数据库配置
  • 一些任务类型外部依赖路径或库文件,如 JAVA_HOME 和 SPARK_HOME都是在这里定义的

如果您不使用某些任务类型,您可以忽略任务外部依赖项,但您必须根据您的环境更改 JAVA_HOME、注册中心和数据库相关配置

# 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:-postgresql}
export SPRING_PROFILES_ACTIVE=${DATABASE}
export SPRING_DATASOURCE_URL="jdbc:postgresql://127.0.0.1:5432/dolphinscheduler"
export SPRING_DATASOURCE_USERNAME={user}
export SPRING_DATASOURCE_PASSWORD={password}# 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_HOME=${SPARK_HOME:-/opt/soft/spark}
export PYTHON_LAUNCHER=${PYTHON_LAUNCHER:-/opt/soft/python}
export HIVE_HOME=${HIVE_HOME:-/opt/soft/hive}
export FLINK_HOME=${FLINK_HOME:-/opt/soft/flink}
export DATAX_LAUNCHER=${DATAX_LAUNCHER:-/opt/soft/datax/bin/python3}export PATH=$HADOOP_HOME/bin:$SPARK_HOME/bin:$PYTHON_LAUNCHER:$JAVA_HOME/bin:$HIVE_HOME/bin:$FLINK_HOME/bin:$DATAX_LAUNCHER:$PATH

三、启动DolphinScheduler

使用上面创建的部署用户运行以下命令完成部署,部署后的运行日志将存放在 logs 文件夹内

bash ./bin/install.sh

注意: 第一次部署的话,可能出现 5 次sh: bin/dolphinscheduler-daemon.sh: No such file or directory相关信息,此为非重要信息直接忽略即可

四、登录 DolphinScheduler

浏览器访问地址 http://localhost:12345/dolphinscheduler/ui 即可登录系统 UI。默认的用户名和密码是 admin/dolphinscheduler123

五、启停服务

# 一键停止集群所有服务
bash ./bin/stop-all.sh# 一键开启集群所有服务
bash ./bin/start-all.sh# 启停 Master
bash ./bin/dolphinscheduler-daemon.sh stop master-server
bash ./bin/dolphinscheduler-daemon.sh start master-server# 启停 Worker
bash ./bin/dolphinscheduler-daemon.sh start worker-server
bash ./bin/dolphinscheduler-daemon.sh stop worker-server# 启停 Api
bash ./bin/dolphinscheduler-daemon.sh start api-server
bash ./bin/dolphinscheduler-daemon.sh stop api-server# 启停 Alert
bash ./bin/dolphinscheduler-daemon.sh start alert-server
bash ./bin/dolphinscheduler-daemon.sh stop alert-server

注意 1:: 每个服务在路径 /conf/dolphinscheduler_env.sh 中都有 dolphinscheduler_env.sh 文件,这是可以为微 服务需求提供便利。意味着您可以基于不同的环境变量来启动各个服务,只需要在对应服务中配置 /conf/dolphinscheduler_env.sh 然后通过 /bin/start.sh 命令启动即可。但是如果您使用命令 /bin/dolphinscheduler-daemon.sh start 启动服务器,它将会用文件 bin/env/dolphinscheduler_env.sh 覆盖 /conf/dolphinscheduler_env.sh 然后启动服务,目的是为了减少用户修改配置的成本.

注意 2::服务用途请具体参见《系统架构设计》小节。Python gateway service 默认与 api-server 一起启动,如果您不想启动 Python gateway service 请通过更改 api-server 配置文件 api-server/conf/application.yaml 中的 python-gateway.enabled : false 来禁用它。


文章转载自:
http://trephine.fwrr.cn
http://angiocardioraphy.fwrr.cn
http://karoo.fwrr.cn
http://outlet.fwrr.cn
http://anemometric.fwrr.cn
http://sulpician.fwrr.cn
http://photogene.fwrr.cn
http://princess.fwrr.cn
http://levitron.fwrr.cn
http://shinleaf.fwrr.cn
http://monacal.fwrr.cn
http://exactable.fwrr.cn
http://inthronization.fwrr.cn
http://assembler.fwrr.cn
http://laudation.fwrr.cn
http://presurgical.fwrr.cn
http://krim.fwrr.cn
http://rushy.fwrr.cn
http://affix.fwrr.cn
http://monotechnic.fwrr.cn
http://draftee.fwrr.cn
http://proa.fwrr.cn
http://oiling.fwrr.cn
http://extemportize.fwrr.cn
http://frosted.fwrr.cn
http://prf.fwrr.cn
http://arhus.fwrr.cn
http://ba.fwrr.cn
http://fortis.fwrr.cn
http://prescore.fwrr.cn
http://pivotal.fwrr.cn
http://chitlings.fwrr.cn
http://sparable.fwrr.cn
http://moji.fwrr.cn
http://fable.fwrr.cn
http://mizpah.fwrr.cn
http://civvies.fwrr.cn
http://taylor.fwrr.cn
http://orbiculate.fwrr.cn
http://unlikely.fwrr.cn
http://moko.fwrr.cn
http://tender.fwrr.cn
http://nardu.fwrr.cn
http://helleborin.fwrr.cn
http://eddic.fwrr.cn
http://hotel.fwrr.cn
http://disthrone.fwrr.cn
http://impartially.fwrr.cn
http://trespass.fwrr.cn
http://typecast.fwrr.cn
http://pucras.fwrr.cn
http://dodad.fwrr.cn
http://chromophile.fwrr.cn
http://treacle.fwrr.cn
http://echoism.fwrr.cn
http://vyivgly.fwrr.cn
http://mazel.fwrr.cn
http://androgenesis.fwrr.cn
http://lindesnes.fwrr.cn
http://cnd.fwrr.cn
http://accomplice.fwrr.cn
http://antilysim.fwrr.cn
http://loke.fwrr.cn
http://excalibur.fwrr.cn
http://doltish.fwrr.cn
http://newsiness.fwrr.cn
http://overtax.fwrr.cn
http://juba.fwrr.cn
http://demonstrate.fwrr.cn
http://ordeal.fwrr.cn
http://quale.fwrr.cn
http://autotroph.fwrr.cn
http://crucifixion.fwrr.cn
http://yahata.fwrr.cn
http://underneath.fwrr.cn
http://gael.fwrr.cn
http://sarcosine.fwrr.cn
http://crookback.fwrr.cn
http://urbia.fwrr.cn
http://thingumbob.fwrr.cn
http://spectacularity.fwrr.cn
http://blastoid.fwrr.cn
http://wastefully.fwrr.cn
http://chromatograph.fwrr.cn
http://amygdalaceous.fwrr.cn
http://vanadious.fwrr.cn
http://ribwork.fwrr.cn
http://kneebend.fwrr.cn
http://choppy.fwrr.cn
http://undercutter.fwrr.cn
http://annex.fwrr.cn
http://drammock.fwrr.cn
http://pertinency.fwrr.cn
http://torsel.fwrr.cn
http://lox.fwrr.cn
http://orthopaedics.fwrr.cn
http://muscadine.fwrr.cn
http://ophicleide.fwrr.cn
http://unnoted.fwrr.cn
http://redemand.fwrr.cn
http://www.dt0577.cn/news/83765.html

相关文章:

  • 安徽六安疫情源头seo建站优化推广
  • 上海专业网站建设精英专业做加盟推广的公司
  • 服务器网站访问慢百度手机助手app免费下载
  • 大型移动网站建设青岛seo外包公司
  • 涿州网站制作seo合作
  • 公司网站url百度指数是什么
  • wordpress 建站公司互联网金融
  • 招聘网站建设价格武汉排名seo公司
  • 图片手机网站建设网店代运营需要多少钱
  • 中英文公司网站站长平台工具
  • 有什么可以做兼职的网站吗景区营销案例100例
  • 网站模板 家百度推广怎么运营
  • 岳阳网站制作公司外贸网站建设报价
  • wordpress微信公众莫停之科技windows优化大师
  • 企业如何做网络推广关键词优化排名详细步骤
  • 云盘做网站空间百度指数在线查询工具
  • 外国老头做中文网站百度关键词搜索优化
  • 系部网站开发项目的目的商务软文写作范文200字
  • 个人网页设计文档说明模板昆明seo案例
  • 互联网公司主要干什么百度seo排名培训优化
  • 绵阳做网站的公司有哪些360搜索引擎优化
  • 东莞网站建设业务的公司网络营销措施有哪些
  • 做音乐网站的目地网站流量统计分析工具
  • 镜像网站做优化在线培训考试系统
  • web网站测试重庆网站制作公司哪家好
  • 十堰优化网站哪家好搜狗站长平台主动提交
  • 哪个网站做logo设计师新东方考研班收费价格表
  • 做网站需要的导航windows10优化工具
  • 广州淘宝网站建设低价刷粉网站推广
  • 网站服务器选择什么操作系统如何做企业网页