JavaAPI访问HBase出现org.apache.hadoop.hbase.client.RetriesExhaustedException

在win7环境中测试JavaApi访问HBASE1.2.6,依赖如下:



   org.apache.hbase
   hbase-client
   1.2.6





   org.springframework.data
   spring-data-hadoop
   2.5.0.RELEASE

出现以下异常:

o.a.h.hbase.client.RpcRetryingCaller     : Call exception, tries=10, retries=35, started=45596 ms ago, cancelled=false, msg=row 'tbchy,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname= admin-pc,3693,1529541074554, seqNum=0

org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:

Thu Jun 21 09:19:28 CST 2018, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=76700: row 'tbchy,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=admin-pc,3693,1529541074554, seqNum=0

经过分析应该是  admin-pc 解析不对

打开host文件 C:\Windows\System32\drivers\etc 增加 admin-pc 映射成本机IP


实验映射成 127.0.0.1 不行。




你可能感兴趣的:(大数据)