Questions tagged [yugabyte-db]
YugaByte DB offers integration of Transactional NoSQL, Planet-Scale SQL, and Distributed Key-Value Store in a single system.
241
questions
0
votes
1
answer
3
views
Getting ysql_num_shards_per_tserver in YugabyteDB using YSQL
[Question posted by a user on YugabyteDB Community Slack]
We are using client driver(sql package - database/sql - pkg.go.dev) and YugabyteDB 2.8.3.
There is a variable ysql_num_shards_per_tserver ...
0
votes
1
answer
4
views
ERROR: SET TRANSACTION ISOLATION LEVEL must not be called in a subtransaction in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
I am facing the following issue when I try to dump a database in YugabyteDB 2.13.0.1:
[yuga@yugadb-tserver1 ~]$ ./yugabyte-2.13.0.1/postgres/...
0
votes
1
answer
4
views
Systemd configuration in YugabyteDB k8s deployment
[Question posted by a user on YugabyteDB Community Slack]
In this doc: https://docs.yugabyte.com/preview/deploy/manual-deployment/system-config/#ntp, it mentions:
If you're using systemd to start the ...
0
votes
1
answer
4
views
Can’t read JSON from CDC in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
I am trying to read data in JSON format from CDC (YugabyteDB 2.13) for which I've used the following configuration:
connector.class=io....
0
votes
1
answer
8
views
Can’t install YugabyteDB in kubernetes cluster
[Question posted by a user on YugabyteDB Community Slack]
I have tried setting up YugaByte in Kubernetes and it keeps erroring out during installation. Can someone help here?
I have a Digital Ocean ...
0
votes
1
answer
3
views
Unable to import snapshot meta file in YugabyteDB, table not found
[Question posted by a user on YugabyteDB Community Slack]
I’m getting the following error while importing the snapshot:
Error running import_snapshot: Invalid argument (yb/master/catalog_manager_ent....
0
votes
1
answer
3
views
Illegal state: Transaction for catalog table write operation 'pg_database' not found in YugabyteDB YSQL
[Question posted by a user on YugabyteDB Community Slack]
Before dropping a database, first I want to prevent new connections and then drop the existing connections. However, I'm stuck at the first ...
0
votes
1
answer
3
views
Changing tserver_master_addrs in YugabyteDB without restarting?
[Question posted by a user on YugabyteDB Community Slack]
The docs on changing cluster config, indicate that, when changing yb-master cluster membership, yb-tserver tserver_master_addrs should be ...
0
votes
1
answer
7
views
How to automatically drop temporary table upon commit of a transaction in YugabyteDB?
[Question posted by a user on YugabyteDB Community Slack]
I am running YugabyteDB 2.12 single node and would like to know if it is possible to create a temporary table such that it is automatically ...
0
votes
1
answer
4
views
CREATE TABLE syntax need HASH keyword explicitly in YugabyteDB YCQL?
[Question posted by a user on YugabyteDB Community Slack]
We are using YSQL on YugabyteDB. Below table syntax create table with hash sharding:
CREATE TABLE customers (
customer_id bpchar NOT NULL,
...
0
votes
1
answer
3
views
YugabyteDB working under unreliable internet connection?
[Question posted by a user on YugabyteDB Community Slack]
I am interested in Yugabyte’s ability to be geo-distributed. However, I am wondering if the protocol between the different nodes can tolerate ...
0
votes
1
answer
3
views
How to delete rows in YugabyteDB YCQL spark connector?
[Question posted by a user on YugabyteDB Community Slack]
Is it possible in YugabyteDB YCQL Spark connector to delete rows? If yes, how?
0
votes
1
answer
3
views
How to increase storage in YugabyteDB cluster deployed in k8s?
[Question posted by a user on YugabyteDB Community Slack]
Can anyone suggest how to increase storage on my kube cluster, I have deployed with the official helm chart. And when I use the set command it ...
0
votes
1
answer
3
views
Does sequence of clustering keys matter when querying in YugabyteDB YCQL
[Question posted by a user on YugabyteDB Community Slack]
I have a question regarding clustering column order in YCQL. Below is the PRIMARY key definition:
PRIMARY KEY (fsym_id, item, ...
0
votes
2
answers
7
views
IN operator support in YugabyteDB YSQL
[Question posted by a user on YugabyteDB Community Slack]
We are using YSQL on YugabyteDB 2.8.3.
Does yugabyte support the IN operator using YSQL syntax?
Something like…DELETE FROM Customers WHERE ...
0
votes
2
answers
71
views
Can Distributed SQL tools be applied as alternatives to 2 phase commit or sagas patterns for distributed transaction coordination?
I am currently reading the Microservices Patterns and it says there are mostly two approaches for distributed transactions: two phase commit (2PC) and sagas pattern.
Also, I've heard about currently ...
0
votes
1
answer
11
views
Cannot build YugabyteDB with clang12 in Alma Linux 8.5
[Question posted by a user on YugabyteDB Community Slack]
Debug build does not seem to be working in the clang12 based build:
./yb_build.sh debug --sj
[100%] Linking CXX executable ../../../tests-...
0
votes
1
answer
10
views
Upgrading multiple YugabyteDB versions at once
[Question posted by a user on YugabyteDB Community Slack]
The YugabyteDB core documentation for upgrades doesn't seem to address compatibility between versions. Can you upgrade from 2.8 to 2.13? Or ...
0
votes
1
answer
17
views
Restart read required when migrating existing application from PostgreSQL to YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
I am trying to migrate an existing application from PostgreSQL to YugabyteDB using a cluster with 3 nodes.
The smoke tests run fine but I ...
0
votes
1
answer
8
views
Latency in row-level geo partitioning in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
Questions about row-level geolocation partition. Say I have two partitions in USA and one in Singapore. If a user who daily access via USA ...
0
votes
1
answer
14
views
Migrating DDL from Cassandra to YugabyteDB YCQL
[Question posted by a user on YugabyteDB Community Slack]
I am trying to migrate DDLs from apache cassandra to YugabyteDB YCQL . But I am getting this error:
cassandra@ycqlsh:killrvideo> CREATE ...
0
votes
1
answer
13
views
Examples that lead to data loss in YugabyteDB xCluster replication
[Question posted by a user on YugabyteDB Community Slack]
Looking at the docs, https://docs.yugabyte.com/latest/explore/multi-region-deployments/ - over here it says that the xCluster pattern leads to ...
0
votes
1
answer
8
views
Different search path behavior for functions in YugabyteDB compared to PostgreSQL
[Question posted by a user on YugabyteDB Community Slack]
I'm investigating switching from PostgreSQL to YSQL and I'm not able to set up our Rails application against YSQL running locally.
I'm trying ...
0
votes
1
answer
4
views
Cannot enable log_min_duration_statement in YugabyteDB YSQL
[Question posted by a user on YugabyteDB Community Slack]
Testing adding sql long query logging but it appears prepare statement executions are not following the min_duration gflags. The output in the ...
0
votes
1
answer
5
views
Update YugabyteDB config when deploying through terraform module
[Question posted by a user on YugabyteDB Community Slack]
We have setup our 3 node cluster using the official yugabyte terraform module. We need to update the flag file for tserver to enable ...
0
votes
1
answer
6
views
Changing SUM to count elements of array twice in YugabyteDB YSQL
[Question posted by a user on YugabyteDB Community Slack]
I have an SQL related question.I have a query like this:
SELECT SUM("baseOccupancy")
FROM "RoomTypes"
...
0
votes
1
answer
17
views
Can’t enable encryption in YugabyteDB cluster using yugabyted cli
[Question posted by a user on YugabyteDB Community Slack]
I'm running the yb-cluster of 3 logical node on 1 VM. I am trying with SSL Mode enabled cluster. Below is the property file i am using to ...
0
votes
1
answer
6
views
Setting server timezone in YugabyteDB YSQL
[Question posted by a user on YugabyteDB Community Slack]
How do you permanently (not session level) set the timezone in YugabyteDB YSQL?
Is this a G-flag or via ysql_pg_conf?
Can you give an example? ...
0
votes
1
answer
7
views
Cannot change the consistency of the database/keyspace in YugabyteDB YCQL
[Question posted by a user on YugabyteDB Community Slack]
I'm using YCQL with yugabyte's cql driver.
Also for testing purposes I'm running ycql in docker.
Initially, when I check the consistency level ...
0
votes
2
answers
15
views
Difference between ysql_num_tablets & ysql_num_shards_per_tserver flags in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
Does the ysql_num_tablets G-flag replace the ysql_num_shards_per_tserver G-flag?
ysql_num_tablets seems to be currently absent from the online ...
0
votes
1
answer
6
views
Purging old log files in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
How can I configure the YugaByte server logs to purge every few days? They seem to fill up fast and my server runs out of disk. Especially the ...
0
votes
1
answer
12
views
How to add 2 yb-master nodes to an existing YugabyteDB cluster
[Question posted by a user on YugabyteDB Community Slack]
I’m running YugabyteDB 2.11. I’m trying to add another two master nodes to an existing cluster but no matter what I do it gets stuck on ...
0
votes
1
answer
14
views
How clock synchronization affects the performance of YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
I would like to examine how the accuracy of clock synchronization affects the performance of YugabyteDB. How do you usually test such things ...
0
votes
1
answer
7
views
Optimizing YugabyteDB for tables with frequent deletes
[Question posted by a user on YugabyteDB Community Slack]
Wanted to check if we should do any optimization on the db side for the tables that have frequent inserts and deletes ...like re-indexing or ...
0
votes
1
answer
10
views
YugabyteDB YCQL transaction capabilities
[Question posted by a user on YugabyteDB Community Slack]
I'm trying to figure out how powerful YCQL transactions are. Reading https://docs.yugabyte.com/latest/explore/transactions/distributed-...
0
votes
1
answer
12
views
Big storage overhead when moving from Oracle to YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
I'm doing the Oracle DB migration to YB and when testing and noticed after Import the size of the YB is tripled on each node, meaning 50GB of ...
0
votes
1
answer
14
views
How to store YugabyteDB snapshots in S3 compatible object storage
[Question posted by a user on YugabyteDB Community Slack]
Looking at the docs and I’ve successfully taken a snapshot of my cluster.
Are there instructions on how to store YugabyteDB backup on s3 ...
0
votes
1
answer
9
views
Deploying YugabyteDB on Azure by following the AWS tutorial
[Question posted by a user on YugabyteDB Community Slack]
I’m following this https://docs.yugabyte.com/latest/deploy/public-clouds/aws/manual-deployment/ AWS tutorial for deploying on Azure.
In the ...
0
votes
1
answer
29
views
How to protect ports 7000 and 9000 in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
Could you guide me how to disable or password protect the YugabyteDB UI interfaces on port 7000 and 9000? Thank you!
0
votes
1
answer
11
views
How to track data movement in YugabyteDB in multi-region replication
[Question posted by a user on YugabyteDB Community Slack]
When I'm changing my placement info by adding a new datacenter, my data should start moving to accomplish my "rules". How can I ...
0
votes
1
answer
12
views
fs_data_dirs must contain at least one data directory error in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
Just exploring YugabyteDB for a large application, and trying to get a private cluster set up. On the first yb-master I can start yb_master ...
0
votes
1
answer
11
views
How to distribute yb-masters in multi-region deployment in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
In terms of numbers of yb-master, they should be as many as the replication factor. My question is, is having master and servers running in ...
0
votes
1
answer
7
views
Dropping tablespaces with tables/indexes in them in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
What happens to tables allocated to a tablespace when a tablespace is removed? As in, when drop tablespace is executed? From what I observed, ...
0
votes
1
answer
17
views
Automatically creating a database when starting YugabyteDB container
[Question posted by a user on YugabyteDB Community Slack]
I'm trying to run YugabyteDB in docker and want to create a dababase automatically as in PostgreSQL with the environment var POSTGRES_DB. ...
0
votes
1
answer
8
views
Restoring data in a cluster with different number of nodes in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
If I need to restore snapshots from one cluster with(4 nodes) to another cluster with(3 nodes).
How will we do that,as per documentation?
Data ...
0
votes
1
answer
7
views
Re-replication on region failover in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
Because I'd like to use Multi-DC deployments features, I found that there is a case that the number of replicas can’t be ensured if I modify ...
0
votes
1
answer
5
views
mTLS and rpc client verification in YugabyteDB
[Question posted by a user on YugabyteDB Community Slack]
Question related to client to server encryption on https://docs.yugabyte.com/latest/secure/tls-encryption/client-to-server/
Is this mTLS? Is ...
0
votes
1
answer
19
views
Cannot read from read-replica in YugabyteDB YSQL
[Question posted by a user on YugabyteDB Community Slack]
I set the variables in sql:
SET default_transaction_read_only = TRUE
SET yb_read_from_followers=true;
SET yb_follower_read_staleness_ms=30000;
...
0
votes
0
answers
43
views
YugaByte DB services gets down when any of the yb-tserver stops working
I am new to Yugabyte DB i have 6 pods given below names and states . One pod yb-tserver-3 is in CrashLoopBackOff state .Now i am not able to connect to my DB through DBeaver as i am getting error1 :- ...