Run/Debug Cassandra in IntelliJ IDEA

Clone Code

Clone Cassandra Code 切换到 3.11 branch

git clone https://github.com/apache/cassandra.git
git fetch origin cassandra-3.11
git checkout cassandra-3.11

生成 .idea 文件

Cassandra 使用 ant 管理 project. build.xml 内定义了生成 idea 和 eclipse 的命令.

ant generate-idea-files

idea 的原始文件在 ./ide/idea 中.
如果要使用eclipse

ant generate-eclipse-files

open source folder by IntelliJ IDEA

File-->Open select cassandra folder

cj@ubuntu:~/pp/cassandra/cassandra$ tree -L 1 -a
.
├── bin
├── build
├── build.properties.default
├── build.xml
├── cassandra.iml
├── CHANGES.txt
├── circle.yml
├── conf
├── CONTRIBUTING.md
├── debian
├── doc
├── eclipse_compiler.properties
├── examples
├── .git
├── .gitignore
├── ide
├── .idea
├── interface
├── lib
├── LICENSE.txt
├── NEWS.txt
├── NOTICE.txt
├── pylib
├── .rat-excludes
├── README.asc
├── redhat
├── src
├── test
└── tools

Run Cassandra

入口在 org.apache.cassandra.service.CassandraDaemon
idea 下右键 CassandraDaemon.java --> Run Cassandra | Debug Cassandra
默认使用 configuration ./conf/cassandra.yaml

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,497评论 19 139
  • Spring Boot 参考指南 介绍 转载自:https://www.gitbook.com/book/qbgb...
    毛宇鹏阅读 47,081评论 6 342
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,700评论 2 45
  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 175,692评论 25 709
  • 20170706周四起,12日完 1《世说新语精读》4分之一 + 世说新语的思想与艺术价值;第二章:英雄与名士2页...
    小修1981阅读 5,108评论 0 0