当我第一次尝试运行cassandra时,我会遇到以下错误。有什么建议吗?
启动过程中遇到的异常:无效的yaml: file:/D:/apache-cassandra-3.10/conf/cassandra.yaml错误: null;无法为tag:yaml.org,2002:org.apache.cassandra.config.Config;exception=java.lang.reflect.InvocationTargetException;构造‘CassandraDaemon.java:752’对象,第10行,第1列: cluster_name:‘测试集群’^
发布于 2020-12-06 11:15:59
检查cassandra.yaml文件。即使它似乎有正确的格式,每个属性在:之后也必须有一个空格。
在我的例子中,我修改了种子,如下所示:
seeds:"IP1,IP2"导致了同样的错误。
错误地导致错误指示cluster_name。
我把空格放在结肠后面
seeds: "IP1,IP2"开始了卡桑德拉的服务。错误消失了,卡桑德拉成功地启动了。
https://stackoverflow.com/questions/42687381
复制相似问题