Giter VIP home page Giter VIP logo

Comments (6)

brianhks avatar brianhks commented on May 12, 2024

I created a 3 node cluster (3 physical machines) and the keyspace was created but with a replication factor of 3. I tried to alter the keyspace and change it to 1 but it gives me a syntax error.

from yugabyte-db.

brianhks avatar brianhks commented on May 12, 2024

This is the error:

E1231 02:42:33.709224 4218 process_context.cc:180] SQL Error: Invalid SQL Statement. syntax error, unexpected KEYSPACE, expecting LANGUAGE
alter KEYSPACE kariosdb WITH REPLICATION = {'class': 'SimpleStrategy','replication_factor' : 1} ;

from yugabyte-db.

bmatican avatar bmatican commented on May 12, 2024

Hey @brianhks ! Thanks for reporting this. Unfortunately, this is a long-standing TODO in our backend, to be able to support overridable RF from universe -> keyspace -> table. As such, because the backend does not support this, we have disabled this in the language layer, for now, as well. Perhaps we could augment the error messaging though, to better support this fact, instead of telling the client the syntax is wrong...

Since you do mention that you're running this on 3 physical machines though, might I ask what you're trying to do? Perhaps we can work around this limitation somehow, for now.
Also, are you already running 3 masters + 3 tservers on these 3 machines, in RF3 mode? From your error message, it sounds as if you only have 1 tserver running?
Do you intend to mix together tables of RF1 and RF3 on the cluster?

from yugabyte-db.

brianhks avatar brianhks commented on May 12, 2024

So for 99% of my testing I like to run just a single server. Simpler for running system tests.

The 3 node cluster is for performance comparison against C*. I run it in different configurations RF 1 and RF 3 and I look at network as well as cpu load during tests.

from yugabyte-db.

schoudhury avatar schoudhury commented on May 12, 2024

Hi Brian,
As Bogdan noted, you can either create a RF3 universe or a RF1 universe but you cannot change the RF after the universe is created. We will add this feature soon but for your testing purposes hoping you can destroy the RF3 universe and create a new RF1 universe when needed.

For creating a RF1 universe on 3 nodes simply pick one node to run the yb-master and start yb-master with the --replication_factor config flag set to 1. This is documented here: https://docs.yugabyte.com/admin/yb-master/#config-flags

Note that yb-tserver should be run on all the 3 nodes since you are running a 3 node cluster.

from yugabyte-db.

kmuthukk avatar kmuthukk commented on May 12, 2024

hi @brianhks : closing this issue for now given the notes from @schoudhury above. But feel free to re-open if that doesn't resolve the issue.

from yugabyte-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.