hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Gupta <arun.gu...@gmail.com>
Subject Cannot resolve current user from subject, which had 0 UGI principals!
Date Mon, 07 Oct 2013 21:14:56 GMT
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

Mime
View raw message