Cassandra Eclipse Environment Build

Source: Internet
Author: User
Tags cassandra git clone
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.