flink 提交job

2020-08-29  本文已影响0人  程序男保姆
  1. 独立集群提交
    # 启动集群
    bin/start-cluster.sh

    # 提交job
    ./bin/flink run  ./examples/batch/WordCount.jar  --input hdfs:/user/yuan/input/wc.count --output hdfs:/user/yuan/swwwttt
  1. yarn session
    # 启动集群
    ./bin/yarn-session.sh -jm 1024m -tm 4096m

    # 提交job
    ./bin/flink run  ./examples/batch/WordCount.jar  --input hdfs:/user/yuan/input/wc.count --output hdfs:/user/yuan/swwwttt
  1. yarn single job
    # 提交job
    ./bin/flink run -m yarn-cluster ./examples/batch/WordCount.jar  --input hdfs:/user/yuan/input/wc.count --output hdfs:/user/yuan/swwwttt
上一篇下一篇

猜你喜欢

热点阅读