进入cassanra目录,进行ant编译
ant generate-idea-files
然后用idea打开,进入cassandra/bin 输入
./cassandra -f -R
启动数据库后进入test/microbenchs对readwriteTest进行debug,报错:
INFO [main] 2022-10-29 19:33:31,515 YamlConfigurationLoader.java:91 - Configuration location: file:/home/cjx/Downloads/depart0/depart/conf/cassandra.yaml DEBUG [main] 2022-10-29 19:33:31,518 YamlConfigurationLoader.java:110 - Loading settings from file:/home/cjx/Downloads/depart0/depart/conf/cassandra.yaml Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml: file:/home/cjx/Downloads/depart0/depart/conf/cassandra.yaml Error: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=java.lang.reflect.InvocationTargetException; in 'reader', line 10, column 1: cluster_name: 'Test Cluster' ^ at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:133) at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:103) at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:268) at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:147) at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:132) at org.apache.cassandra.cql3.CQLTester.<clinit>(CQLTester.java:111)
打开/conf/cassandra.yaml进行编辑
标签:YamlConfigurationLoader,java,yaml,idea,apache,debug,org,cassandra From: https://www.cnblogs.com/yunqihao/p/16840825.html