V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hheedat
V2EX  ›  问与答

locally 的 spark steaming 任务如何停止?

  •  
  •   hheedat · 2017-06-16 17:05:44 +08:00 · 1333 次点击
    这是一个创建于 2523 天前的主题,其中的信息可能已经有所发展或是发生改变。
    部署方式分 locally,standalone,mesos,yarn

    standalone,mesos 可以用 spark-submit --master $MASTER_REST_URL --kill $DRIVER_ID 来停止

    yarn 貌似可以用 yarn application kill 来停止

    我本地起的怎么停止呀?

    spark-submit --class <main-class> --master "local[2]" /path/xxxx/stat-1.0-jar-with-dependencies.jar 这种的,要是在前台我可以 ctrl+c ;
    nohup & 放到后台,ps 都找不到了...
    怎么破?! Google 了半天,没有找到合适的办法...
    打开 spark.ui 倒是能看到各种信息,最后我通过 spark.driver.port 找到进程,然后 kill 了;
    小白求教正确的停止方法;
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5053 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:35 · PVG 13:35 · LAX 22:35 · JFK 01:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.