Questions tagged [astyanax]

Astyanax (deprecated) was a Java Cassandra client. It borrows many concepts from Hector but diverges in the connection pool implementation as well as the client API.

Astyanax has been deprecated, and its last merged PR was in October of 2018.

Astyanax is a client library for the Apache Cassandra NoSQL database. Documentation on using Astyanax can be found at their github wiki page.

Astyanax was the son of Hector in Greek mythology. As such, Astyanax is a refactoring of the Hector client library into a cleaner abstraction for the connection manager and a simpler API.

194 questions
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
23
votes
1 answer

play framework 2 performance issues on virtual machine

I have recently implemented a very tiny Cassandra web application on both PHP and play frameworks to compare these technologies. I'm running these tests on a virtual machine that has ubuntu-server in it. In both PHP and play framework applications,…
aacanakin
  • 2,684
  • 4
  • 20
  • 39
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
16
votes
5 answers

New Cassandra project - Astyanax or Java Driver?

I'm starting a new project with Cassandra (and plan to use the latest stable (1.2.x) version). I have tried several different Java libraries, like Hector, Astyanax, Cassandra-jdbc... Among them, (in short) my choice is Astyanax. But then I also…
su-
  • 3,047
  • 3
  • 27
  • 40
9
votes
2 answers

Astyanax: simple write throwing this exception: Not enough bytes to read value of component

I am new to astyanax and trying some sample programs and getting this error. This is a simple write and looks like am doing some thing basic wrong. Not using composite keys. Caused by: InvalidRequestException(why:Not enough bytes to read value of…
srrepaka
  • 101
  • 1
  • 5
7
votes
2 answers

Cassandra CQL3 support in Astyanax

Does Astyanax support "insert into" via prepared statement with CQL3? I use the latest Astyanax library 1.56.24 and Cassandra 1.2.1. When I try to execute a prepared statement with CQL3: keyspace.prepareQuery(conn.CF_CONTACTS) .withCql("INSERT…
tilex
  • 1,644
  • 1
  • 17
  • 32
7
votes
5 answers

PoolTimeoutException when connecting to Cassandra via Astyanax

I am trying to connect to local cassandra using astyanax, but constantly getting PoolTimeoutException. I am able to connect to cassandra using cli or hector client. Any idea what am I doing wrong? Thanks. My code: val context = new…
crypto5
  • 821
  • 2
  • 10
  • 16
6
votes
1 answer

Astyanax composite column put using AnnotatedCompositeSerializer becomes un-gettable after a few hours via multiple clients

I'm having a bizarre issue. My java application puts columns into cassandra via astyanax. This seems to work temporarily, but after several hours the column seemingly disappears if I get by [row][composite column]. If I fetch the whole row, or…
Dave Huber
  • 61
  • 2
6
votes
1 answer

Astyanax Cassandra Double type precision

I'm trying to get a Double value from a Cassandra table with a double type column. I've created the table in CQL3 syntax: CREATE TABLE data_double ( datetime timestamp, value double, primary key (datetime) ); I've inserted a…
Guy Wald
  • 589
  • 9
  • 25
6
votes
2 answers

Astyanax's EntityPersister & Collection Updates

Background Astyanax's Entity Persister saves a Map of an Entity in multiple columns. The format is mapVariable.key The Problem: The astyanax's Entity Persister doesn't remove deleted key/value pairs from cassandra when a Map in an Entity has been…
Vladimir
  • 2,236
  • 3
  • 24
  • 39
5
votes
0 answers

Astyanax. How to read SET and MAP Datatypes in cassandra

I am trying to read a column of type Set from cassandra using the following astyanax code. val genres = col.getColumnByName("genres") val genValue = genres.getValue(new SetSerializer[String](UTF8Type.instance)) I found similar code in Astyanax…
Knows Not Much
  • 26,151
  • 46
  • 158
  • 314
5
votes
1 answer

Token Aware Astyanax Connection pool connecting on nodes without distributing connections over nodes

I was using astyanax connection pool defined as this: ipSeeds = "LOAD_BALANCER_HOST:9160"; conPool.setSeeds(ipSeeds) .setDiscoveryType(NodeDiscoveryType.TOKEN_AWARE) .setConnectionPoolType(ConnectionPoolType.TOKEN_AWARE); However, my cluster have 4…
mvallebr
  • 1,961
  • 17
  • 34
5
votes
2 answers

What's the meaning of NodeDiscoveryType as TOKEN_AWARE in Astyanax client?

I found TOKEN_AWARE enum value in Astyanax client for Cassandra in com.netflix.astyanax.connectionpool.NodeDiscoveryType and am trying to understand what it does? package com.netflix.astyanax.connectionpool; public enum NodeDiscoveryType { /** …
arsenal
  • 20,650
  • 79
  • 217
  • 317
5
votes
1 answer

Astyanax client maximum connections per node?

I am reading the data from Cassandra database using the Astyanax client. I have around one million unique rows in a Cassandra database. I have a single cross colocation centre cluster with four nodes. These are my four nodes: node1:9160 …
user1813228
5
votes
2 answers

How can I query a Cassandra cluster for its metadata?

We have a process creatively named "bootstrap" that sets up our Cassandra clusters for a given rev of software in an environment (Dev1, Dev2, QA, ..., PROD). This bootstrap Creates/Updates keyspaces and column families as well as populating initial…
Frobbit
  • 1,450
  • 13
  • 23
1
2 3
12 13