Cannot connect with hbase

One Star

Cannot connect with hbase

Hello, i would like to use the ThbaseOutput.
However, i tried it with failure.. on two diferent hadoop systems.
bigdata is the hostname of my Hadoop ubuntu computer.. So Talend can clearly see the hostname but i don't know what to do.
When i run the Talend job, it displays this error:
13/04/22 17:49:39 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=10.85.5..:2181 sessionTimeout=180000 watcher=hconnection
13/04/22 17:49:40 INFO zookeeper.ClientCnxn: Opening socket connection to server /10.85.56..:2181
13/04/22 17:49:40 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 6116@FR-L27656
13/04/22 17:49:46 INFO zookeeper.ClientCnxn: Socket connection established to 10.85.../10.85..:2181, initiating session
13/04/22 17:49:46 INFO zookeeper.ClientCnxn: Session establishment complete on server 10.85.56.10/10.85.56.10:2181, sessionid = 0x13e1737a56b001f, negotiated timeout = 40000
13/04/22 17:49:47 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 0 of 10 failed; retrying after sleep of 1000
java.net.UnknownHostException: unknown host: bigdata
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.<init>(HBaseClient.java:227)
at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1016)
at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:878)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:150)
at com.sun.proxy.$Proxy5.getProtocolVersion(Unknown Source)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:183)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:303)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:280)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:332)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:642)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:106)
at projectname.hbase_0_1.Hbase.tRowGenerator_1Process(Hbase.java:429)
at projectname.hbase_0_1.Hbase.runJobInTOS(Hbase.java:757)
at projectname.hbase_0_1.Hbase.main(Hbase.java:625)
13/04/22 17:49:48 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 1 of 10 failed; retrying after sleep of 1000
java.net.UnknownHostException: unknown host: bigdata
at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.<init>(HBaseClient.java:227)
at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1016)
at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:878)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:150)
at com.sun.proxy.$Proxy5.getProtocolVersion(Unknown Source)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:183)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:303)
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:280)

and this is the Hbase log:
2013-04-22 17:49:34,932 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socket connection from /10.83...:50508
2013-04-22 17:49:34,933 INFO org.apache.zookeeper.server.ZooKeeperServer: Client attempting to establish new session at /10.83...:50508
2013-04-22 17:49:34,935 INFO org.apache.zookeeper.server.ZooKeeperServer: Established session 0x13e1737a56b0020 with negotiated timeout 40000 for client /10.83..:50508

Thank you in advance
Highlighted
Community Manager

Re: Cannot connect with hbase

Hi
Which version? Can you ping to the hostname or IP from a command prompt?
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Cannot connect with hbase

Hello, yes i can ping it, for example, i am able to use hiveserver and see the data with Qlikview.
Secondly, i don't understand why it can see the 'bigdata' hostname here:
java.net.UnknownHostException: unknown host: bigdata
that means i can see the server.
I tried it on Talend 5.2.1, 5.2.2 and 5.3rc2... Smiley Sad
One Star

Re: Cannot connect with hbase

Hi,
For error :  java.net.UnknownHostException: unknown host 
add your destination server IP and name in hosts file located in C:\Windows\System32\drivers\etc of your system from which you are trying to access hadoop environment.
Thanks.!!

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now