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
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,652
  • 17
  • 30
4
votes
2 answers

Astyanax not respecting configured socket timeout

This is my setup: 4 nodes Cassandra 1.2.19 Astyanax 1.56.49 I am setting configuration like AstyanaxContext context = new AstyanaxContext.Builder() .forCluster(service.getClusterName()) .forKeyspace(service.getKeySpaceName()) …
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71
4
votes
1 answer

org.apache.thrift.transport.TTransportException: Cannot read. Remote side has closed

I'm new to use astyanax connecting to cassandra(1.2.8). I downloaded astyanax from [https://github.com/Netflix/astyanax] and cassandra from [http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.2.8/apache-cassandra-1.2.8-bin.tar.gz]. Everything is…
user2612604
  • 85
  • 1
  • 2
  • 6
4
votes
1 answer

Checking if an Astyanax Keyspace is null or doesn't exist

Is there a way to check if an Astyanax Keyspace exists in the current context? Right now my code does the following: keyspace = context.getClient(); try{ keyspace.describeKeyspace(); }catch (BadRequestException e){ …
Danny Sullivan
  • 3,626
  • 3
  • 30
  • 39
4
votes
2 answers

astyanax cassandra: The type org.apache.cassandra.thrift.Cassandra$Client cannot be resolved. It is indirectly referenced from required .class files

My internship needs me get familiar with cassandra. I downloaded astyanax cassandra from: https://github.com/Netflix/astyanax After building astyanax from source via the commands: git clone git@github.com:Netflix/astyanax.git cd astyanax ./gradlew…
user2612604
  • 85
  • 1
  • 2
  • 6
4
votes
1 answer

Astyanax requests fail in 4-node cluster when single seed node is down

I have a 4 node Cassandra cluster. A single node is acting as a seed node for the Astyanax connection pool, provided via the setSeeds(...) method when building an AstyanaxContext. I have also plugged in my own connection pool monitoring…
tsteinmaurer
  • 409
  • 2
  • 4
4
votes
2 answers

Why won't astyanax (java) recognize my @Id annotated values in my scala case class parameter list?

So here's my dilemma: I have a domain model with a bunch of case classes in scala such as User and Organization. Within my data access layer (dao, repository, etc) I am using astyanax(a java library from netflix) and it's entity persister to save…
Adrian Rodriguez
  • 3,232
  • 2
  • 24
  • 34
4
votes
1 answer

Cassandra updates not working consistently

I run the following code on my local (mac) machine and on a remote unix server.: public void deleteValue(final String id, final String value) { log.info("Removing value " + value); final Collection valuesBeforeRemoval =…
Lolo
  • 3,935
  • 5
  • 40
  • 50
4
votes
2 answers

Cassandra querying on a part of a key

I have a cassandra column family which has a row key like 2012-09-30-05-42-00:30:5856869 I need to query some thing like select * from cf where key like %5856869% Currently I am using Astyanax , is same possible in astyanax. If not, which…
Rups N
  • 417
  • 1
  • 5
  • 15
4
votes
2 answers

How can I set GCGraceSeconds in Cassandra using astyanax?

I need to set GCGraceSeconds to 0, because I have only one node, but I cannot find where I can set value to this. Is it possible to set from astyanax or is it in some settings file?
newbie
  • 24,286
  • 80
  • 201
  • 301
4
votes
1 answer

Secure communication between Astyanax and Cassandra

Has anyone come up with a way to secure communication between Cassandra and Astyanax client? SSL is preferred to be able to do client cert auth + encryption...
Farafonov
  • 43
  • 4
3
votes
1 answer

Storing binary blobs in Cassandra

I am building a simple HTTP service, that stores arbitrary binary objects. The service is backed by Cassandra. It is a simplified version of Amazon's S3. The system must withstand a heavy write load and should be highly available on the write and…
Zauberfinger
  • 33
  • 1
  • 3
3
votes
1 answer

which version of Astyanax is compatible with Cassandra 2.0.1, Or which other Java drivers are compatible with Cassandra 2.0.1

I have installed Cassandra 2.0.1 and want to use Astyanax Java API's from my application. I have seen the Cassandra compatibility table on the wiki which says Astyanax uses a versioning scheme that is internal to Netflix and does not match the…
user2681607
  • 392
  • 1
  • 4
  • 10
3
votes
1 answer

How to insert in Cassandra into Composite Columns using Astyanax client?

I am trying to insert into Composite Columns in Cassandra using Astyanax client. Below is the column family I have created in which all the columns are Composite Columns. I am not sure how should I insert into below Column Family with each columns…
arsenal
  • 23,366
  • 85
  • 225
  • 331
3
votes
2 answers

Confusing between Thrift API and CQL

I am working in a Java web application, using NoSQL (target is Cassandra). I use Astyanax as Cassandra client since it is suggested the best client of Cassandra for now. I've just approached Cassandra for 2 weeks, so many things is so weird to…
Đinh Hồng Châu
  • 5,300
  • 15
  • 53
  • 90
1
2
3
12 13