Summary
This article mainly describes how to build Cassandra environment in eclipse
More Cassandra,nosql related knowledge please visit http://www.webpersonaldeveloper.cn
Body
1.fork Cassandra Code
Then clone to local (Cassandra-trunk is head branch)
git clone https://github.com/FS1360472174/cassandra.git
cassandra-trunk
2.ant Build
There may be a character encoding problem here, manually remove
3. Eclipse Project Generation
Ant Generate-eclipse-files
4. Generate JAR Packages
Ant
Apache-cassandra-xxx.jar is generated in the build directory
5.remote Debug (Java application can go to remote debug by configuring JVM parameters)
Can create a new project, will Cassandra source code in the form of package import.
Remote server Settings
Parameters for configuring JVMs in remote Cassandra configuration cassandra-env.sh
jvm_opts= "$JVM _opts-xrunjdwp:transport=dt_socket,server=y,address=4004,suspend=n"
Suspend =y means that the server is suspended before the client establishes the connection, and =n is not suspended.
Eclipse Settings
Configure the remote Java application in the Debug configuration. Specify the host as Cassandra node Ip,port specify the above add
The address 4004 can
Extras
Call Cassandra to learn a little partner
Reference
http://mail-archives.apache.org/mod_mbox/incubator-cassandra-dev/200907.mbox/% 3c123dcca0907041009o1b9e31cfh16139bc67ca11bbf@mail.gmail.com%3e
Https://wiki.apache.org/cassandra/RunningCassandraInEclipse