如何将CSV文件导入具有多个列户名的Boogtable?

发布于 2025-01-28 04:34:44 字数 896 浏览 4 评论 0 原文

试图将CSV文件导入具有2列家庭名称的Boogtable表:NN和Corr。

以下内容 https://cloud.google。 com/bigtable/docs/cbt-reference#delete_all_rows

我正在执行的命令是“ cbt导入knn-item knn_items_moviesset.csv'。

我收到此错误消息:

”在此处输入图像描述

这是CSV文件的数据:

我不理解错误消息,因为第一列为行键是空的。

提前致谢。

Trying to import a csv file to a Bigtable table with 2 column-family names:NN and CORR.
enter image description here

Following this https://cloud.google.com/bigtable/docs/cbt-reference#delete_all_rows.

The command that I am executing is 'cbt import knn-item KNN_Items_moviesset.csv'.

I am getting this error message:

enter image description here

Here is the data to csv file:
enter image description here

I do not understand the error message since the first column is empty for the row key.

Thanks in advance.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤者何惧 2025-02-04 04:34:44

查看您的.CSV文件格式,看起来不错。

失败的检查明确寻找一个空字符串“”。

为了取消阻止此问题,您可以尝试评论支票并重建工具“ Go Build”。
代码位置
这将涉及克隆回购并使用源。

(如果不这样做,

Looking at your .csv file format it appears good.

The check that is failing is explicitly looking for an empty string "".

To unblock this you can try commenting out the check and rebuild the tool "go build ."
Code Location https://github.com/googleapis/cloud-bigtable-cbt-cli/blob/2a60a06e181861b7103836b9de5e5305540b15b1/cbt.go#L1863-L1865
(this would involve cloning the repo and using the source if you aren't)

Additionally adding a print for fams[0], or inspecting the .csv for any non visible characters in the first cells could help debug this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文