C:\Users\Mert\AppData\Local\Temp\8bbdc8e5-a753-40f3-afe0-0c2fcc1c25a0\version-2\log.1Storm 可以删除日志文件以便关机.我尝试了 Eclipse.exe 和 javaw.exe 的管理员模式,但它不起作用.我该怎么办?IO 异常堆栈跟踪:exception.detailMessage -> java.io.IOException:无法删除文件:C:\Users\Mert\AppData\Local\Temp\c3c9b21b-7817-4b63-92ae-555a49743d9d\version-2\log.1exception.stackTrace -> StackTraceElement[0] (id=130)运行后控制台输出:java.io.IOException:无法删除文件:C:\Users\Mert\AppData\Local\Temp\0edc7fc7-590f-452c-8f99-231b95a64a19\version-2\log.1在 org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)在 org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)在 org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)在 org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)在 org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)在 org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)在 org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)在 backtype.storm.util$rmr.invoke(util.clj:413)在 backtype.storm.testing$kill_local_storm_cluster.invoke(testing.clj:163)在 backtype.storm.LocalCluster$_shutdown.invoke(LocalCluster.clj:25)在 backtype.storm.LocalCluster.shutdown(来源不明)在 WordCountTopology.main(WordCountTopology.java:83) 解决方案 nathanmarz 的回复:https://github.com/nathanmarz/storm/pull/102也许你需要一个蝙蝠来清除日志.I have a problem.I understad trouble but I don't find solution.Cluster isn't shutdown,throw IOException.I/O methods not work because Windows doesn't allow temp folder.I mean this path; C:\Users\Mert\AppData\Local\Temp\8bbdc8e5-a753-40f3-afe0-0c2fcc1c25a0\version-2\log.1Storm be able to delete log files for shutdown.I tried administrator mode for Eclipse.exe and javaw.exe but it doesn't work.What can I do ?IO Exception stack trace: exception.detailMessage -> java.io.IOException: Unable to delete file: C:\Users\Mert\AppData\Local\Temp\c3c9b21b-7817-4b63-92ae-555a49743d9d\version-2\log.1 exception.stackTrace -> StackTraceElement[0] (id=130)Console output after run: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) 解决方案 nathanmarz's reply:https://github.com/nathanmarz/storm/pull/102maybe you need a bat for clearing log . 这篇关于Eclipse 中的 Storm 集群关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-23 01:25