Cassandra数据库中缺少数据

发布于 2025-01-26 21:39:04 字数 708 浏览 2 评论 0原文

我已经从Google Cloud Marketplace部署了Cassandra服务器 实例_count:7,Machine_type:e2-highmem-4,区域:us-east4-a

创建密钥空间和表的配置详细信息和查询如下:

CREATE KEYSPACE migration
WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 3};

CREATE TABLE migration.mock_data ( 
  id uuid PRIMARY KEY, 
  first_name text,  
  last_name text, 
  email text, 
  gender text
);

COPY migration.mock_data (id, first_name, last_name, email, gender) 
FROM 'MOCK_DATA.csv'
WITH HEADER = TRUE;

并尝试为我的迁移项目的1000行加载1000行的某些测试数据,但令人惊讶的是,我发现数据库中缺少一些数据。

在此图像中给出了选择查询的输出的输出

此问题上的任何输入都会有所帮助。 提前致谢。

I have deployed Cassandra server from google cloud marketplace with the below configurations
Instance _count:7, machine_type:e2-highmem-4, zone: us-east4-a

The configuration details and queries for creation of the keyspace and table are as follows:

CREATE KEYSPACE migration
WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 3};

CREATE TABLE migration.mock_data ( 
  id uuid PRIMARY KEY, 
  first_name text,  
  last_name text, 
  email text, 
  gender text
);

COPY migration.mock_data (id, first_name, last_name, email, gender) 
FROM 'MOCK_DATA.csv'
WITH HEADER = TRUE;

And tried loading some test data of 1000 rows for my migration project, but surprisingly I found some data missing from the database.

Output of the select query is given in this image

Any inputs on this issue will be helpful.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文