Questions tagged [hector]

Hector (deprecated) was a Java client project for Apache Cassandra, and has been marked at NO LONGER ACTIVE.

Hector (deprecated) was a high level Java client for Apache Cassandra, and has been marked as NO LONGER ACTIVE: https://github.com/hector-client/hector

Statement from the GitHub project:

THIS PROJECT IS NO LONGER ACTIVE

Please use the official java-driver at https://github.com/datastax/java-driver/ for all Java-based Apache Cassandra projects.

My most sincere thanks to the other project collaborators and the many people that contributed features, bugs and patches over the years.

@zznate

nate@thelastpickle.com

The Thrift port is now also disabled (by default) as of Cassandra 2.2, meaning Hector-based clients will not be able to connect without additional configuration to each node.

Again, no new Cassandra application development should be done using Hector.

363 questions
59
votes
3 answers

Cassandra server throws java.lang.AssertionError: DecoratedKey(...) != DecoratedKey

I'm currently experimenting around with Cassandra. On the client-side (with Hector) I look up a few keys like this: ColumnFamilyResult result = template.queryColumns(Arrays.asList("key1","key2","key3")); Most of the time it seems…
Gamlor
  • 12,185
  • 6
  • 40
  • 68
49
votes
5 answers

Cassandra Client Java API's

I have recently started working with Cassandra Database. Now I am in the process of evaluating which Cassandra client we should go forward with. I have seen various post on stackoverflow about which client to use for Cassandra but none has very…
arsenal
  • 20,650
  • 79
  • 217
  • 317
30
votes
4 answers

Why don't you start off with a "single & small" Cassandra server as you usually do it with MySQL?

For any website just starting out, the load initially is minimal & grows with a slow pace initially. People usually start with their MySQL based sites with a single server(***that too a VPS not a dedicated server) running as both app server as well…
Rajat Gupta
  • 23,343
  • 56
  • 165
  • 281
19
votes
3 answers

Hector vs Astyanax for Cassandra

We are starting a new java web-project with Cassandra as the database. The team is very well-experienced with RDBMS/JPA/Hibernate/Spring but very new to the world of NoSQL. We want to start the development with as simple setup as possible. Hector…
Amit
  • 616
  • 17
  • 27
19
votes
6 answers

JUnit Testing Cassandra with embedded server

What is the best approach to write unit tests for code that persists data to nosql data store, in our case cassandra? => We are using embedded server approach using a utility from git hub…
bobbypavan
  • 548
  • 1
  • 4
  • 13
17
votes
2 answers

Cassandra Hector: How to retrieve all rows of a column family?

I am looking for a code example to retrieve all rows and all columns of a column family. Something like: SELECT * FROM MyTable I see that this can be done using a RangeSlicesQuery, but you still have to provide a certain range. And I think you have…
John Volkya
  • 963
  • 3
  • 13
  • 32
17
votes
4 answers

Programmatically flush data to cassandra every time before cassandra shut down

I am using embedded Cassandra. When I shut down and restart my Cassandra service data is lost. I think decent data are not properly flushed into the disk. So I tried using nodetool to flush data manually and check if data are available. But nodetool…
Vijay
  • 415
  • 5
  • 18
13
votes
1 answer

Querying CompositeType columns in Cassandra using Hector

Here's a sample of the scenario I'm facing. Say I have this column family: create column family CompositeTypeCF with comparator = 'CompositeType(IntegerType,UTF8Type)' and key_validation_class = 'UTF8Type' and…
BFree
  • 97,931
  • 20
  • 150
  • 197
13
votes
3 answers

Health check for Cassandra connection (using hector)?

For operations monitoring of my application, I am looking for something similar to the commonly used "SQL connection validation" query SELECT 1; in Cassandra, using the Hector driver. I have tried things like looking at Cluster.getKnownPoolHosts()…
HansMari
  • 327
  • 1
  • 2
  • 16
12
votes
1 answer

insert row on keyspace in Apache Cassandra + Hector + Java

I'm studying the Apache Cassandra version 0.7.6 with Java and Hector, and I tried to create a cluster, a keyspace and insert a column in this keyspace created. By looking examples I understood that keyspace is equivalent to the database in SQL…
Raduan Santos
  • 993
  • 1
  • 19
  • 43
10
votes
1 answer

Cassandra and Secondary-Indexes, how do they work internally?

How does a Cassandra Secondary-Index work internally? The docs state it is some kind of Hash Index: Given i have the colum username="foobar" (Column username will be scondary index) in a CF User with RandomOrderingPartitioner Is my asumption…
Markus
  • 3,352
  • 3
  • 34
  • 38
9
votes
1 answer

How to use cql queries to get different datatypes out of cassandra with java client hector

I'm new to cassandra and hector so i'm trying to execute cql queries but the problem is that not all columns are of type string so how dow I execute the query "select * from users"? My column family looks like this: UPDATE COLUMN FAMILY users WITH…
Rubenski
  • 237
  • 4
  • 9
9
votes
1 answer

How do you check for the existence of a column family in hector?

I have code that uses Hector to access Cassandra and needs to create column families on the fly if and only if they don't already exist. What is the proper way to check for the existence of a column family in a keyspace?
user430788
  • 1,855
  • 2
  • 15
  • 17
9
votes
1 answer

Is TTL for Cassandra counter column family supported?

Does Cassandra support TTL for the Counter column family? Specifically we use Hector as a client to Cassandra and I didn't find any API receiving TTL as a parameter. At least HFactory.createCounterColumn doesn't have TTL argument.
VladiF
  • 177
  • 2
  • 5
8
votes
2 answers

Basics of Hector & Cassandra

I'm working with Cassandra-0.8.2. I am working with the most recent version of Hector & My java version is 1.6.0_26 I'm very new to Cassandra & Hector. What I'm trying to do: 1. connect to an up & running instance of cassandra on a different server.…
Henry
  • 916
  • 2
  • 11
  • 24
1
2 3
24 25