Skip to main content
Announcements
Qlik Connect 2025! Join us in Orlando join us for 3 days of immersive learning: REGISTER TODAY

Unable to invoke an Apache Sqoop Job

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II

Unable to invoke an Apache Sqoop Job

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:18:30 AM

Problem Description

A Talend Studio, Big Data Platform Job using Sqoop to import data from a local database to HDFS, fails with the following error:

[DEBUG]: org.apache.sqoop.orm.CompilationManager - D:/talend-workspace/DEMOPROJECT/poms/jobs/process/sqoopimport_0.1/target/classpath.jar;/C:/Program%20Files%20(x86)/Talend-Studio/studio/configuration/.m2/repository/org/talend/libraries/hadoop-common-2.6.0-cdh5.10.1/6.1.0/hadoop-common-2.6.0-cdh5.10.1-6.1.0.jar;/C:/Program%20Files%20(x86)/Talend-Studio/studio/configuration/.m2/repository/org/talend/libraries/hadoop-mapreduce-client-core-2.6.0-cdh5.10.1/6.1.0/hadoop-mapreduce-client-core-2.6.0-cdh5.10.1-6.1.0.jar;;/C:/Program Files (x86)/Talend-Studio/studio/configuration/.m2/repository/org/talend/libraries/hadoop-mapreduce-client-core-2.6.0-cdh5.10.1/6.1.0/hadoop-mapreduce-client-core-2.6.0-cdh5.10.1-6.1.0.jar;/C:/Program Files (x86)/Talend-Studio/studio/configuration/.m2/repository/org/talend/libraries/sqoop-1.4.6-cdh5.10.1/6.1.0/sqoop-1.4.6-cdh5.10.1-6.1.0.jar
\tmp\sqoop-taha.iqbal\compile\6a84ceda68dc07bab6068a86b21f5af5\CLTCEN.java:7: error: package org.apache.hadoop.io does not exist
import org.apache.hadoop.io.BytesWritable;

\tmp\sqoop-taha.iqbal\compile\6a84ceda68dc07bab6068a86b21f5af5\CLTCEN.java:8: error: package org.apache.hadoop.io does not exist import org.apache.hadoop.io.Text; 

\tmp\sqoop-taha.iqbal\compile\6a84ceda68dc07bab6068a86b21f5af5\CLTCEN.java:9: error: package org.apache.hadoop.io does not exist import org.apache.hadoop.io.Writable;

 

Root Cause

Talend Studio is installed in the C:\Program Files (x86) path, so there is an empty character, and the Job can't find the correct JAR files.

 

Solution

Move Studio from C:\Program Files (x86) to another location with a path as short as possible and without any space character.