zoukankan      html  css  js  c++  java
  • Flink job submit & kafka sasl

    # resource
    jar_path=
    clazz=
    #
    jobName=
    bootstrap_server=
    topic=
    groupId=
    isSecurity=true
    consumerStrategy=
    redis_hostname=
    redis_port=


    if [ "$isSecurity" == true ]; then

    /software/servers/flink/bin/flink  run  
    -m yarn-cluster 
    -yD env.java.opts="-Djava.security.auth.login.config=/software/servers/keytab/kafka_client_jass.conf"
    -yqu root.budata.ads 
    -c $clazz  $jar_path --jobName $jobName --bootstrap-server $bootstrap_server --topic $topic --groupId $groupId --isSecurity $isSecurity --consumerStrategy $consumerStrategy --redis_hostname $redis_hostname --redis_port $redis_port

    else

    echo "/software/servers/flink/bin/flink  run  -m yarn-cluster  -yqu root.budata.ads  -c $clazz  $jar_path --jobName $jobName --bootstrap-server $bootstrap_server --topic $topic --groupId $groupId --isSecurity $isSecurity --consumerStrategy $consumerStrategy --redis.hostname $redis_hostname --redis.port $redis_port"

    /software/servers/flink/bin/flink  run  -m yarn-cluster  -yqu root.budata.ads  -c $clazz  $jar_path --jobName $jobName --bootstrap-server $bootstrap_server --topic $topic --groupId $groupId --isSecurity $isSecurity --consumerStrategy $consumerStrategy --redis_hostname $redis_hostname --redis_port $redis_port

    fi


    更多参数:

    https://ci.apache.org/projects/flink/flink-docs-release-1.3/setup/config.html

  • 相关阅读:
    jmeter工具应用1
    django1
    5.自动化测试模型
    4.清除cookie操作
    2.操作浏览器
    3.8种元素定位
    1.介绍与环境安装
    模块
    urllib库
    自动化测试PO模式
  • 原文地址:https://www.cnblogs.com/maoxiangyi/p/11003329.html
Copyright © 2011-2022 走看看