Twitter storm example running in local mode cannot delete file

馋奶兔 提交于 2019-12-01 17:25:59

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!