Member since
04-17-2019
2
Posts
0
Kudos Received
0
Solutions
04-18-2019
08:11 AM
Hello Geoffrey, thank you for your answer. I tried to add this line to the host file of my notebook and of the hortonworks VM. But at the moment I don't have the possibility to change the host file of the windows server. Is there any other solution?
... View more
04-17-2019
03:23 PM
Hello, I'm using Hortonworks VM to deploy HBase for our project. Because my notebook does not have much RAM I decided to use our dedicated server to host the VM. The server has its own hostname in the network. I can access the server via SSH and Ambari and it works well. I'm now trying to connect to HBase via Java API. For this I used the tutorial found here and replaced the value for zookeeper.quorum with the hostname of my server. The first connection attempt works very well. I get a HBase admin and a connection with the correct hostname. Please notice that I replaced my hostname with '[hostname]' in the following snippets. 2019-04-17 14:31:06,819 INFO [ReadOnlyZKClient-[hostname]@0x710726a3-SendThread([hostname]:2181)] zookeeper.ClientCnxn: Socket connection established to [hostname]/[hostip], initiating session Got connection hconnection-0x769e7ee8
Got Admin: org.apache.hadoop.hbase.client.HBaseAdmin@3967e60c But when I try to perform actions on the database the connection timed out because the program tries to connect to "sandbox-hdp.hortonworks.com". This is also shown in the following snippet. 2019-04-17 14:31:41,777 INFO [main] client.RpcRetryingCallerImpl: Call exception, tries=6, retries=6, started=34715 ms ago, cancelled=false, msg=Call to sandbox-hdp.hortonworks.com/192.168.70.128:16020 failed on connection exception: org.apache.hbase.thirdparty.io.netty.channel.ConnectTimeoutException: connection timed out: sandbox-hdp.hortonworks.com/192.168.70.128:16020, details=row 'sample-data' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=sandbox-hdp.hortonworks.com,16020,1554714831835, seqNum=-1 What is the problem here?
... View more
Labels:
- Labels:
-
Apache HBase