Hive 表在 Tableau 中不可见

编程入门 行业动态 更新时间:2024-10-26 00:20:20
本文介绍了Hive 表在 Tableau 中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我在配置单元的默认数据库中创建了一个表 ztest7.我可以使用直线查询它.在 tableau 中,我可以使用自定义 sql 进行查询.

I have created a table, ztest7 in the default database in my hive. I am able to query it using beeline. In tableau, I can query it using a custom sql.

但是,当我搜索它时,该表格并未显示.

我在这里遗漏了什么吗?

Am I missing something here?

Tableau Desktop Version = v10.1.1  
Hive = v2.0.1  
Spark = v2.1.0

最好的问候

推荐答案

我有同样的问题,从 Tableau Desktop 10 (mac) 到 Hive (2.1.1) 通过 Spark SQL 2.1(在 centos 7 服务器上)这是我从 Tableau 支持那里得到的:

I have the same issue with Tableau Desktop 10 (mac) to Hive (2.1.1) via Spark SQL 2.1 (on centos 7 server) This is what I got from Tableau Support:

在 Tableau Desktop 中,无需连接即可连接到 Spark SQL定义默认架构当前未内置到产品中.

In Tableau Desktop, the ability to connect to Spark SQL without a defining a default schema is not currently built into the product.

作为初步步骤,要定义默认架构,请配置 Spark使用 SchemaRDD 或 DataFrame 的 SQL hivemetastore.这必须是在 Hive Metastore 中为 Tableau Desktop 定义,以便能够访问它.Spark SQL 无法查询纯无模式 Spark RDD因为缺少模式.RDD 可以转换为SchemaRDDs,它有额外的模式元数据作为 Spark SQL提供对 SchemaRDD 的访问.创建 SchemaRDD 时,它只是在本地命名空间或上下文中可用,并且不可用于通过 ODBC 和 Spark Thrift 访问 Spark 的外部服务服务器.为了让 Tableau 能够访问,SchemaRDD 需要是在本地以外的目录中注册语境;Hive Metastore 是目前唯一受支持的服务.

As a preliminary step, to define a default schema, configure the Spark SQL hivemetastore to utilize a SchemaRDD or DataFrame. This must be defined in the Hive Metastore for Tableau Desktop to be able to access it. Pure schema-less Spark RDD's can not be queried by Spark SQL because of the lack of a schema. RDDs can be converted into SchemaRDDs, which have additional schema metadata as Spark SQL provides access to SchemaRDDs. When a SchemaRDD is created, it is only available in the local namespace or context, and is unavailable to external services accessing Spark through ODBC and the Spark Thrift Server. For Tableau to have access, the SchemaRDD needs to be registered in a catalog that is available outside of just the local context; the Hive Metastore is currently the only supported service.

我不知道如何检查/实现这一点.

I don't know how to check/implement this.

PS:我会将此作为评论发布,因为我是 Stack Overflow 的新手,因此不允许我这样做.

PS: I'd have posted this as a comment because I am not allowed to as I am new to Stack Overflow.

这篇关于Hive 表在 Tableau 中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 11:26:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1408873.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中不   Hive   Tableau

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!