You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2012/06/25 10:53:43 UTC

[jira] [Updated] (SQOOP-508) Sqoop metastore cannot be started due to missing hsqldb jar file

     [ https://issues.apache.org/jira/browse/SQOOP-508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheolsoo Park updated SQOOP-508:
--------------------------------

    Description: 
This is a packing issue. Since a hsqldb jar is not packed in the distribution tarball, sqoop-metastore fails with the following error:

{code}
Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
	at org.apache.sqoop.metastore.hsqldb.HsqldbMetaStore.start(HsqldbMetaStore.java:111)
	at org.apache.sqoop.tool.MetastoreTool.run(MetastoreTool.java:57)
	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)
	at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
Caused by: java.lang.ClassNotFoundException: org.hsqldb.Server
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 9 more
{code}

To reproduce the issue, please do the following:

1) checkout sqoop trunk
2) ant clean tar
3) cd build/sqoop-1.4.2-incubating-SNAPSHOT.bin__hadoop-0.23
4) ./bin/sqoop metastore

This may be not an issue if a hsqldb jar is already installed by another project and therefore exists in classpath. For example, CDH3 installs a hsqldb jar in /usr/lib/hadoop/lib. However, it is not always true in all distributions (e.g. CDH4).

The fix seems to include a hsqldb jar in the distribution tarball.

There is also a bigtop jira [BIGTOP-639|https://issues.apache.org/jira/browse/BIGTOP-639] regarding this issue.

  was:
This is a packing issue. Since a hsqldb jar is not packed in the distribution tarball, sqoop-metastore fails with the following error:

{code}
12/06/25 01:15:46 WARN hsqldb.HsqldbMetaStore: The location for metastore data has not been explicitly set. Placing shared metastore files in /home/cheolsoo/.sqoop/shared-metastore.db
Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
	at org.apache.sqoop.metastore.hsqldb.HsqldbMetaStore.start(HsqldbMetaStore.java:111)
{code}

To reproduce the issue, please do the following:

1) checkout sqoop trunk
2) ant clean tar
3) cd build/sqoop-1.4.2-incubating-SNAPSHOT.bin__hadoop-0.23
4) ./bin/sqoop metastore

This may be not an issue if a hsqldb jar is already installed by another project and therefore exists in classpath. For example, CDH3 installs a hsqldb jar in /usr/lib/hadoop/lib. However, it is not always true in all distributions (e.g. CDH4).

The fix seems to include a hsqldb jar in the distribution tarball.

There is also a bigtop jira [BIGTOP-639|https://issues.apache.org/jira/browse/BIGTOP-639] regarding this issue.

    
> Sqoop metastore cannot be started due to missing hsqldb jar file
> ----------------------------------------------------------------
>
>                 Key: SQOOP-508
>                 URL: https://issues.apache.org/jira/browse/SQOOP-508
>             Project: Sqoop
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.4.1-incubating
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> This is a packing issue. Since a hsqldb jar is not packed in the distribution tarball, sqoop-metastore fails with the following error:
> {code}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
> 	at org.apache.sqoop.metastore.hsqldb.HsqldbMetaStore.start(HsqldbMetaStore.java:111)
> 	at org.apache.sqoop.tool.MetastoreTool.run(MetastoreTool.java:57)
> 	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)
> 	at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
> Caused by: java.lang.ClassNotFoundException: org.hsqldb.Server
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 	... 9 more
> {code}
> To reproduce the issue, please do the following:
> 1) checkout sqoop trunk
> 2) ant clean tar
> 3) cd build/sqoop-1.4.2-incubating-SNAPSHOT.bin__hadoop-0.23
> 4) ./bin/sqoop metastore
> This may be not an issue if a hsqldb jar is already installed by another project and therefore exists in classpath. For example, CDH3 installs a hsqldb jar in /usr/lib/hadoop/lib. However, it is not always true in all distributions (e.g. CDH4).
> The fix seems to include a hsqldb jar in the distribution tarball.
> There is also a bigtop jira [BIGTOP-639|https://issues.apache.org/jira/browse/BIGTOP-639] regarding this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira