`
sunmoonone
  • 浏览: 6319 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

Run cassandra in eclipse

阅读更多

system: ubuntu linux

eclipse: 3.5


You can followed steps described here RunningCassandraInEclipse.

If there are new errors introduced, you can reference steps as follows (my short summary):


1. Check out:

svn checkout http://svn.apache.org/repos/asf/cassandra/trunk cassandra-trunk


2. Create and empty java project (cassandra-trunk for example)

copy all the files in the project cassandra-trunk to the working copy you just checked out.


3. Delete this project.


4. In Eclipse menu: File - import  - general - existing project to workspace, browse to the working copy 

and import project cassandra-trunk


5. Menu: Project - properties - java build path

        In tab source : remove /src and add src/java 


6. Menu: Project - properties - java build path

        In tab libraries: add all jars in lib


7. Right click on the build.xml (in your project root) select "run As" - "ant build"


8. Refresh the project tree then add interface/thrift/gen-java to src path do the same with interface/avro/gen-java, src/gen-java (refresh the src folder in your project root if needed)


9. Build again (if there are restricted access errors in your java file then configure the java compile preference for this project. Project - properties - Errors/Warnings - Deprecated and restricted API: select warning for the Forbidden reference)


10. configure the run arguments:

Click "Run" -> "Run Configurations..." Select org.apache.cassandra.thrift.CassandraDaemon as your Main class, make sure that your cassandra project is selected in the "Project" field. Under the Arguments tab you can specify VM arguments. Below is my complete Vm arguments list:



-Dstorage-config=/home/sunmoonone/Dev/projects/nosql/cassandra-trunk/conf

-Dcassandra-foreground 

-ea -Xmx1G

Make sure to change the storage-config property so it defines the path to your storage-conf.xml file.


That should be it. After running the newly created run configuration you should see something like this in the console view.



DEBUG 22:01:25,524 Estimating compactions for HintsColumnFamily

DEBUG 22:01:25,524 Estimating compactions for Migrations

DEBUG 22:01:25,525 Estimating compactions for Schema

DEBUG 22:01:25,526 Checking to see if compaction of LocationInfo would be useful

DEBUG 22:01:25,526 Checking to see if compaction of HintsColumnFamily would be useful

DEBUG 22:01:25,527 Checking to see if compaction of Migrations would be useful

DEBUG 22:01:25,527 Checking to see if compaction of Schema would be useful

 INFO 22:01:25,537 Saved Token found: 1816769162446994796948805497871322369

 INFO 22:01:25,537 Saved ClusterName found: Test Cluster

 INFO 22:01:25,568 Starting up server gossip

DEBUG 22:01:25,597 attempting to connect to /127.0.0.1

 INFO 22:01:25,691 Binding thrift service to localhost/127.0.0.1:9160

Try running the cassandra-cli as per CassandraCli, and you should be able to connect to localhost/9160.

0
0
分享到:
评论

相关推荐

    cassandra 2.0.8 source code for eclipse (Win32) part1

    cassandra 2.0.8 source code for eclipse (Win32) part1 JDK 1.7.0_60 (location Default) Cassandra 2.0.8

    Cassandra in Action with Twitter’s Ruby Client.pdf

    ### Cassandra在行动:结合Twitter的Ruby客户端 #### 环境搭建 本教程旨在帮助读者正确设置环境,理解如何在Cassandra的方式下建模数据,以及掌握并使用Twitter的Cassandra Ruby客户端。以下是对环境搭建步骤的...

    MariaDB Cassandra interoperability Cassandra Storage Engine in MariaDB

    标题与描述均提到了“MariaDB与Cassandra的互操作性”,这主要指的是MariaDB中的Cassandra存储引擎(Cassandra Storage Engine)。这是一个重要的知识点,它实现了MariaDB与Cassandra数据库之间的桥梁,允许用户在...

    cassandra 2.0.8 source code for eclipse (Linux 32bit)

    cassandra 2.0.8 source code for eclipse (Linux 32bit) /usr/java /usr/apache-cassandra-2.0.8

    cassandra入门项目源代码

    【标题】:“Cassandra入门项目源代码”是一个针对初学者的教程项目,旨在帮助开发者了解如何在Eclipse环境中使用Spring Data框架与EasyRest风格来操作Cassandra数据库和Lucene搜索引擎。这个项目提供了一整套实践性...

    ycsb cassandra 压力测试工具

    - 连接 Cassandra:在 YCSB 的根目录下,使用 `./bin/ycsb load cassandra-cql` 或 `./bin/ycsb run cassandra-cql` 命令加载数据或执行压力测试。记得指定工作负载文件和必要的参数。 3. **结果分析** - 输出...

    Cassandra

    With this hands-on guide, you'll get all the details and practical examples you need to understand Cassandra's non-relational database design and put it to work in a production environment., Author ...

    cassandra 2.0.8 source code for eclipse (Win32) part2

    cassandra 2.0.8 source code for eclipse (Win32) part2 JDK 1.7.0_60 (location Default) Cassandra 2.0.8

    spring boot与cassandra集成,使用JPA方式。

    在本文中,我们将深入探讨如何将Spring Boot框架与Cassandra数据库集成,并利用Java Persistence API (JPA) 进行数据操作。Spring Boot以其简洁的配置和开箱即用的特性,已经成为Java开发中的首选框架之一。而...

    Learning_Apache_Cassandra

    在本文档中,标题“Learning_Apache_Cassandra”透露了内容的主题,即学习Apache Cassandra。Cassandra是一个开源的NoSQL分布式数据库管理系统,它以高可用性和分布式架构著称。该书详细介绍了Cassandra的基本概念、...

    cassandra-3.11.3下载

    Cassandra是一款分布式、高度可扩展的NoSQL数据库系统,由Facebook于2008年开源,并在随后被Apache软件基金会接纳为顶级项目。Cassandra的设计灵感来源于Google的Bigtable,旨在处理大规模的数据存储需求,特别适合...

    DevCenter cassandra客户端

    DevCenter 是一个强大的工具,专为数据科学家、开发人员和管理员设计,用于与Apache Cassandra数据库进行交互。这个工具提供了一个直观的用户界面,使得管理、查询和开发Cassandra数据库变得简单易行。Cassandra是一...

    cassandra-operator,apache-cassandra的kubernetes算子.zip

    Cassandra-Operator是针对Apache Cassandra在Kubernetes集群中部署和管理的一个开源项目。它使得在Kubernetes环境中运行和扩展Cassandra数据库变得更加简单和自动化。在这个压缩包“cassandra-operator,apache-...

    Cassandra使用手册

    在编码实现阶段,需要根据业务需求配置keyspace设置,建立开发环境,如eclipse项目,并实现数据的插入和查询操作。在操作columnfamily和supercolumnfamily时,会用到batch_mutate等操作。 Cassandra使用手册详细...

    cassandra3.9配置参数说明

    相关的配置项包括hinted_handoff_disabled_datacenters(指定哪些数据中心不执行暗示性手稿)、max_hint_window_in_ms(定义死节点产生提示的最大时间)、hinted_handoff_throttle_in_kb(每个传递线程的最大速度)...

    cassandra-trunk

    【描述】中的“eclipse”可能意味着这个版本的Cassandra源代码是为Eclipse IDE优化的,便于开发者在Eclipse环境中进行编译和调试。多次提及“cassandra-trunk”暗示这是关于Cassandra核心开发版本的连续性信息,可能...

    Learning Apache Cassandra - Second Edition

    The book starts by explaining the new features implemented in Cassandra 3.x and get you set up with Cassandra. Then you'll walk through data modeling in Cassandra and the rich feature set available to...

Global site tag (gtag.js) - Google Analytics