On Tue, Sep 29, 2009 at 4:58 PM, Jianwu Wang <jia...@sdsc.edu> wrote:

Hi there,

  When I have hadoop running (version 0.20.0, Pseudo-Distributed Mode), I
can not start my own java application. The exception complains that
'java.sql.SQLException: failed to connect to url
"jdbc:hsqldb:hsql://localhost/hsqldb". I have to stop hadoop to start my own
java application. Both my application and hadoop use hsqldb. Does anyone
know why and can help me out of this problem?  Or tell me where to look for
hadoop hsqldb connection implementation, like which kind of hsql server mode
is used in hadoop and what is the default url of hsqldb for hadoop? I looked
into org.apache.hadoop.mapred.lib.db package but didn't find any clue.

HSQL is a single threaded database built into the JDBC driver, >1 app cannot use the same database, indeed, >1 thread cannot use it as every JDBC call will block. Use a real database.

Reply via email to