用竖行显示 HIVE Query 结果 | 您所在的位置:网站首页 › python横着输出结果 › 用竖行显示 HIVE Query 结果 |
实际使用当中,有时候需要用竖行的形式显示 HIVE 的输出结果(比如查看列数过多的数据时),这时如果还是用 row by row 的形式,查看起来就会很不方便。 通过以下方式,可以是 HIVE 的结果以列的形式呈现。 输入 beeline --outputformat=vertical进入 beeline,连接 hive beeline> !connect jdbc:hive2://localhost:10000 scott tiger开始执行查询,输出的结果会以列式呈现。 参考链接: https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-vertical https://cwiki.apache.org/confluence/display/Hive/Replacing+the+Implementation+of+Hive+CLI+Using+Beeline |
CopyRight 2018-2019 实验室设备网 版权所有 |