sudo yum -y install psmisc
## 部署用户设置
echo 'user_name ALL=(ALL) NOPASSWD: NOPASSWD: ALL' >> /etc/sudoers
sed -i 's/Defaults requirett/#Defaults requirett/g' /etc/sudoers
## 免密登录配置
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
ssh-copy-id user_name @132.151.7.4
ssh-copy-id user_name @132.151.7.5
ssh-copy-id user_name @132.151.7.6
ssh-copy-id user_name @132.151.7.7
## 数据库初始化
##修改配置文件 bin/env/install_env.sh 和 dolphinscheduler_env.sh
bash bin/install.sh
报错
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.DefaultParser at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
这是因为commons-cli-1.2.jar包中确实没有DefaultParser类,因为zookeeper.jar使用了3.8.0所以是版本匹配不上导致。实际zk集群是3.4.6版本
替换为zookeeper-3.4.6.jar
又报错KeeperErrorCode = Unimplemented for curator zookeeper 版本匹配问题
替换为 curator-client-4.2.0.jar curator-framework-4.2.0.jar curator-recipes-4.2.0.jar
标签:name,部署,dolphinscheduler,jar,curator,ssh,3.1,id,user
From: https://www.cnblogs.com/route/p/17294234.html