Use IDEA operating Hbase API error: org.apache.hadoop.hbase.client.RetriesExhaustedException solution:

 Use IDEA operating Hbase API error: org.apache.hadoop.hbase.client.RetriesExhaustedException solution:

 

1. Error details:

   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.net.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.com/69.172.201.153:16020] row ‘fruit1,’ on table ‘hbase:meta’ at region=hbase:meta,1.1588230740, hostname=server1.com,16020,1581692957371, seqNum=0…

 

2. Problem Solving:

 Modify the C disk file under the local system:  

   C:\Windows\System32\drivers\etc\hosts

 Add: ip hostname .com hostname of your virtual machine
 such as (In my example): 192.168.137.8 master.com master
 Tip: You can also add your slave

 

3. error reasons:

  java code:
Here Insert Picture Description


  Since hbase will find a virtual machine host according to 192.168.137.8, and resolve IP127.0.0.1 according to the host hosts file, which resulted in not recognize the host name, which run error.

 
 
 
Hope can solve your problem ~~~

If there is an error where the description, welcome to point out ...

Guess you like

Origin www.cnblogs.com/Nahshon/p/12309437.html