从 impala-shell 内将查询内容输出到文件
我试图从 Hive 表中提取一些信息,当我在 impala-shell 中运行 describe db.tablename
语句时,我看到输出约为 2000 行。
如何在不退出交互模式的情况下将此信息提取到本地文件中?我只能在启动 impala-shell
时通过传递 -o
参数来找到执行此操作的参考
I am trying to extract some information from a Hive table and when I run a describe db.tablename
statement within impala-shell, I see that the output is ~2000 lines.
How can I extract this information into a local file without exiting the interactive mode? I could only find references to do it by passing the -o
parameter when launching impala-shell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在文档中找不到对此的引用,但这可行 -
在
impala-shell
中我们可以这样做I couldn't find a reference to this in the docs, but this works -
within
impala-shell
we can do