Reply
HSR
New Contributor
Posts: 1
Registered: ‎09-01-2013

Kerberos access to Cloudera from Mac

I want to access Cloudera Hadoop setup (HIVE + Impala) from Mac Book Pro OS X 10.8.4.

 

We have Cloudera CDH-4.3.0 installed on Linux servers. I have extracted CDH-4.2.0 tarball to my Mac Book Pro.

 

I have set proper configuration and Kerberos credentials so that HIVE shell starts up.

 

However when I do 'show databases' command it gives following error:

 

> hive

> show databases;

>

Failed with exception java.io.IOException:java.io.IOException: Can't get Master Kerberos principal for use as renewer

 

The error is related to TokenCache.

 

When I searched for error, it seems following method 'obtainTokensForNamenodesInternal' throws this error when it tries to get a delegation token for specific FS and fails. 

 

http://hadoop.apache.org/docs/current/api/src-html/org/apache/hadoop/mapreduce/security/TokenCache.h...

 

On client side I don't see any error in HIVE shell logs.

 

Any help or pointers for resolving this error would be highly appreciated.

 

 

 

Expert Contributor
Posts: 126
Registered: ‎11-01-2013

Re: Kerberos access to Cloudera from Mac

can you able to access HDFS data on your mac using hadoop fs commands ?

you have a valid kerberos ticket for mac user to access HDFS data ?
Em Jay
Contributor
Posts: 78
Registered: ‎06-19-2014

Re: Kerberos access to Cloudera from Mac

Did you run hive with the command "sudo -u hive hive -hiveconf hive.root.logger=INFO,console" ?

Maybe your hive user does not opened,edit the /etc/passwd file,it will be ok.

Announcements