Commit 11d0cb6f authored by master's avatar master

add build.sh and run.sh

parent 459b40b9
export MAVEN_HOME=/opt/apache-maven-3.6.1
$MAVEN_HOME/bin/mvn clean install -DskipTests
$MAVEN_HOME/bin/mvn clean package -DskipTests
export FLINK_HOME=/opt/flink-1.9.0
export JAR_DIR=/srv/apps/flink/flink-procedure/bl_et_pe_preciseexposure_inc_d_bm
export HADOOP_HOME=/opt/hadoop-2.6.0-cdh5.16.1
$FLINK_HOME/bin/flink run \
-m yarn-cluster \
-yn 2 \
-ynm bl_et_pe_preciseexposure_inc_d_bm \
-yqu flink \
-p 2 \
-ytm 2048 \
-ys 2 \
$JAR_DIR/bl_et_pe_preciseexposure_inc_d_bm-1.0-SNAPSHOT.jar \
--inBrokers '172.16.44.25:9092,172.16.44.31:9092,172.16.44.45:9092' \
--inTopic 'gm-maidian-data' \
--inzk '172.16.44.25:2181/gengmei' \
--groupId 'bl_et_pe_preciseexposure_inc_d_bm_test' \
--dimJdbcUrl 'jdbc:mysql://172.22.30.12:3506/test?user=work&password=zJnxVEhyyxeC7ciqxdMITVyWqOFc2mew&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true' \
--sinkBFBlTableName 'bl_et_mg_preciseexposure_inc_d_rt_bf' \
--sinkHLLBlTableName 'bl_et_mg_preciseexposure_inc_d_rt_hll' \
--sinkBMBlTableName 'bl_et_mg_preciseexposure_inc_d_rt_bm' \
--sinkBrokers '172.16.44.25:9092,172.16.44.31:9092,172.16.44.45:9092' \
--sinkTopic 'bl_et_mg_preciseexposure_inc_d_rt_test' \
--sinkJdbcUrl 'jdbc:mysql://172.22.30.12:3506/test?user=work&password=zJnxVEhyyxeC7ciqxdMITVyWqOFc2mew&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false' \
--startTime '2020-01-09 23:00:00' \
--checkpointPath 'hdfs://bj-gmei-hdfs/user/data/flink/bl_et_pe_preciseexposure_inc_d_bm/checkpoint'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment