sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sam liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-1163) Incorrect version of hsqldb jar under lib folder of sqoop-1.4.3.bin__hadoop-2.0.0-alpha.tar.gz
Date Tue, 06 Aug 2013 07:34:47 GMT
sam liu created SQOOP-1163:
------------------------------

             Summary: Incorrect version of hsqldb jar under lib folder of sqoop-1.4.3.bin__hadoop-2.0.0-alpha.tar.gz
                 Key: SQOOP-1163
                 URL: https://issues.apache.org/jira/browse/SQOOP-1163
             Project: Sqoop
          Issue Type: Bug
          Components: build
    Affects Versions: 1.4.3
         Environment: SUSE LES 11 (x86_64)
            Reporter: sam liu


In the sqoop-1.4.3.bin__hadoop-2.0.0-alpha.tar.gz, under lib folder, it's hsqldb-1.8.0.10.jar.
When I invoke sqoop import tool to transfer data from MySQL database to HDFS, it failed with
following exception. However, after replacing hsqldb-1.8.0.10.jar with hsqldb-2.0.0.jar, the
same command could execute successfully. Therefore, the version of hsqldb under lib folder
is incorrect.


bin/sqoop import --connect jdbc:mysql://hostname:3306/test --username user --password pwd
--table testtbl -m 1 --target-dir /tmp/test6
13/08/06 00:31:09 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure.
Consider using -P instead.
13/08/06 00:31:09 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
13/08/06 00:31:09 INFO tool.CodeGenTool: Beginning code generation
Exception in thread "main" java.lang.NoSuchMethodError: org/hsqldb/DatabaseURL.parseURL(Ljava/lang/String;ZZ)Lorg/hsqldb/persist/HsqlProperties;
        at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
        at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(DriverManager.java:402)
        at java.sql.DriverManager.getConnection(DriverManager.java:450)
        at org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:745)
        at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
        at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:605)
        at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:628)
        at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:235)
        at org.apache.sqoop.manager.SqlManager.getColumnTypes(SqlManager.java:219)
        at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:283)
        at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1255)
        at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1072)
        at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:82)
        at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:390)
        at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:476)
        at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message