使用IDEA操作Hbase API报错:org.apache.hadoop.hbase.client.RetriesExhaustedException的解决方法:

编程入门 行业动态 更新时间:2024-10-17 21:21:05

使用IDEA操作Hbase API<a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错:org.apache.hadoop.hbase.client.RetriesExhaustedException的解决方法:"/>

使用IDEA操作Hbase API报错:org.apache.hadoop.hbase.client.RetriesExhaustedException的解决方法:

错误详情:

Exception in thread “main” org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Fri Feb 14 18:04:10 CST 2020, null, java.SocketTimeoutException: callTimeout=60000, callDuration=62509: 10000 millis timeout while waiting for channel to be ready for connect. ch : java.nio.channels.SocketChannel[connection-pending remote=server1/69.172.201.153:16020] row ‘fruit1,’ on table ‘hbase:meta’ at region=hbase:meta,1.1588230740, hostname=server1,16020,1581692957371, seqNum=0…

问题解决:

修改本地系统下的C盘文件:
 C:\Windows\System32\drivers\etc\hosts
添加:你的虚拟机的ip  主机名   主机名
比如(以我的为例):192.168.137.8  master  master

提示:还可以添加您的 从机,

报错原因:

java代码:

  由于hbase会根据192.168.137.8 找到虚拟机主机,并且根据主机hosts文件解析IP127.0.0.1,因此这就造成了无法识别主机名,从而运行报错。

 
 
 
 
希望可以解决您的问题~~~

如果哪里描述有错误,欢迎大家指出…

更多推荐

使用IDEA操作Hbase API报错:org.apache.hadoop.hbase.client.RetriesExhaustedException的解决方

本文发布于:2024-02-06 02:16:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1745736.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   解决方法   操作   Hbase   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!