http://www.reader8.cn/jiaocheng/20131023/2139887.html
错误1:在windows下运行ExclamationTopology或者WordCountTopology时,报“Unable to delete file错误”这是storm的一个bug,0.8.2版本还没有解决,这个错误在cluster.shutdown();时候抛出,没有什么好解决办法,注释掉shutdown()方法程序将不会自己停止,这个错误影响有限,忽略它吧。
参考:Twitter storm example running in local mode cannot delete file
错误2:?运行topology出现错误“java.net.SocketException: Address family not supported by protocol family: connect”,详细如下:1165 [main] INFO backtype.storm.daemon.nimbus - Using default scheduler
1186 [main] INFO com.netflix.curator.framework.imps.CuratorFrameworkImpl - Starting
1198 [main-SendThread(localhost:2000)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.SocketException: Address family not supported by protocol family: connect
?解决方法:
- ping localhost,如果没有正确回应把hosts文件配置一下试试!
- 运行main class的时候添加“-Djava.net.preferIPv4Stack=true”参数试试!
错误3:“Found multiple defaults.yaml resources. You're probably bundling the Storm jars with your topology jar.”
解决办法:
问题原因:jvm执行中发现多个defaults.yaml 先把pom中storm改为provided,如果既使用maven pom文件管理jar,又手工添加storm jar就会出现这个问题,删除其中一个再试试。
?
?