from the blog, I found only hcal credential can work with kerberos,
but it's skip the sentry..
then how to make it work with sentry ?
I would think that you don't need any credentials, you can issue CREATE PRIVILEGES ... etc directly from the SQL script of Hive or just do your SELECT * FROM SENTRY_PROTECTED_TABLES?
without credentials, hive action will fail with such error:
....
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoo
Unable to instantiate org.apache.hadoop.hive.metasto
  java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate
org.apache.hadoop.hive.metasto
...
  Caused by: MetaException(message:Could not connect to meta store usingany of the URIs provided. Most recent failure:
org.apache.thrift.transport.TTand by hcat credential checked, it's ok to connect to metasotre, but will failed with no permission error:
Caused by: org.apache.hadoop.security.Acc
inode="/user/hive/warehouse":hwe use sentry for hive, only hive user can access the warehouse, so user ops1 will failed in hive action workflow.
any help ?
 
댓글 없음:
댓글 쓰기