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 8131697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:09:41+00:00 2026-06-06T09:09:41+00:00

I need to set GCGraceSeconds to 0, because I have only one node, but

  • 0

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?

  • 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-06-06T09:09:42+00:00Added an answer on June 6, 2026 at 9:09 am

    In more recent versions of cassandra, you actually set gc_grace_seconds on a per column family basis as part of the schema. From what I can tell, Astyanax currently doesn’t support setting that property. There is no corresponding method in the ColumnFamilyDefinition class.

    https://github.com/Netflix/astyanax/blob/master/src/main/java/com/netflix/astyanax/ddl/ColumnFamilyDefinition.java

    You can use the cassandra-cli tool to set the property on any existing column families if you wish.

    Additionally, it doesn’t look like it would be too hard to add support to Astyanax. I’m sure they would accept a pull request.

    Update

    Astyanax (for a while) now supports this setting. See ColumnFamilyDefinition. This can be set in the astyanax column family creation like so:

    OperationResult<SchemaChangeResult> opres = keyspace.createColumnFamily(cf, ImmutableMap.<String, Object> builder()
        .put("comparator", "UTF8Type")
        .put("key_validation_class", "UTF8Type")
        .put("gc_grace_seconds", 60*60*24) // gc grace seconds of one day
        .build()
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Usually, we can set this value as a text, while what I need is
Ok I have ten variables but one needs to be set, but I need
I have another one for you guys. I've searched around but I can't figure
I need set field value, not passed to Django Form constructor. I have model
i need to set an integer to start from 001 instead of only 1
I have a SortedDictionary as defined like this: SortedDictionary<TPriority, Queue<TValue>> dict; But I want
I need set the date/time from Android programmatically, but I'm not having success! I
I need set Text with variable and I got error: Cannot invoke setText(String) on
I have an ASP.NET TreeView and need set ShowLine true when I define its
I need to set the Notes field to the Notes field value in other

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.