Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - Cannot resolve current user from subject, which had 0 UGI principals!


Copy link to this message
-
Cannot resolve current user from subject, which had 0 UGI principals!
Arun Gupta 2013-10-07, 21:14
I'm trying to build a simple sample that shows how to use Java Client
API to put/get data from HBase. The complete (not functional yet)
sample is available at:

https://github.com/arun-gupta/javaee7-samples/tree/master/extra/nosql/hbase

Instantiating HBaseAdmin as:

HBaseAdmin admin = new HBaseAdmin(config);

gives the error:

Caused by: java.lang.RuntimeException: Cannot resolve current user
from subject, which had 0 UGI principals!
at org.apache.hadoop.security.UserGroupInformation.getCurrentUGI(UserGroupInformation.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Even creating the table directly as:

HTable table = new HTable(config, personsTable);

gives the same error.

The sample is using 0.94.2 server and Client API.

Any idea ?

Cheers
Arun

--
Java EE 7 Essentials: http://shop.oreilly.com/product/0636920030614.do
Java EE 6 Pocket Guide from OReilly:
http://shop.oreilly.com/product/0636920026464.do