1、安装配置sentry
详细步骤见上一篇安装配置sentry。
2、配置impala
注:以下配置未集成kerberos安全认证
在/etc/imapla/conf目录下创建sentry-site.xml文件,并添加:
<property>
<name>sentry.service.client.server.rpc-port</name>
<value>8038</value>
</property>
<property>
<name>sentry.service.client.server.rpc-address</name>
<value>sentry_hostname</value>
</property>
<property>
<name>sentry.service.client.server.rpc-connection-timeout</name>
<value>200000</value>
</property>
<property>
<name>sentry.service.security.mode</name>
<value>none</value>
</property>
修改/etc/default/impala文件,在IMPALA_SERVER_ARGS中添加:
-sentry_config=/etc/imapla/conf/sentry-site.xml
-server_name=sentry_hostname
在 IMPALA_CATALOG_ARGS中添加:
-sentry_config=/etc/imapla/conf/sentry-site.xml
3、重启impala服务
在各节点重启impala服务。