AnsweredAssumed Answered

JAVA Connectivity issue to MAPRDB from linux

Question asked by sanilmar on Aug 21, 2017
Latest reply on Sep 11, 2017 by maprcommunity

I am trying to connect to MaprDB from linux and facing below issue for (output from the log)


Error in PutRPC for table /m7tables/test-table, error = Permission denied(13), action=WRITE, user=ad.sam, family=cf1:, tablet 12131.32.272374, periodicFlush = 1

2017-08-21T16:39:30.95-0500 [APP/PROC/WEB/0] OUT User 'xyz' (user id 2000) does not have permission for syncPut() on '/m7tables/test-table'


I am using the impersonation and setting it in the JAVA program as below

conf = new Configuration();
conf.set("hadoop.spoofed.user.uid", "26606");
conf.set("hadoop.spoofed.user.gid", "9998");
conf.set("hadoop.spoofed.user.username", "ad.sam");


using the same impersonation id, I am able to query the table using Hbase shell, but somehow it doesn't work through JAVA. Am I missing anything here?