hive.md 2.1 KB
Newer Older
1 2 3 4
# HIVE

## Use HiveServer2

5
![hive](../../../../img/new_ui/dev/datasource/hive.png)
6

S
sneh-wha 已提交
7 8
## Datasource Parameters

9 10 11 12 13 14 15 16 17 18
|       **Datasource**       |                     **Description**                     |
|----------------------------|---------------------------------------------------------|
| Datasource                 | Select HIVE.                                            |
| Datasource name            | Enter the name of the DataSource.                       |
| Description                | Enter a description of the DataSource.                  |
| IP/Host Name               | Enter the HIVE service IP.                              |
| Port                       | Enter the HIVE service port.                            |
| Username                   | Set the username for HIVE connection.                   |
| Password                   | Set the password for HIVE connection.                   |
| Database name              | Enter the database name of the HIVE connection.         |
S
sneh-wha 已提交
19
| Jdbc connection parameters | Parameter settings for HIVE connection, in JSON format. |
20

21
> NOTICE: If you wish to execute multiple HIVE SQL in the same session, you could set `support.hive.oneSession = true` in `common.properties`.
22 23 24 25
> It is helpful when you try to set env variables before running HIVE SQL. Default value of `support.hive.oneSession` is `false` and multi-SQLs run in different sessions.

## Use HiveServer2 HA ZooKeeper

26
![hive-server2](../../../../img/new_ui/dev/datasource/hiveserver2.png)
27

28 29
NOTICE: If Kerberos is disabled, ensure the parameter `hadoop.security.authentication.startup.state` is false, and parameter `java.security.krb5.conf.path` value sets null.
If **Kerberos** is enabled, needs to set the following parameters  in `common.properties`:
30 31 32 33 34 35 36 37 38 39 40 41 42 43

```conf
# whether to startup kerberos
hadoop.security.authentication.startup.state=true

# java.security.krb5.conf path
java.security.krb5.conf.path=/opt/krb5.conf

# login user from keytab username
login.user.keytab.username=hdfs-mycluster@ESZ.COM

# login user from keytab path
login.user.keytab.path=/opt/hdfs.headless.keytab
```
44 45 46

## Native Supported

47
Yes, could use this datasource by default.