首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >【踩坑实录】hive cli查询不显示表头

【踩坑实录】hive cli查询不显示表头

作者头像
chimchim
发布2022-11-13 13:21:56
发布2022-11-13 13:21:56
7780
举报

目录

一、问题描述:

二、解决方法:

1.只调参,只在当前会话内生效。

2.可修改hive配置文件,永久生效


一、问题描述:

在Hue中执行hive sql查询结果,没有显示出表头。

二、解决方法:

1.只调参,只在当前会话内生效。

不显示表名.列名:

set hive.cli.print.header=false;

显示表名.列名:

set hive.cli.print.header=true;

不显示表名,只显示列名:

set hive.resultset.use.unique.column.names=false;

2.可修改hive配置文件,永久生效

hive-site.xml

代码语言:javascript
复制
<property>
        <name>hive.cli.print.header</name>
        <value>true</value>
        <description>Whether to print the names of the columns in query output.</description>
    </property>
    <property>
        <name>hive.cli.print.current.db</name>
        <value>true</value>
        <description>Whether to include the current database in the Hive prompt.</description>
    </property>
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-09-06,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一、问题描述:
  • 二、解决方法:
    • 1.只调参,只在当前会话内生效。
    • 2.可修改hive配置文件,永久生效
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档