Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6950399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:05:15+00:00 2026-05-27T14:05:15+00:00

I am using Cassandra 1.0.5 + newest Fluent Cassandra for my C# application. I

  • 0

I am using Cassandra 1.0.5 + newest Fluent Cassandra for my C# application.

I followed the example (with a bit my own modification) in Fluent Cassandra site, but I got an exception called “Apache.Cassandra.UnavailableException”.

I am a Cassandra newbie, just want to have a quick simple run on it to get a feeling. So could Any please tell me why?

My simple code is like this:

public class CassandraAPI
{
   private CassandraContext cassandraDB;
   private CassandraColumnFamily<BytesType> family;
   public CassandraAPI()
   {
      cassandraDB = new CassandraContext(keyspace: "MyKeyspace", host: "192.168.178.32");
      family = cassandraDB.GetColumnFamily<BytesType>("ColumnFamilyName");
   }

   public void update(byte[] key1, byte[] value)
   {
      dynamic post = family.CreateRecord(key: key1);
      post.value = value;
      // attach the post to the database
      Console.WriteLine("attaching record");
      cassandraDB.Attach(post);

      // save the changes
      Console.WriteLine("saving changes");
      cassandraDB.SaveChanges();
   }

   public void read(byte[] key)
   {
     dynamic getPost = family.Get(key).FirstOrDefault();
     Console.WriteLine("getPost");
     byte[] value = getPost.value;
     Console.WriteLine(value.Length);
   }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:05:15+00:00Added an answer on May 27, 2026 at 2:05 pm

    UnavailableException means that you were requesting a ConsistencyLevel that could not be satisfied. For details see:

    http://wiki.apache.org/cassandra/API#Exceptions

    How big is the cluster to which you are making requests? This would be an unusual error on a local single instance cluster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am aware of Twissandra which is an example twitter clone using Cassandra but
i am using cassandra-jdbc to perform the operation on data in cassandra but when
I'm getting NullPointerException :s when using sstable2json in Cassandra 0.6.0-beta3: $ bin/sstable2json .../cassandra/data/system/LocationInfo-1-Data.db Exception
Im trying to insert a keyspace into cassandra using hector and the SchemaManipulation example
I am using Cassandra to store my parsed site logs. I have two column
I would like to start using Cassandra with a node.js deployment, but I can't
I am building a social web application using Java and Cassandra DB. I want
Using two databases to illustrate this example: CouchDB and Cassandra . CouchDB CouchDB uses
I have a problem of using Cassandra, I can start it with bin/cassandra, but
I'm using Cassandra 1.1.2 I'm trying to convert a RDBMS application to Cassandra. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.