赞
踩
1、Flink on yarn模式下,flink cdc需要先启动yarn-session模式
yarn-session.sh -n 10 -s 2
2、启动之后进行正常测试
CREATE TABLE test1(
id INT
PRIMARY KEY(id) NOT ENFORCED
) WITH (
'connector'='oracle-cdc',
'hostname'='127.0.01',
'port'='1521',
'username'='dwd',
'password'='dwd',
'database-name'='prod',
'table-name' ='test1','schema-name'='dw'
);
select * from test1 limit 10;
3、oracle驱动缺失, on yarn缺失的jar需要拷贝到#FLINK_HOME/lib/
scp ojdbc8-21.5.0.0.jar hdfs@hadoop09:/BigData/run/flink/lib/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。