---
schema_version: "1"
id: 868339883a5923e96d55ec85b06efb34332dd46491040e8bda31114d2f723c1c
title: Apache Impala
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/pro/desktop/examples_apache_impala.md
canonical_url: https://help.tableau.com/current/pro/desktop/zh-cn/examples_apache_impala.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 4fceb0df2cd75c571f55bc693719ed1788881c50a8681073db70b1916f9f7af9
description: Connect Tableau to open-source Apache Impala and set up the data source.
---
[跳转到主要内容](#main-content)

# Apache Impala

本文介绍如何将 Tableau 连接到开源 Apache Impala 并设置数据源。

## 开始之前

在开始之前，请收集以下连接信息：

- 承载要连接到的数据库的服务器的名称，以及端口号
- 身份验证：
    
    - 无
    - LDAP
    - 集成 (Kerberos)
- 用户名和密码（取决于您选择的身份验证方法）
- 传输模式
- 数据库
- Thrift 协议版本
- 是否要连接到 SSL 服务器？

### 需要驱动程序

此连接器需要驱动程序才能与数据库通信。如果计算机上未安装该驱动程序，Tableau 将在连接对话框中显示一条错误消息，其中包含指向[驱动程序下载](https://www.tableau.com/zh-cn/support/drivers)页面的链接，您可在该页面中找到驱动程序链接和安装说明。

## 进行连接并设置数据源

1. 启动 Tableau，并在“连接”下选择“Apache Impala”。有关数据连接的完整列表，请在“至服务器”下选择“更多”。然后执行以下操作：
    
    1. 输入**“服务器”**名称和**“端口”**。
    2. 选择一种**“身份验证”**方法，并在出现提示时输入用户名和密码。
    3. 选择**“传输模式”**
    4. （可选）输入要连接的**“数据库”**。
    5. 如果需要 SSL，请将**“使用 SSL”**设置为 **true**。
    6. （可选）以完整 PEM 格式指定 SSL 服务器证书，或提供证书的本地文件路径。如果未指定，则接受计算机信任的任何证书。
    7. 选择 Thrift 的**“协议版本”**。
    8. 选择**“登录”**。
        
        **注意：**如果 Tableau 无法建立连接，请验证您的凭据是否正确。如果仍然无法连接，请与您的数据库或网络管理员联系。
2. 在数据源页面上，执行下列操作：
    
    1. （可选）在页面顶部选择数据源名称，然后输入唯一数据源名称。
    2. 从“数据库”下拉列表中，选择一个数据库。
    3. 在“表”下，选择表或使用搜索字段按名称搜索表。
    4. 将表拖到画布，然后选择工作表标签以开始分析。

## 另请参见

- [设置数据源](https://help.tableau.com/current/pro/desktop/zh-cn/datasource_prepare.htm) – 向此数据源中添加更多数据，或者在分析数据之前准备数据。
- [构建图表和分析数据](https://help.tableau.com/current/pro/desktop/zh-cn/design_and_analyze.htm) – 开始数据分析。