0

I am trying 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 commands like 'hadoop -fs -ls /' works and 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.html

On client side I don't see any error in HIVE shell logs. I have also tried using tarballs of CDH 4.3.0 with same configuration I get the same error.

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

4

2 に答える 2

2

yarn の kerberos を設定していないようです。次の構成を追加しますyarn-site.cml

<property>
    <name>yarn.nodemanager.principal</name>
    <value>yarn_priciple/fqdn@_HOST</value>
</property>
<property>
    <name>yarn.resourcemanager.principal</name>
    <value>yarn_priciple/fqdn@_HOST</value>
</property> 
于 2013-09-04T06:46:24.097 に答える