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.

195 questions
2
votes
1 answer

How to execute a "'describe" CQL query with Astyanax

When you use cqlsh with Cassandra you can make a describe query to get the information of a table for example: DESCRIBE TABLE emp; And it will give you something like: CREATE TABLE emp ( empid int PRIMARY KEY, deptid int, description text )…
eLRuLL
  • 18,488
  • 9
  • 73
  • 99
2
votes
2 answers

Keyspace created with Astyanax is not visible by cqlsh

I'm using Cassandra 1.2.6 with Astyanax. I created a keyspace named DummyKeyspace with using Java. I can reach that keyspace from cassandra-cli but not from cqlsh. Why? Here is my Java code: public void createKeyspace(Cluster cluster,String…
shyos
  • 1,390
  • 1
  • 16
  • 29
2
votes
1 answer

Cassandra terminates with OutOfMemory (OOM) error

We have a 3-node cassandra cluster on AWS. These nodes are running cassandra 1.2.2 and have 8GB memory. We didn't change any of the default heap or GC settings. So each node is allocating 1.8GB of heap space. The rows are wide; each row stores…
2
votes
1 answer

Astyanax ClusterContext and/or KeyspaceContext?

currently I'm starting a ClusterContext that way: AstyanaxContext.Builder builder = new AstyanaxContext.Builder() .forCluster(clusterName) .forKeyspace(keyspaceName) …
tsteinmaurer
  • 409
  • 2
  • 4
2
votes
0 answers

Grails build path confusion

My question is how do I find and remove a wrong library reference from Grails app. What happened was: I have a working Grails app. I added Astyanax jar to "/lib" folder and added it to the Build Path. I copied the examples from the Astyanax git…
Daniil Shevelev
  • 11,739
  • 12
  • 50
  • 73
2
votes
1 answer

Copy a ColumnFamily in cassandra (the meta-data, not the actual rows)

I need to copy a ColumnFamily in the same keyspace -- I don't care for the data in this ColumnFamily, just the CF's meta-data (properties, settings, etc -- whatever you'd like to call it). I can't find anything online that describes this process…
Vladimir
  • 2,481
  • 4
  • 31
  • 41
2
votes
1 answer

Unexpected UnavailableException in a Cassandra cluster

I have a 3-node C* cluster. C* client has read consistency level set to QUORUM. When one node in cluster is down I am getting an UnavailableException in response to a read query Why? Quorum for cluster consisting of 3 nodes is 2, so it should…
whysoserious
  • 728
  • 1
  • 6
  • 20
2
votes
1 answer

Connection Pool Types in Astyanax Cassandra client

From the past few weeks we were trying to evaluate different different Cassandra clients so now it looks like we will go forward with Netflix/Astyanax client. We are trying to optimize Cassandra database mainly for read performance. Currently, I am…
arsenal
  • 23,366
  • 85
  • 225
  • 331
2
votes
1 answer

Type mismatch Astyanax KeySerializer in Scala

I am trying to do the following but for some reason my code won't compile due to a type mismatch from the KeySerializer. implicit val keyspace = ConnectionPool.bigdataKeyspace implicit val CF_PAST = ColumnFamily.newColumnFamily(CF,…
chiappone
  • 2,728
  • 3
  • 27
  • 32
2
votes
3 answers

Range scans on columns using Astyanax

My column family stores data in the column names and I want to perform range query on the columns using Astyanax. Can anyone suggest how to do that?
labyrinth
  • 1,104
  • 3
  • 11
  • 32
2
votes
2 answers

Astyanax: If a MutationBatch fails halfway, what guarantees do I have?

I know that as of 0.8, Cassandra guarantees that row updates are atomic. However, if I prepare (using MutationBatch) several row modifications or modifications across several column families, is it guaranteed that the rows will be updated in the…
Nan L
  • 361
  • 1
  • 3
  • 9
2
votes
2 answers

How to do Cassandra CQL queries with Astyanax?

I'm using Astyanax version 1.56.26 with Cassandra version 1.2.2 Ok, a little situational overview: I have created a very simple column family using cqlsh like so: CREATE TABLE users ( name text PRIMARY KEY, age int, weight int ); I populated…
klactose
  • 1,190
  • 2
  • 9
  • 26
2
votes
1 answer

Adding tor to the Thrift / Astyanax API

Im trying to add TOR on-top of thrift for Astyanax and im wondering if anyone has tried to or come accross any similar projects. Extensive googling (and even bing searching) has lead me nowhere. I stared looking through Astyanax's source code in an…
Jack S.
  • 21
  • 2
2
votes
2 answers

Use Astyanax to list all rows in Cassandra column family

I have some Cassandra related questions: I have to store some data (about 10M rows) (let's say a natural key - sortable, update timestamp, createDate (YYYYMMDD only) and a value field. I plan to create the following CF CREATE TABLE data ( id…
Mike Wang
  • 41
  • 4
2
votes
1 answer

NoAvailableHostsException cassandra insert

I'm facing an issue with writing data into cassandra. When using ConnectionPoolType.BAG we observed : NoAvailableHostsException("No hosts to borrow from") exception being thrown. Caused by:…
Pranay
  • 91
  • 2
  • 7