V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hheedat
V2EX  ›  问与答

locally 的 spark steaming 任务如何停止?

  •  
  •   hheedat · Jun 16, 2017 · 1609 views
    This topic created in 3249 days ago, the information mentioned may be changed or developed.
    部署方式分 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 了;
    小白求教正确的停止方法;
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3130 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
    ♥ Do have faith in what you're doing.