赞
踩
安装包:
cd /opt/datasophon/DDP/packages
tar zxvf flink-1.16.2.tar.gz -C /opt/datasophon/DDP/packages
cd /opt/datasophon/DDP/packages
chown -R root:root flink-1.16.2
cd /opt/datasophon/DDP/packages
mv flink-1.16.2.tar.gz flink-1.16.2.tar.gz.bak -- 备份
tar czf flink-1.16.2.tar.gz flink-1.16.2 -- 重新打包
md5sum flink-1.16.2.tar.gz
echo '8d9ee35827dd3fbb758bf592c27bdbd4' > flink-1.16.2.tar.gz.md5
rm -rf /opt/datasophon/flink*
cd /opt/datasophon/DDP/packages/datasophon-manager-1.1.3/conf/meta/DDP-1.1.3/
vi /opt/datasophon/DDP/packages/datasophon-manager-1.1.3/conf/meta/DDP-1.1.3/FLINK/service_ddl.json
*datasophon-manager-1.1.3 为当前的datasohon安装版本,可能多处地方需要修改
vi /etc/profile.d/datasophon-env.sh
echo ${FLINK_HOME}
source /etc/profile
echo ${FLINK_HOME}
reboot
echo ${HADOOP_HOME}
*不重启HADOOP_HOME的环境变量安装时还是不生效
rm -rf /opt/datasophon/DDP/packages/datasophon-manager-1.1.3/logs/*
/opt/datasophon/DDP/packages/datasophon-manager-1.1.3/bin/datasophon-api.sh restart api
cd /opt/datasophon/DDP/packages/datasophon-manager-1.1.3/logs
查看相应的表配置数据
select * from t_ddh_frame_service;
select * from t_ddh_frame_service_role;
export HADOOP_CLASSPATH=`hadoop classpath`
bin/flink run -m yarn-cluster ./examples/batch/WordCount.jar
集群提交,日志需要在yarn上查看
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。