- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Connection refused - when loading data from MySQL to HDFS using sqoop2
- Labels:
-
Apache Hadoop
-
Cloudera Hue
-
HDFS
Created on ‎10-29-2014 05:58 PM - edited ‎09-16-2022 02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting this error.
Error: java.net.ConnectException: Call From server1.cvrunner.com/158.85.75.36 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
Created connection on linux in sqoop2 shell. THe connection passed. MySQL is up and running.
When i created a job on Hue and tried to run the job. I am getting this error.
Not sure it is connectivity to MySQL or something else
Can anybody suggest me?
Created ‎10-31-2014 09:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Abe. It worked.
There are 2 changes I did.
1. changing from localhost to actual server name
2. Giving permission to Hue user to create the files on hdfs using "hadoop fs -R -chown" command.
Created ‎10-29-2014 06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, your problem should be rectifiable more easily in Sqoop 1.99.4 (CDH 5.3.0). See https://issues.apache.org/jira/browse/SQOOP-1620 for more details.
Created ‎10-29-2014 06:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both the components are on the same server.
I am using CDH 4.7 and sqoop2.
Created ‎10-30-2014 01:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is server1.cvrunner.com your machine? If so, core-site.xml might not be configured properly. Could you try adding a property:
<property> <name>fs.defaultFS</name> <value>hdfs://server1.cvrunner.com:8020</value> </property>
Created ‎10-30-2014 06:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes...
Created ‎10-31-2014 09:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Abe. It worked.
There are 2 changes I did.
1. changing from localhost to actual server name
2. Giving permission to Hue user to create the files on hdfs using "hadoop fs -R -chown" command.
