从scanner获取rowkey: for(Result rr : scanner){ String key =Bytes.toString(rr.getRow())} HBase API - Result object getRow() Method for retrieving the row key that corresponds to the row from which this Result was created.…
分布式方式部署的HBase,启动正常,Shell操作正常,使用HBase的Java Api操作时总是连接失败,信息如下: This server is in the failed servers list: localhost.localdomain/202.102.110.204:60000 HBase部署在192.168.100.28,IP地址变掉了原因在于DNS解析, 临时解决办法,可以在调用Api的客户端机器上的hosts文件中加上一条记录 192.168.100.28 local…