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.
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.