如何检索 Parquet 中的 Vertica 数据?本地
我正在尝试将数据从我的 vertica DB 导出到笔记本电脑的本地存储。这可能吗?
当我尝试目录='C:/Downloads'时,它显示目录未找到错误。
直接在 parquet 中将数据检索到本地的替代方法是什么?
EXPORT TO PARQUET(directory = 'hdfs:///user3/data')
OVER(ORDER BY col1) AS SELECT col1 + col1 AS A, col2
FROM public.T3;
I'm trying to export data from my vertica DB to my laptop's local storage. Is this possible?
When I tried the directory = 'C:/Downloads' it showed dir not found error.
What's the alternative to directly retrieve data to local in parquet?
Doc for reference : https://www.vertica.com/docs/9.3.x/HTML/Content/Authoring/SQLReferenceManual/Statements/EXPORTTOPARQUET.htm
EXPORT TO PARQUET(directory = 'hdfs:///user3/data')
OVER(ORDER BY col1) AS SELECT col1 + col1 AS A, col2
FROM public.T3;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我有用的唯一方法是导出到 Vertica 节点上的目录,然后将生成的目录
scp
到我的平台(在我的例子中是 Mac M1):如果您无权访问作为 Vertica 节点的 Linux shell 的 dbadmin,请确保 Vertica 节点上存在一个目录,您(作为普通 Linux 用户)可以从中读取内容,并且
scp
创建的目录以以下身份登录该用户而不是数据库管理员。The only way that worked for me was to export to a directory on a Vertica node, and then
scp
the generated directory to my platform (a Mac M1 in my case):If you don't have access as dbadmin to a Vertica node's Linux shell, make sure that there exists a directory on the Vertica node exists where you - as an ordinary mortal Linux user - can read from, and
scp
the created directory logged in as that user instead of dbadmin.