添加新节点发生错误
Posted
技术标签:
【中文标题】添加新节点发生错误【英文标题】:Add a new node occur error 【发布时间】:2016-04-01 02:56:07 【问题描述】:我在我的 3.0.4 集群中使用 plugin(cassandra-lucene-index) 3.0.4,我有三个节点,当我向集群添加一个新节点时,出现了流错误:
ERROR [main] 2016-03-31 11:40:04,641 StorageService.java:1295 - Error while waiting on bootstrap to complete. Bootstrap will have to be restarted.
java.util.concurrent.ExecutionException: org.apache.cassandra.streaming.StreamException: Stream failed
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) ~[guava-18.0.jar:na]
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286) ~[guava-18.0.jar:na]
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[guava-18.0.jar:na]
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:1290) [apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:966) [apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:740) [apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:610) [apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:333) [apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551) [apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) [apache-cassandra-3.0.4.jar:3.0.4]
Caused by: org.apache.cassandra.streaming.StreamException: Stream failed
at org.apache.cassandra.streaming.management.StreamEventJMXNotifier.onFailure(StreamEventJMXNotifier.java:85) ~[apache-cassandra-3.0.4.jar:3.0.4]
at com.google.common.util.concurrent.Futures$6.run(Futures.java:1310) ~[guava-18.0.jar:na]
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457) ~[guava-18.0.jar:na]
at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) ~[guava-18.0.jar:na]
at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:145) ~[guava-18.0.jar:na]
at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:202) ~[guava-18.0.jar:na]
at org.apache.cassandra.streaming.StreamResultFuture.maybeComplete(StreamResultFuture.java:210) ~[apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.streaming.StreamResultFuture.handleSessionComplete(StreamResultFuture.java:186) ~[apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.streaming.StreamSession.closeSession(StreamSession.java:430) ~[apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.streaming.StreamSession.maybeCompleted(StreamSession.java:706) ~[apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.streaming.StreamSession.taskCompleted(StreamSession.java:667) ~[apache-cassandra-3.0.4.jar:3.0.4]
at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:210) ~[apache-cassandra-3.0.4.jar:3.0.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_73]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_73]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_73]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_73]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_73]
我删除了使用Lucene索引的keyspace,然后添加了一个新节点成功。 为什么?
【问题讨论】:
【参考方案1】:也许值得在他们的 Github 存储库中创建一个问题:https://github.com/Stratio/cassandra-lucene-index
【讨论】:
【参考方案2】:正如here 所说,这个问题只发生过一次,因此可能是最终的网络故障。
【讨论】:
以上是关于添加新节点发生错误的主要内容,如果未能解决你的问题,请参考以下文章
Odoo - 添加新字段时出错:ValidateError 验证字段拱时发生错误:视图架构的 XML 无效