Hi Vivek, Did you set value " org.apache.sentry.binding.hive.SentryHiveAuthorizationTaskFactoryImpl " for the key "hive.security.authorization.task.factory" in hive conf? If not, you should set this conf to use sentry task. And what’s your version of sentry? As far as I know, there is no release version of sentry to support apache hive. Current code base 1.5.0-incubating-SNAPSHOT in trunk could support apache hive, but you may need to build it by yourself.
Thanks, Xiaomeng -----Original Message----- From: Vivek Shrivastava [mailto:[email protected]] Sent: Tuesday, March 10, 2015 2:52 PM To: dev Subject: Re: Unable to run latest Sentry build with Hive 1.1.0 Ah.. never mind. I see this is defined in the hive trunk. On Tue, Mar 10, 2015 at 2:33 AM, Vivek Shrivastava <[email protected] > wrote: > Hi, > > When I run the beeline command I get this error message. Do I have > pass the value through command line? if so then what is the value? > > Thanks, > > Vivek > > 2015-03-10 06:18:30,157 ERROR [pool-7-thread-1]: > thrift.ProcessFunction > (ProcessFunction.java:process(41)) - Internal error processing > OpenSession > > java.lang.NoSuchFieldError: HIVE_AUTHORIZATION_TASK_FACTORY > > at > org.apache.sentry.binding.hive.HiveAuthzBindingSessionHook.<clinit>(Hi > veAuthzBindingSessionHook.java:46) > > at java.lang.Class.forName0(Native Method) > > at java.lang.Class.forName(Class.java:274) > > at > org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:59) > > at > org.apache.hive.service.cli.session.SessionManager.executeSessionHooks > (SessionManager.java:223) > > at > org.apache.hive.service.cli.session.SessionManager.openSession(Session > Manager.java:136) > > at > org.apache.hive.service.cli.CLIService.openSession(CLIService.java:153 > ) > > at > org.apache.hive.service.cli.thrift.ThriftCLIService.getSessionHandle(T > hriftCLIService.java:268) > > at > org.apache.hive.service.cli.thrift.ThriftCLIService.OpenSession(Thrift > CLIService.java:191) > > at > org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.g > etResult(TCLIService.java:1253) > > at > org.apache.hive.service.cli.thrift.TCLIService$Processor$OpenSession.g > etResult(TCLIService.java:1238) > > at > org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > > at > org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > > at > org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge20S$Server$TUGIAss > umingProcessor.process(HadoopThriftAuthBridge20S.java:628) > > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPo > olServer.java:206) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j > ava:1145) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor. > java:615) > > at java.lang.Thread.run(Thread.java:745) >
