hi,
i'm learing and testing ignite for feasibility. during test i met the
following problem.
when i define jdbc connection url with 2 params (2 caches) as follows, i got
errors at executeQuery.
however if i defie just 1 cache, it works fine.
try {
Class.forName("org.apache.ignite.IgniteJdbcDriver");
// Connection conn =
DriverManager.getConnection("jdbc:ignite://192.168.10.57:11211/Person");
Connection conn =
DriverManager.getConnection("jdbc:ignite:cfg://cache=Person:cache=Organization@file://"
+ args[0]);
...
java.sql.SQLException: Failed to query Ignite.
at
org.apache.ignite.internal.jdbc2.JdbcStatement.executeQuery(JdbcStatement.java:115)
at
org.apache.ignite.internal.jdbc2.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:53)
at JdbcCnt.main(JdbcCnt.java:44)
...
Caused by: org.h2.jdbc.JdbcSQLException: Table "PERSON" not found; SQL
statement:
select count(*) from Person [42102-191]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:179)
...
must i define only 1 cache for jdbc connection? or is there any way to
define sevral caches?
could anyone help me on this?
-sy
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/jdbc-connection-URL-with-more-than-1-cache-tp7446.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.