You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Arun Gupta <ar...@gmail.com> on 2013/10/07 23:14:56 UTC
Cannot resolve current user from subject, which had 0 UGI principals!
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