azkaban / azkaban-plugins

Plugins for Azkaban.
https://azkaban.github.io
Apache License 2.0
130 stars 178 forks source link

security manager's fetched hive token should have a default service f… #234

Closed fangshil closed 8 years ago

fangshil commented 8 years ago

When hive.obtain.token is set to true, security manager will fetch a hive delegation token. However, by default the delegation token will have an empty service field, and security manager doesn't override this service field. As a result, the hive delegation token with empty service CAN NOT be retrieved later within application master. We propose a simple fix to always override the token's service field with hive metastore uri conf.