sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Utkarsh Sengar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-2368) sqoop-1.4.6 throws a JsonFactory error with hadoop 1.0.0
Date Thu, 21 May 2015 17:39:17 GMT
Utkarsh Sengar created SQOOP-2368:
-------------------------------------

             Summary: sqoop-1.4.6 throws a JsonFactory error with hadoop 1.0.0
                 Key: SQOOP-2368
                 URL: https://issues.apache.org/jira/browse/SQOOP-2368
             Project: Sqoop
          Issue Type: Bug
    Affects Versions: 1.4.6
         Environment: macosx, java8
            Reporter: Utkarsh Sengar


I have sqoop-1.4.6.bin__hadoop-1.0.0 configured with hadoop-1.0.0.

When I run this command (export as avro, I get this exception), my guess is, the jackson library
for hadoop 1.0.0 has a conflict with sqoop 1.4.6.

    $SQOOP_HOME/bin/sqoop import \
      --username ... --password ... \
      --connect .... \
      --query "select ..... \
      --target-dir data/ \
      --outdir data/out \
      --as-avrodatafile -m 1

Tried replacing jackson jars in hadoop with sqoop's jackson jars and vice versa. But get the
same error.

Exception in thread "main" java.lang.NoSuchMethodError: org.codehaus.jackson.JsonFactory.enable(Lorg/codehaus/jackson/JsonParser$Feature;)Lorg/codehaus/jackson/JsonFactory;
	at org.apache.avro.Schema.<clinit>(Schema.java:86)
	at org.apache.sqoop.orm.AvroSchemaGenerator.toAvroSchema(AvroSchemaGenerator.java:98)
	at org.apache.sqoop.orm.AvroSchemaGenerator.generate(AvroSchemaGenerator.java:68)
	at org.apache.sqoop.mapreduce.DataDrivenImportJob.generateAvroSchema(DataDrivenImportJob.java:133)
	at org.apache.sqoop.mapreduce.DataDrivenImportJob.configureMapper(DataDrivenImportJob.java:90)
	at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:260)
	at org.apache.sqoop.manager.SqlManager.importQuery(SqlManager.java:729)
	at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:499)
	at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
	at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
	at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
	at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
	at org.apache.sqoop.Sqoop.main(Sqoop.java:236)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message