Comments (6)
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.
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.
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.
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.
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.
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)
- [YSQL] Transactional COPY FROM consumes excessive amount of memory HOT 1
- Hidden Tablets Showing as Leaderless in Endpoint View
- [DocDB] Add SCHECK_EC_FORMAT macro
- Add automation for multiple schemas in PG live migration with fall forward
- Add automation for multiple schemas in PG live migration with fall back
- [YSQL] Add config to make ybctid ASC/serial
- [DocDB] Dump memory stacks on high memory usage
- [YSQL] Enable Read committed for new clusters only
- [Tools] yb-ctl fails due to pgrep illegal byte sequence
- [YSQL] clean up YSQL regress test yb_pg_timestamp
- [YSQL] Extra rows printed from index scan with trivial condition
- Integrate NameRegistry to Import Data
- Integrate NameRegistry to Export Data
- Integrate NameRegistry in stats and metadata (YB/meta DB)
- Integrate NameRegistry to Import Data File
- Revisit logic for Init of export-data-from-target;
- [DBZ-PGYB] Validate working with multiple SSL modes in the PG connector
- [DBZ-PGYB] Handle multiple task to support parallelism in PG connector
- [DBZ-PGYB] Port existing tests to PG connector
- [DBZ-PGYB] SQL function to get the list of tablets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yugabyte-db.