两个节点DSE火花集群错误设置第二个节点。为什么? [英] Two node DSE spark cluster error setting up second node. Why?

查看:529
本文介绍了两个节点DSE火花集群错误设置第二个节点。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个节点DSE火花集群。
我安装之后的一个DSE分析火花节点无法启动。如果没有火花启动就好了。但在我的其他节点的火花被启用,它可以启动和工作得很好。这是为什么,我该如何解决呢?谢谢你。

这是我的错误日志:

 错误[主] 20 2016年2月27日:35:43353 CassandraDaemon.java:294  - 致命初始化过程中的异常
    org.apache.cassandra.exceptions.ConfigurationException:无法启动的节点,如果飞贼的数据中心(分析)从previous数据中心(卡桑德拉)不同。请修正打小报告配置,停用和rebootstrap此节点,或者使用标志-Dcassandra.ignore_dc =真。
        在org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:629)〜[卡桑德拉 - 全2.1.12.1046.jar:2.1.12.1046]
        在org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:290)卡桑德拉 - 全2.1.12.1046.jar:2.1.12.1046]
        在com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:335)DSE-核心4.8.4.jar:4.8.4]
        在org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:564)卡桑德拉 - 全2.1.12.1046.jar:2.1.12.1046]
        在com.datastax.bdp.DseModule.main(DseModule.java:74)DSE-核心4.8.4.jar:4.8.4]
    INFO [线程2] 2016年2月27日20:35:43355 DseDaemon.java:418 - DSE关停...


解决方案

您previously开始这个节点与DseSimpleSnitch其命名为数据中心卡桑德拉因为没有启用分析。

现在开始,当此节点上磁盘状态的记录,该数据中心的名称应该是卡桑德拉,但因为它是在分析模式下启动实际的数据中心的名称是分析。清除在/ var / lib中/卡桑德拉和它应该消灭旧的数据并重新开始。

在如果您将使用GossipingPropertyFileSnitch或其他打小报告,让你明确地命名数据中心节点的未来,就可以避免因为改变的工作量不会改变数据中心的名称这一问题。

I have DSE spark cluster with 2 nodes. One DSE analytics node with spark cannot start after I install it. Without spark it starts just fine. But on my other node spark is enabled and it can start and works just fine. Why is that and how can I solve that? Thanks.

Here is my error log:

   ERROR [main] 2016-02-27 20:35:43,353  CassandraDaemon.java:294 - Fatal exception during initialization
    org.apache.cassandra.exceptions.ConfigurationException: Cannot start node if snitch's data center (Analytics) differs from previous data center (Cassandra). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true.
        at org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:629) ~[cassandra-all-2.1.12.1046.jar:2.1.12.1046]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:290) [cassandra-all-2.1.12.1046.jar:2.1.12.1046]
        at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:335) [dse-core-4.8.4.jar:4.8.4]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:564) [cassandra-all-2.1.12.1046.jar:2.1.12.1046]
        at com.datastax.bdp.DseModule.main(DseModule.java:74) [dse-core-4.8.4.jar:4.8.4]
    INFO  [Thread-2] 2016-02-27 20:35:43,355  DseDaemon.java:418 - DSE shutting down...

解决方案

You previously started this node with the DseSimpleSnitch which named the Datacenter Cassandra since analytics was not enabled.

Now when starting this node the records on disk state that the datacenter name should be "Cassandra" but since it was started in analytics mode the actual datacenter name is "Analytics". Clear out /var/lib/cassandra and it should wipe out the old data and start fresh.

In the future if you set your nodes to use the GossipingPropertyFileSnitch or another snitch that allows you to name the datacenter explicitly, you can avoid this problem since changing the workload will not change the Datacenter name.

这篇关于两个节点DSE火花集群错误设置第二个节点。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆