cassandra eclipse 环境构建

本文详细介绍如何在Eclipse环境中搭建Cassandra数据库。步骤包括fork并clone Cassandra代码库、构建项目、生成Eclipse工程文件及jar包等。此外还介绍了如何进行远程调试,并提供了相关资源链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

摘要

本文主要介绍如何在eclipse中搭建cassandra环境

更多cassandra,nosql 相关知识请访问http://www.webpersonaldeveloper.cn

正文

1.fork cassandra 代码
然后clone 到本地(cassandra-trunk 是head 分支)

git clone https://github.com/FS1360472174/cassandra.git
cassandra-trunk

2.ant build

这边有可能会出现字符编码问题,手动清除一下

3.生成eclipse工程

ant generate-eclipse-files

4.生成jar包

ant

build 目录下会生成apache-cassandra-xxx.jar

5.remote debug(java application 都可以通过配置jvm参数来进入远程debug)

可以新建一个工程,将cassandra 的源码以包的形式导入。

远程server设置

远程cassandra 配置cassandra-env.sh 中配置JVM的参数

JVM_OPTS="$JVM_OPTS -Xrunjdwp:transport=dt_socket,server=y,address=4004,suspend=n"

suspend =y 表示在客户端建立连接前,服务端被挂起;=n 则不会被挂起。

eclipse 设置

在debug configuration中配置Remote Java Application.将host指定为cassandra node ip,port 指定上述添加
的address 4004 即可

这里写图片描述

号外

召集cassandra学习小伙伴
这里写图片描述

参考

http://mail-archives.apache.org/mod_mbox/incubator-cassandra-dev/200907.mbox/%3C123dcca0907041009o1b9e31cfh16139bc67ca11bbf@mail.gmail.com%3E

https://wiki.apache.org/cassandra/RunningCassandraInEclipse

转载于:https://www.cnblogs.com/stoneFang/p/6715300.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值