Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hi
Which version? Can you ping to the hostname or IP from a command prompt?
Shong
Anonymous
Not applicable
Author

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... 0683p000009MPcz.png
Anonymous
Not applicable
Author

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.!!