notebook/other/Centos-7.sql
2025-06-19 13:16:41 +08:00

88 lines
2.5 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum -y makecache update
yum install net-tools - y
netstat -tlnp
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
vi /etc/profile
export JAVA_HOME=/opt/jdk8
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
/opt/dolphinscheduler-3.2.2/api-server/libs/
export PYTHON_LAUNCHER=/usr/bin/python3
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export DATAX_LAUNCHER=/opt/datax/bin/datax.py
export PATH=$PYTHON_LAUNCHER:$JAVA_HOME/bin:$DATAX_LAUNCHER:$PATH
python /opt/datax/bin/datax.py /opt/datax/job/job.json
http://yin520.cn:12345/dolphinscheduler/ui
yinzhou
dolphinscheduler996
https://note.youdao.com/s/WuYHv1cU
,sql任务调度,,,(sql)
dolphinscheduler调度器搭建,
#
tar -xvzf apache-dolphinscheduler-*-bin.tar.gz
# 使 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
su dolphinscheduler
#
bash /opt/dolphinscheduler-3.2.2/bin/stop-all.sh
#
bash /opt/dolphinscheduler-3.2.2/bin/start-all.sh
bash /opt/dolphinscheduler-3.2.2/bin/dolphinscheduler-daemon.sh stop master-server
bash /opt/dolphinscheduler-3.2.2/bin/dolphinscheduler-daemon.sh start master-server
pip3 install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple
virtualenv -p python3 /opt/my_python_env
source /opt/job/.venv/Scripts/activate
deactivate
cd /opt/job/ && source /opt/my_python_env/bin/activate
source /opt/job/.venv/Scripts/activate
pip3 install -r /opt/job/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install psycopg2==2.9.6 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install wheel -i https://pypi.tuna.tsinghua.edu.cn/simple