无法从Kerberised HBase读取数据

无法从Kerberised HBase读取数据,hbase,kerberos,Hbase,Kerberos,在连接到远程HBase集群时,我可以创建表并获取表列表。但无法使用Java API扫描表。下面是代码 configuration.set("hbase.zookeeper.quorum", "QUARAM"); configuration.set("hbase.master", "MASTER"); configuration.set("hbase.zookeeper.property.clientPort", "2181"); configuration.set("hadoop.sec

在连接到远程HBase集群时,我可以创建表并获取表列表。但无法使用Java API扫描表。下面是代码

configuration.set("hbase.zookeeper.quorum",     "QUARAM");
configuration.set("hbase.master", "MASTER");
configuration.set("hbase.zookeeper.property.clientPort", "2181");
configuration.set("hadoop.security.authentication", "kerberos");
configuration.set("hbase.security.authentication", "kerberos");
configuration.set("zookeeper.znode.parent", "/hbase-secure");
configuration.set("hbase.cluster.distributed", "true");
configuration.set("hbase.rpc.protection", "authentication"); 
configuration.set("hbase.regionserver.kerberos.principal", "hbase/Principal@realm"); 
configuration.set("hbase.regionserver.keytab.file", "/home/developers/Desktop/hbase.service.keytab3"); 
configuration.set("hbase.master.kerberos.principal", "hbase/HbasePrincipal@realm"); 
configuration.set("hbase.master.keytab.file", "/etc/security/keytabs/hbase.service.keytab");

System.setProperty("java.security.krb5.conf","/etc/krb5.conf");

String principal = System.getProperty("kerberosPrincipal", "hbase/HbasePrincipal@realm");
String keytabLocation = System.getProperty("kerberosKeytab", "/etc/security/keytabs/hbase.service.keytab");
UserGroupInformation.set    configuration(    configuration);
UserGroupInformation.loginUserFromKeytab(principal, keytabLocation);
UserGroupInformation userGroupInformation = UserGroupInformation.loginUserFromKeytabAndReturnUGI("hbase/HbasePrincipal@realm", "/etc/security/keytabs/hbase.service.keytab");
UserGroupInformation.setLoginUser(userGroupInformation);
我犯了很多错误

org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions: Mon Jul 09 18:45:57 IST 2018, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=64965: row '' on table 'DEMO_TABLE' at region=DEMO_TABLE,,1529819280641.40f0e7dc4159937619da237915be8b11., hostname=dn1-devup.mstorm.com,60020,1531051433899, seqNum=526190

Exception : java.io.IOException: Failed to get result within timeout, timeout=60000ms

是否在扫描对象(如scan.setCaching())中设置了缓存?如果设置为默认值,请尝试降低该值并进行检查。是的,这是默认值。但我的问题是,当我删除Kerberos时,它会起作用,否则它不会起作用t@iamLalit我面临着与kerberized Hbase完全相同的问题。你找到解决办法了吗?没有。我还在找。@RCkumar我们有什么解决办法吗?