Twitter storm example running in local mode cannot delete file

后端 未结 1 539
傲寒
傲寒 2021-01-18 11:23

I am running the storm starter project (https://github.com/nathanmarz/storm-starter) and it throws the following error after running for a little while.

2313         


        
相关标签:
1条回答
  • 2021-01-18 11:51

    Per this File delete problem on Windows, this problem still exists in storm version 0.8.2. As of now, the below workaround worked for me. You may need to comment out the cluster.killTopology() and cluster.shutdown() methods, as shown below, to avoid the file deletion error.

     LocalCluster cluster = new LocalCluster();
            cluster.submitTopology("test", conf, builder.createTopology());
            Utils.sleep(10000);
           // cluster.killTopology("test");
           // cluster.shutdown();  
    

    Hope, this helps

    0 讨论(0)
提交回复
热议问题