Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain 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!
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB