storm集群在eclipse中关闭

4c8rllxm  于 2021-06-26  发布在  Storm
关注(0)|答案(1)|浏览(311)

我有一个问题。我理解了问题,但我没有找到解决方法。群集没有关闭,抛出ioexception。i/o方法不工作,因为windows不允许临时文件夹。我是说这个路径;
c:\users\mert\appdata\local\temp\8bbdc8e5-a753-40f3-afe0-0c2fcc1c25a0\version-2\log.1
storm无法删除关闭的日志文件。
我尝试了eclipse.exe和javaw.exe的管理员模式,但不起作用。我能做什么?
io异常堆栈跟踪:
exception.detailmessage->java.io.ioexception:无法删除文件:c:\users\mert\appdata\local\temp\c3c9b21b-7817-4b63-92ae-555a49743d9d\version-2\log.1
exception.stacktrace->stacktraceelement[0](id=130)
运行后控制台输出:

java.io.IOException: Unable to delete file: C:\Users\Mert\AppData\Local\Temp\0edc7fc7-590f-452c-8f99-231b95a64a19\version-2\log.1
    at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)
    at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)
    at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)
    at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)
    at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)
    at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)
    at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)
    at backtype.storm.util$rmr.invoke(util.clj:413)
    at backtype.storm.testing$kill_local_storm_cluster.invoke(testing.clj:163)
    at backtype.storm.LocalCluster$_shutdown.invoke(LocalCluster.clj:25)
    at backtype.storm.LocalCluster.shutdown(Unknown Source)
    at WordCountTopology.main(WordCountTopology.java:83)
d6kp6zgx

d6kp6zgx1#

nathanmarz的回答是:
https://github.com/nathanmarz/storm/pull/102
也许你需要一个球棒来清理日志。

相关问题