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

Astyanax ConnectionPool setMaxConnsPerHost

I am confused with the way of configuring Astyanax connection pool. I use the following to configure my pool. public final int CONNECTION_POOL_SIZE_PER_HOST = 1; private String conecPoolName = "xxxx"; private String ipSeeds = "xxxxx"; private…
mvallebr
  • 2,388
  • 21
  • 36
2
votes
1 answer

DefaultEntityManager is not allowing me to have ColumnFamily with

We have started using Cassandra with Astyanax for our persistence layer and have hit the brick wall. DefaultEntityManager is not allowing me to have ColumnFamily with The error message thrown by Astyanax: "The method withColumnFamily(ColumnFamily)…
Choesang
  • 1,225
  • 1
  • 14
  • 23
2
votes
1 answer

Connection reset with playOrm when running larges amounts of data

I have a hadoop process that connects to a cassandra keyspace in the reduce part. Data is saved by playORM. What happens is: I am running this hadoop process and cassandra in the same machine, so playORM just connects to cassandra on localhost. When…
mvallebr
  • 2,388
  • 21
  • 36
2
votes
1 answer

does Astyanax support cql 3 prepared statements?

I know that cassandra does but what about Astyanax? And does it escape single quotes in values? Thx
2
votes
1 answer

Astyanax / Cassandra InstantiationException when reading column / columnlist (Scala)

Stuck for hours on this one! Thanks so much for any insight :) Scala 2.9.2 Astyanax 1.0.6 (also tried 1.0.5) Cassandra 1.1.4 Using CompositeRowKey, CompositeColumnName No problem inserting into Cassandra Can read a row, ColumnList.size() returns…
user1661898
  • 167
  • 1
  • 8
2
votes
1 answer

Can't create table with composite key using Astyanax client

How do I create table with composite keys using astyanax client. For now I've created it with cqlsh -3, and this is how it looks like in cli: [default@KS] describe my_cf; ColumnFamily: my_cf Key Validation Class:…
2
votes
2 answers

Cassandra Astyanax documentation

I am trying to use Astyanax for Cassandra with Java. I tried the example at https://github.com/Netflix/astyanax/wiki/Getting-Started. I have the code which I have just copied from this link: package def; import…
shalki
  • 890
  • 3
  • 14
  • 31
2
votes
1 answer

any way to do an asynchronous put with astyanax for cassandra or hector?

I would like to stream some files in and out of cassandra since we already use it rather than setting up a full hadoop distributed filesystem. Is there any asynchronous puts in atyanax or hector that I provide a callback for when it is complete so…
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
1
vote
1 answer

Java api does not read from cassandra

we are reading from cassandra ver 1 and inserting into ver 3 While reading from cassandra ver 1 I am not able to retrieve rows and in logs I see same logs in loop For reading we are using netflix astyanax…
Zen
  • 31
  • 3
1
vote
1 answer

Apache TransportException when running cassandra and netflix.astyanax library without any specific error message

I am trying to execute a query on Cassandra. port used is 9160. Thrift server is running. by using the following command. ./nodetool enablethrift using Cassandra 3.0.9 Caused by: ! com.netflix.astyanax.connectionpool.exceptions.TransportException:…
amris
  • 21
  • 4
1
vote
1 answer

Cassandra TokenRangeOfflineException in a 5n cluster

I'm new to Cassandra and facing the following TokenRangeOffline Exceptions, I've a 5n cluster with replication factor set to 5 and consistency level as Quorum. I did a describe keyspace on my cluster : CREATE KEYSPACE "StorageOS" WITH replication =…
pep8
  • 371
  • 3
  • 18
1
vote
0 answers

DSE Cassandra - Why is Astyanax faster than DataStax java driver

I'm switching a Java application from using com.netflix.astyanax:astyanax-core:1.56.44 to com.datastax.cassandra:cassandra-driver-core:3.1.0. Right off the bat, with a simple test that inserts a row with a randomly-generated key and then reads the…
Brent212
  • 1,835
  • 4
  • 19
  • 23
1
vote
0 answers

Token aware load balancing with Astyanax on Cassandra

Some background: we are using Cassandra 2.0.9 with Astyanax 2.0.2, replication factor is set to 4, there are 256 vnodes per node. When running with round robin connection pool, everything looks good and Cassandra nodes are evenly loaded. When we…
1
vote
0 answers

Fetch Dynamic Composite Columns w/o Values - Astyanax

To query for DynamicComposite columns, the query goes like this, ColumnFamily columnFamilyEntity = ColumnFamily.newColumnFamily(columnFamily, StringSerializer.get(),…
Senthil Kumar
  • 9,695
  • 8
  • 36
  • 45
1
vote
1 answer

How to measure effectiveness of using Token Aware connection pool?

My team is testing the token aware connection pool of Astyanax. How can we measure effectiveness of the connection pool type, i.e. how can we know how the tokens are distributed in a ring and how client connections are distributed across them? Our…
Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420