我用eclipse创建了一个java工程,导入storm的一些jar包。写了一个简单的例子,但是启动报错了。。
java.io.IOException: Unable to delete file: C:\Users\ADMINI~1\AppData\Local\Temp\17c69038-6557-49fb-b24d-236dea1f29e2\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:164)
at backtype.storm.LocalCluster$_shutdown.invoke(LocalCluster.clj:32)
at backtype.storm.LocalCluster.shutdown(Unknown Source)
at storm.TestTopology.main(TestTopology.java:26)
2349 [Thread-6-EventThread] INFO com.netflix.curator.framework.state.ConnectionStateManager - State change: SUSPENDED
2349 [ConnectionStateManager-0] WARN com.netflix.curator.framework.state.ConnectionStateManager - There are no ConnectionStateListeners registered.
2350 [Thread-6-EventThread] WARN backtype.storm.cluster - Received event :disconnected::none: with disconnected Zookeeper.
4957 [Thread-6-SendThread(localhost:2000)] WARN org.apache.zookeeper.ClientCnxn - Session 0x14e903f51fa000b for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
7774 [Thread-6-SendThread(localhost:2000)] WARN org.apache.zookeeper.ClientCnxn - Session 0x14e903f51fa000b for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
原来和storm的版本有关。。。。我用的是storm-0.8.2版本。。。这个错误是在eclipse本地运行storm的时候在其结束的时候报的错误。