首页 > 其他分享 >使用idea进行cassandra debug

使用idea进行cassandra debug

时间:2022-10-30 11:47:14浏览次数:34  
标签:YamlConfigurationLoader java yaml idea apache debug org cassandra

进入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

相关文章

  • how to debug in java
    jdbnormalusages1.compileperiodjavac-g,addcomplieinformationmikeli@dell-pc:~/code/algo_java$javac-gDemToBin3.java  2.debugclassinonewindow......
  • debug
    在pycharm中Debug模式运行乱码在设置里面更改编码......
  • idea常用设置
    1使用滚轮调节字体大小2鼠标放在类上显示类信息。3......
  • Git 02: git管理码云代码仓库 + IDEA集成使用git
    Git项目搭建创建工作目录与常用指令工作目录(WorkSpace)一般就是你希望Git帮助你管理的文件夹,可以是你项目的目录,也可以是一个空目录,建议不要有中文。日常使用只要记住......
  • 从新开始学JAVA - IDEA
    什么是IDE全称是集成开发环境(IDE,IntegratedDevelopmentEnvironment)是用于提供程序开发环境的应用程序,一般包括代码编辑器、编译器、调试器和图形用户界面等工具。集成......
  • 解决IDEA 【alt + insert快捷键】不能使用的原因,亲测,可用!!!!
    解决IDEA【alt+insert快捷键】不能使用的原因,亲测,可用!!!!原因一:缺少插件:File——Settings——Plugins——Installed——》搜索groovy——》勾选紫色的框中两个插件,我检查了......
  • Idea快捷键
    psvm:快速创建main方法main:也可以快速创建main方法sout:快速生成输出语句"xxx".sout:快速生成输出语句和内容 变量.soutv:快速输出语句和变量=值的格式设置大小写不敏感:......
  • IDEA 编写的第一个程序-2022-10-29
    用IDEA编写第一个程序1、打开IDEA2、新建文件hello,选择java,选择安装JAVA版本号3、在生成的右边列表src右键newclass4、输入PSVM5、输入SOUT6、输入“Hellonew......
  • Debug Hacks中文版 深入调试的技术和工具 电子书 pdf
    作者:吉岡弘隆/大和一洋/大岩尚宏/安部東洋/吉田俊輔出版社:电子工业出版社副标题:深入调试的技术和工具原作名:DebugHacks译者:马晶慧 链接:DebugHacks......
  • idea中新建文件,文字改变,Java编码规范,CMD中的注意事项
    Java程序运行机制:1.编译制——C,C++解释制——网页-——Java先编译再解释新建文件src——右键第一个——第一个——name:HelloHello代码:publicclassHello{publ......