我们使用两个不同的服务器为Cassandra和赛尔斯。所有模块都在sailsjs中配置。我们正在尝试运行sails lift,但得到以下错误代码:
信息:正在启动应用程序。。。
/doowdle/backend/node\u modules/cassandra store/lib/cassandrastore.js:45抛出错误;^错误:尝试查询的所有主机都失败。尝试的第一个主机,x.x.x.x:9042:错误:connect econnrefused x.x.x:9042。请参见内部错误。
在cassandra.yaml文件中有什么我遗漏的吗?
当我运行./cassandra时,我得到了以下输出:
owner@sts-yyc-ubuntu:/etc/apache-cassandra-2.2.12/bin$。/cassandraowner@sts-yyc-ubuntu:/etc/apache-cassandra-2.2.12/bin$compileroracle:inline org/apache/cassandra/db/abstractnativecell.compareto(lorg/apache/cassandra/db/composites/composite;)i compileroracle:inline org/apache/cassandra/db/composites/abstractsimplecellnetype.compareunsigned(lorg/apache/cassandra/db/composites/composite;lorg/apache/cassandra/db/composites/composite;)i compileroracle:inline org/apache/cassandra/io/util/memory.checkbounds(jj)v compileroracle:inline org/apache/cassandra/io/util/safememory.checkbounds(jj)v compileroracle:inline org/apache/cassandra/utils/asymmetricordering.selectboundary(lorg/apache/cassandra/utils/asymmetricordering/op;ii)i compileroracle:inline org/apache/cassandra/utils/asymmetricordering.strictnessoflessthan(lorg/apache/cassandra/utils/asymmetricordering/op;)i compileroracle:inline org/apache/cassandra/utils/bytebufferutil.compare(ljava/nio/bytebuffer[b) i compileroracle:inline org/apache/cassandra/utils/bytebufferutil.compare([bljava/nio/bytebuffer;)i compileroracle:inline org/apache/cassandra/utils/bytebufferutil.compareunsigned(ljava/nio/bytebuffer;ljava/nio/bytebuffer;)i compileroracle:inline org/apache/cassandra/utils/fastbyeteoperations$unsafeoperations.compareto(ljava/lang/object;jiljava/lang/object;ji)i compileroracle:inline org/apache/cassandra/utils/fastbyeteoperations$unsafeoperations.compareto(ljava/lang/object;jiljava/nio/bytebuffer;)i compileroracle:inline org/apache/cassandra/utils/fastbyeteoperations$unsafeoperations.compareto(ljava/nio/bytebuffer;ljava/nio/bytebuffer;)启动期间遇到异常(org.apache.cassandra.exceptions.configurationexception):无效的yaml。请删除属性[凭证\有效性\在\毫秒内,启用\脚本\用户定义\函数,列\索引\缓存\大小\在\ kb内,背压\启用,启用\物化\视图,cdc \启用,准备\语句\缓存\大小\ mb,背压\策略,并发\物化\视图\写入,透明\数据\加密\选项,cassandra.yaml org.apache.cassandra.exceptions.configurationexception:无效的yaml。请删除属性[凭证\有效性\在\毫秒内,启用\脚本\用户定义\函数,列\索引\缓存\大小\在\ kb内,背压\启用,启用\物化\视图,cdc \启用,准备\语句\缓存\大小\ mb,背压\策略,并发\物化\视图\写入,透明\数据\加密\选项,节俭\u准备\u语句\u缓存\u大小\u mb,慢速\u查询\u日志\u超时\u毫秒,提示\u刷新\u周期\u毫秒,max\u hints\u file\u size\u in\u mb]来自您的cassandra.yaml,位于org.apache.cassandra.config.yamlconfigurationloader$missingpropertieschecker.check(yamlconfigurationloader)。java:146)在org.apache.cassandra.config.yamlconfigurationloader.loadconfig(yamlconfigurationloader。java:113)在org.apache.cassandra.config.yamlconfigurationloader.loadconfig(yamlconfigurationloader。java:85)在org.apache.cassandra.config.databasedescriptor.loadconfig(databasedescriptor。java:149)在org.apache.cassandra.config.databasedescriptor。java:133)在org.apache.cassandra.service.cassandrademon.activate(cassandrademon。java:507) 在org.apache.cassandra.service.cassandrademon.main(cassandrademon。java:642)错误03:26:04启动过程中遇到异常org.apache.cassandra.exceptions.configurationexception:无效的yaml。请删除属性[凭证\有效性\在\毫秒内,启用\脚本\用户定义\函数,列\索引\缓存\大小\在\ kb内,背压\启用,启用\物化\视图,cdc \启用,准备\语句\缓存\大小\ mb,背压\策略,并发\物化\视图\写入,透明\数据\加密\选项,节俭\u准备\u语句\u缓存\u大小\u mb,慢速\u查询\u日志\u超时\u毫秒,提示\u刷新\u周期\u毫秒,max\u hints\u file\u size\u in\u mb]来自您的cassandra.yaml,位于org.apache.cassandra.config.yamlconfigurationloader$missingpropertieschecker.check(yamlconfigurationloader)。java:146)~[apache-cassandra-2.2.12。jar:2.2.12]在org.apache.cassandra.config.yamlconfigurationloader.loadconfig(yamlconfigurationloader。java:113)~[apache-cassandra-2.2.12。jar:2.2.12] 在org.apache.cassandra.config.yamlconfigurationloader.loadconfig(yamlconfigurationloader。java:85)~[apache-cassandra-2.2.12。jar:2.2.12]在org.apache.cassandra.config.databasedescriptor.loadconfig(databasedescriptor。java:149)~[apache-cassandra-2.2.12。jar:2.2.12]在org.apache.cassandra.config.databasedescriptor。java:133) ~[apache-cassandra-2.2.12。jar:2.2.12]在org.apache.cassandra.service.cassandrademon.activate(cassandrademon。java:507)[apache-cassandra-2.2.12。jar:2.2.12]在org.apache.cassandra.service.cassandrademon.main(cassandrademon。java:642)[apache-cassandra-2.2.12。jar:2.2.12]
1条答案
按热度按时间ax6ht2ek1#
看起来您正在使用cassandra 3.x中的cassandra.yaml文件,并在cassandra 2.2.12上进行了安装。因此,错误消息中列出的新选项:
03:26:04启动过程中遇到异常org.apache.cassandra.exceptions.configurationexception:无效yaml。请删除属性[凭证\有效性\在\毫秒内,启用\脚本\用户定义\函数,列\索引\缓存\大小\在\ kb内,背压\启用,启用\物化\视图,cdc \启用,准备\语句\缓存\大小\ mb,背压\策略,并发\物化\视图\写入,透明\数据\加密\选项,cassandra.yaml中的节俭\u准备的\u语句\u缓存\u大小\u mb,慢速\u查询\u日志\u超时\u毫秒,提示\u刷新\u周期\u毫秒,最大\u提示\u文件大小\u mb]
不存在于cassandra 2.2.12中。考虑编辑2.2.12中提供的cassandra.yaml,或者更好,考虑从今天起升级到最新的推荐版本3.11.3。