1.在uri中配置 hive://localhost:10000/default

2.查询

3.如果你的hive集群是带有kerberos认证的,hive数据源需要这样配置
1 | hive://xxx:xxx/default?auth=KERBEROS&kerberos_service_name=hive |
如果在连接的时候报了如下的错
1 | Could not start SASL: b'Error in sasl_client_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure |
那就就是你没有用keytab进行认证
1 | kinit -kt xxx.keytab xxx@XXXX |

superset也支持模拟用户,配置方法如下

然后就能支持使用hive,impala或者hdfs用户来对普通用户进行模拟,如果模拟出来的用户没有权限的话,就会抛出异常
