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

Hive: java.net.ConnectException: Connection refused

Hi all,
I have a local installation of hadoop, hive, spark and so on and tried to use the Open Studio for BD (version: 6.1.1.) to process some example data using hive.
1. hadoop is running (its still on version 1.2.1)
2. hive metastore and hive is running
I can connect to hive using the "tHiveConnection" component and I can create and drop tables in hive using "tHiveRow" component but I CANNOT process data using the "tELTHiveOutput" component:

There is no map reduce job created, however I can process the data when I'm dircetly in the hive-shell.
According to my understanding, the main problem is:
ava.lang.RuntimeException: java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on connection exception: java.net.ConnectException: Connection refused
Any idea which parameters to set?!?!
Thanks for any hint.
Cheers
0683p000009MCqG.png
Labels (3)
5 Replies
Anonymous
Not applicable
Author

Hello,
Which Hive mode do you use ? Standalone or embedded ?
Rémy.
Anonymous
Not applicable
Author

Hi,
I'm using the embedded mode.
My testenvironment ist a pseudo distributed cluster on my local machine.
Thanks for your reply.
Cheers
Gerd
Anonymous
Not applicable
Author

Hi,
Ok. Can you please make sure that you started the hive-metastore service on your local machine ? Also, did you start the hive-server2 service ? It would allow to try using the standalone mode which is actually recommanded.
Also, the error you have would mean that the namenode is not started. Can you access the namenode web page browsing http://127.0.0.1:50070 ?
Rémy.
Anonymous
Not applicable
Author

Hi,
I tried to check this already be myself:
1. metastore server is running: bin/hive --service metastore
Starting Hive Metastore Server
2. the hiveserver2 is started and running: bin/hive --service hiveserver2
3. this means I assume, that my hive installation is running, because I can work with hive using the console. An example in the hive console like SELECT COUNT(*) from tweets; creates a map reduce job like expected:

4. I can create a connection to my local hive installation and create the table with talend:

This is working good however, the connection mode is embedded:

Using the same connection(!!!), I create another hive table and try to fill it with some data using the tELTHiveOutput_1 component. which fails with the message:

Total MapReduce jobs = 2
Launching Job 1 out of 2
Number of reduce tasks is set to 0 since there's no reduce operator
java.net.ConnectException: Call to gerdmac/192.168.2.101:50300 failed on connection exception: java.net.ConnectException: Connection refused

Namenode for sure is running:

I'm lost.
Cheers
Gerd
Anonymous
Not applicable
Author

Hi,
I tried to check this already be myself:
1. metastore server is running: bin/hive --service metastore
Starting Hive Metastore Server
2. the hiveserver2 is started and running: bin/hive --service hiveserver2
3. this means I assume, that my hive installation is running, because I can work with hive using the console. An example in the hive console like SELECT COUNT(*) from tweets; creates a map reduce job like expected:
0683p000009MCo0.png4. I can create a connection to my local hive installation and create the table with talend:
0683p000009MCrX.pngThis is working good however, the connection mode is embedded:
Using the same connection(!!!), I create another hive table and try to fill it with some data using the tELTHiveOutput_1 component. which fails with the message:
Total MapReduce jobs = 2
Launching Job 1 out of 2
Number of reduce tasks is set to 0 since there's no reduce operator
java.net.ConnectException: Call to gerdmac/192.168.2.101:50300 failed on connection exception: java.net.ConnectException: Connection refused

Namenode for sure is running:
0683p000009MCnH.pngI'm lost.
Gerd