sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathleen Ting <k...@cloudera.com>
Subject Fwd: [sqoop-user] Re: error occurs while import
Date Thu, 05 Jan 2012 20:18:14 GMT
Thanks Hanjie for taking the time to let us know it worked.
Cross-posting to sqoop-user@incubator.apache.org and
https://cwiki.apache.org/confluence/display/SQOOP/FAQ for future
reference.

Regards, Kathleen

---------- Forwarded message ----------
From: Hanjie <hanjie.ji@gmail.com>
Date: Wed, Jan 4, 2012 at 6:29 PM
Subject: [sqoop-user] Re: error occurs while import
To: Sqoop Users <sqoop-user@cloudera.org>


Kathleen, I got the latest code from svn, compiled it with -
Dhadoopversion=20 option. And it worked!

Thank you very much!

On Jan 4, 5:09 pm, Kathleen Ting <k...@cloudera.com> wrote:
> Hanjie - while SQOOP-384 is still unresolved, some of the issues have
> been fixed and it's possible that your issue is resolved too. To
> confirm, can you try building Sqoop with the command line property
> -Dhadoopversion=20 to see if that resolves the problem?
>
> Regards, Kathleen
>
>
>
>
>
>
>
> On Wed, Jan 4, 2012 at 5:02 PM, Hanjie <hanjie...@gmail.com> wrote:
> > Thanks, Kathleen. But I thought this issue has been fixed in 1.4.1,
> > which is the version I am using.
>
> > On Jan 4, 4:13 pm, Kathleen Ting <k...@cloudera.com> wrote:
> >> For faster response, please subscribe to
> >> incubator-sqoop-user-subscr...@apache.org.
>
> >> Hanjie - it appears that you are hittinghttps://issues.apache.org/jira/browse/SQOOP-384.
>
> >> Regards, Kathleen
>
> >> On Wed, Jan 4, 2012 at 2:20 PM, Hanjie <hanjie...@gmail.com> wrote:
> >> > I'm using Sqoop 1.4.1-incubating-SNAPSHOT and Hadoop 0.20.205
>
> >> > While I was doing an import, I got this error:
> >> > Exception in thread "main" java.lang.IncompatibleClassChangeError:
> >> > Found class org.apache.hadoop.mapreduce.JobContext, but interface was
> >> > expected
> >> >        at
> >> > org.apache.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelp
er.java:
> >> > 53)
> >> >        at
> >> > com.cloudera.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHe
lper.java:
> >> > 36)
> >> >        at
> >> > org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat.getSplits(DataDrivenD
BInputFormat.java:
> >> > 121)
> >> >        at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:
> >> > 999)
> >> >        at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:
> >> > 1016)
> >> >        at org.apache.hadoop.mapred.JobClient.access$700(JobClient.java:172)
> >> >        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:934)
> >> >        at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:887)
> >> >        at java.security.AccessController.doPrivileged(Native Method)
> >> >        at javax.security.auth.Subject.doAs(Subject.java:396)
> >> >        at
> >> > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.j
ava:
> >> > 1059)
> >> >        at
> >> > org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:
> >> > 887)
> >> >        at org.apache.hadoop.mapreduce.Job.submit(Job.java:465)
> >> >        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:495)
> >> >        at org.apache.sqoop.mapreduce.ImportJobBase.runJob(ImportJobBase.java:
> >> > 119)
> >> >        at
> >> > org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:
> >> > 179)
> >> >        at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:
> >> > 413)
> >> >        at
> >> > org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:
> >> > 97)
> >> >        at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:380)
> >> >        at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:453)
> >> >        at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
> >> >        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> >> >        at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
> >> >        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
> >> >        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
> >> >        at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
> >> >        at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
>
> >> > Any ideas?
>
> >> > Thanks,
> >> > Hanjie
>
> >> > --
> >> > NOTE: The mailing list sqoop-u...@cloudera.org is deprecated in favor of
Apache Sqoop mailing list sqoop-u...@incubator.apache.org. Please subscribe to it by sending
an email to incubator-sqoop-user-subscr...@apache.org.
>
> > --
> > NOTE: The mailing list sqoop-u...@cloudera.org is deprecated in favor of Apache
Sqoop mailing list sqoop-u...@incubator.apache.org. Please subscribe to it by sending an email
to incubator-sqoop-user-subscr...@apache.org.

--
NOTE: The mailing list sqoop-user@cloudera.org is deprecated in favor
of Apache Sqoop mailing list sqoop-user@incubator.apache.org. Please
subscribe to it by sending an email to
incubator-sqoop-user-subscribe@apache.org.

Mime
View raw message