<?xml version="1.0" encoding="utf-8"?>
<Data>
 <Discussion>
  <DiscussionID>514</DiscussionID>
  <CategoryID>6</CategoryID>
  <InsertUserID>239</InsertUserID>
  <UpdateUserID>239</UpdateUserID>
  <LastCommentID>1346</LastCommentID>
  <Name> issue with connect string in mondrian datasources.xml</Name>
  <Body>Automatically started from luciddb-users thread.</Body>
  <Format>Text</Format>
  <Tags></Tags>
  <CountComments>9</CountComments>
  <CountBookmarks></CountBookmarks>
  <CountViews>529</CountViews>
  <Closed>1</Closed>
  <Announce>0</Announce>
  <Sink>0</Sink>
  <DateInserted>2011-09-08 16:35:12</DateInserted>
  <DateUpdated>2011-09-08 16:35:12</DateUpdated>
  <DateLastComment>2011-12-06 21:41:43</DateLastComment>
  <LastCommentUserID>239</LastCommentUserID>
  <Score></Score>
  <Attributes></Attributes>
  <Category>luciddb-users</Category>
  <CategoryUrlCode>luciddb-users</CategoryUrlCode>
  <PermissionCategoryID>6</PermissionCategoryID>
  <DateLastViewed></DateLastViewed>
  <Dismissed></Dismissed>
  <Bookmarked></Bookmarked>
  <CountCommentWatch></CountCommentWatch>
  <LastDate>2011-12-06 21:41:43</LastDate>
  <LastUserID>239</LastUserID>
  <LastName>Matt Becker (list)</LastName>
  <InsertName>Matt Becker (list)</InsertName>
  <InsertPhoto></InsertPhoto>
</Discussion>
 <CategoryID>6</CategoryID>
 <CommentData>
  <Item>
   <CommentID>1289</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Hi guys,

I'm trying to use Lucid directly with my Mondrian cube, the data is already there, i followed the guide here:

http://pub.eigenbase.org/wiki/LucidDbMondrianReplication

and i am able to connect to my database from the sqllineClient like this:

bin/sqllineClient -n LUCIDDB_ANALYTICS
select count(*) from &quot;fact_analytics&quot;;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.089 seconds)

My mondrian bare-bones install is currently functional with mysql and my OLAP cube in there. When I try to switch to Lucid, I'm using this connect string in my datasources.xml: 


&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost?user=LUCIDDB_ANALYTICS;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver;&lt;/DataSourceInfo&gt;

The driver works fine, I tested with the standalone sqlline client in debian, it can connect fine:
# sqlline -u jdbc:luciddb:http://localhost -d org.luciddb.jdbc.LucidDbClientDriver -n LUCIDDB_ANALYTICS
Connecting to jdbc:luciddb:http://localhost
- Virtual JDBC-Driver successfully registered
- Couldn't load HSQL-Driver, caching deactivated
- VJdbc-URL: servlet:http://localhost:8034/vjdbc,FarragoDBMS
- VJdbc in Servlet-Mode, using URL http://localhost:8034/vjdbc
- Connecting to datasource FarragoDBMS
Connected to: LucidDB (version 0.9.3)
Driver: LucidDbJdbcDriver (version 0.9)
Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ
sqlline version 1.0.2 by Marc Prud'hommeaux
0: jdbc:luciddb:http://localhost&gt; select count(*) from &quot;fact_analytics&quot; ;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.07 seconds)
0: jdbc:luciddb:http://localhost&gt;



However, from my mondrian install, the connect string above fails.

Here's my current (working) mysql connect string for datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:mysql://localhost/analytics?user=root&amp;amp;password=password;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.mysql.jdbc.Driver;&lt;/DataSourceInfo&gt;



If you can give me some feedback on what's wrong with my luciddb connect string that would be great.
I can provide more details as well.

thanks,

Matt</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-08 16:35:12</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1291</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>129</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Perhaps you could include the error message you are seeing?

I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.

- dan

From: Matt Becker [mailto:mattbecker3240@yahoo.com]
Sent: Thursday, September 08, 2011 4:34 PM
To: luciddb-users@lists.sourceforge.net
Subject: [luciddb-users] issue with connect string in mondrian datasources.xml

Hi guys,

I'm trying to use Lucid directly with my Mondrian cube, the data is already there, i followed the guide here:

http://pub.eigenbase.org/wiki/LucidDbMondrianReplication

and i am able to connect to my database from the sqllineClient like this:

bin/sqllineClient -n LUCIDDB_ANALYTICS
select count(*) from &quot;fact_analytics&quot;;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.089 seconds)

My mondrian bare-bones install is currently functional with mysql and my OLAP cube in there. When I try to switch to Lucid, I'm using this connect string in my datasources.xml:

&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost?user=LUCIDDB_ANALYTICS;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver;&lt;/DataSourceInfo&gt;

The driver works fine, I tested with the standalone sqlline client in debian, it can connect fine:
# sqlline -u jdbc:luciddb:http://localhost -d org.luciddb.jdbc.LucidDbClientDriver -n LUCIDDB_ANALYTICS
Connecting to jdbc:luciddb:http://localhost
- Virtual JDBC-Driver successfully registered
- Couldn't load HSQL-Driver, caching deactivated
- VJdbc-URL: servlet:http://localhost:8034/vjdbc,FarragoDBMS
- VJdbc in Servlet-Mode, using URL http://localhost:8034/vjdbc
- Connecting to datasource FarragoDBMS
Connected to: LucidDB (version 0.9.3)
Driver: LucidDbJdbcDriver (version 0.9)
Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ
sqlline version 1.0.2 by Marc Prud'hommeaux
0: jdbc:luciddb:http://localhost&gt; select count(*) from &quot;fact_analytics&quot; ;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.07 seconds)
0: jdbc:luciddb:http://localhost&gt;


However, from my mondrian install, the connect string above fails.

Here's my current (working) mysql connect string for datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:mysql://localhost/analytics?user=root&amp;amp;password=password;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.mysql.jdbc.Driver;&lt;/DataSourceInfo&gt;

If you can give me some feedback on what's wrong with my luciddb connect string that would be great.
I can provide more details as well.

thanks,

Matt


</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-08 17:05:57</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>dan</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1290</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>108</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>
&gt; I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.
I agree with Dan - it's likely a driver/URL mismatch which was incorrectly on

&gt;  http://pub.eigenbase.org/wiki/LucidDbMondrianReplication

I've updated that Wiki article to include the new JDBC Driver name and URL.  Sorry for the issue with the old driver information still lingering on that page

JDBC driver class: org.luciddb.jdbc.LucidDbClientDrive
JDBC URL: jdbc:luciddb:http://localhost

Nick


</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-08 17:39:45</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>nagoodman</InsertName>
   <InsertPhoto>userpics/POIPKHZMY6BR.jpg</InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1293</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Hi guys,

i changed that, still no dice.. it's saying the driver can't be found: 

The Mondrian XML: No suitable driver found for jdbc:luciddb://localhost

in my xml connection.

Here's my new connection info in my /usr/local/tomcat/webapps/mondrian/WEB-INF/datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost;JdbcUser='LUCIDDB_ANALYTICS';Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=org.luciddb.jdbc.LucidDbClientDriver;&lt;/DataSourceInfo&gt;

I've definitely got the drivers copied to driver locations:
/usr/local/tomcat/webapps/mondrian/WEB-INF/lib/LucidDbClient.jar
/usr/share/java/LucidDbClient.jar

anyone have a sample connection string that works with the barebones mondrian install, as above?

thanks,

Matt






________________________________




I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.I agree with Dan - it's likely a driver/URL mismatch which was incorrectly on

 http://pub.eigenbase.org/wiki/LucidDbMondrianReplication
I've updated that Wiki article to include the new JDBC Driver name and URL.  Sorry for the issue with the old driver information still lingering on that page

JDBC driver class: org.luciddb.jdbc.LucidDbClientDrive
JDBC URL: jdbc:luciddb:http://localhost

Nick</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:12:49</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1296</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>129</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>I think it should be jdbc:luciddb:http://localhost

From: Matt Becker [mailto:mattbecker3240@yahoo.com]
Sent: Monday, September 12, 2011 12:12 PM
To: Mailing list for users of LucidDB
Subject: Re: [luciddb-users] issue with connect string in mondrian datasources.xml

Hi guys,

i changed that, still no dice.. it's saying the driver can't be found:

The Mondrian XML: No suitable driver found for jdbc:luciddb://localhost

in my xml connection.

Here's my new connection info in my /usr/local/tomcat/webapps/mondrian/WEB-INF/datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost;JdbcUser='LUCIDDB_ANALYTICS';Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=org.luciddb.jdbc.LucidDbClientDriver;&lt;/DataSourceInfo&gt;

I've definitely got the drivers copied to driver locations:
/usr/local/tomcat/webapps/mondrian/WEB-INF/lib/LucidDbClient.jar
/usr/share/java/LucidDbClient.jar

anyone

 have a sample connection string that works with the barebones mondrian install, as above?

thanks,

Matt



________________________________


I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.
I agree with Dan - it's likely a driver/URL mismatch which was incorrectly on

 http://pub.eigenbase.org/wiki/LucidDbMondrianReplication
I've updated that Wiki article to include the new JDBC Driver name and URL.  Sorry for the issue with the old driver information still lingering on that page

JDBC driver class: org.luciddb.jdbc.LucidDbClientDrive
JDBC URL: jdbc:luciddb:http://localhost

Nick



</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:42:07</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>dan</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1294</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Hi Nick,

thanks, that did it! I overlooked that http somehow.

thanks again,

Matt

The Mondrian XML: No suitable driver found for jdbc:luciddb://localhostMatt, the URL that Dan and I sent over looked like this:

jdbc:luciddb:http://localhost
NOT
jdbc:luciddb://localhost

Can you please try to use the correct URL format and let us know if that works?  The rest of your Mondrian setup looks ok at first glance.

Nick
</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:44:05</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1295</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>108</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>
On Sep 12, 2011, at 9:12 AM, Matt Becker wrote:

&gt; The Mondrian XML: No suitable driver found for jdbc:luciddb://localhost
Matt, the URL that Dan and I sent over looked like this:

jdbc:luciddb:http://localhost
NOT
jdbc:luciddb://localhost

Can you please try to use the correct URL format and let us know if that works?  The rest of your Mondrian setup looks ok at first glance.

Nick</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:59:32</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>nagoodman</InsertName>
   <InsertPhoto>userpics/POIPKHZMY6BR.jpg</InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1335</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>hi guys,

I did this http://pub.eigenbase.org/wiki/LucidDbMondrianReplication
and it's working fine with my data source now, thanks to you guys.

i'm trying to figure out how to create a dump file and import (update) an existing luciddb db that is my mondrian cube. 
Is there a simple procedure that I can follow to create a dump file? What format should my file be in and how should the import process work? 


thanks,

Matt</Body>
   <Format>Text</Format>
   <DateInserted>2011-10-14 21:31:25</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1346</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>hi guys,

i have a question about importing flat files.
I've got this set up:

file:  /var/db/analytics_olap/current/analytics.csv 


I created a foreign server:

CREATE OR REPLACE SERVER file_load
FOREIGN DATA WRAPPER SYS_FILE_WRAPPER
OPTIONS (
DIRECTORY '/var/db/analytics_olap/current',
FILE_EXTENSION 'csv',
CONTROL_FILE_EXTENSION 'bcp',
FIELD_DELIMITER ',',
LINE_DELIMITER '\n',
QUOTE_CHAR '&quot;',
WITH_HEADER 'YES')

0: jdbc:luciddb:http://localhost&gt; CREATE OR REPLACE SERVER file_load
. . . . . . . . . . . . . . . . &gt; FOREIGN DATA WRAPPER SYS_FILE_WRAPPER
. . . . . . . . . . . . . . . . &gt; OPTIONS (
. . . . . . . . . . . . . . . . &gt; DIRECTORY '/var/db/analytics_olap/current',
. . . . . . . . . . . . . . . . &gt; FILE_EXTENSION 'csv',
. . . . . . . . . . . . . . . . &gt; CONTROL_FILE_EXTENSION 'bcp',
. . . . . . . . . . . . . . . . &gt; FIELD_DELIMITER ',',
. . . . . . . . . . . . . . . . &gt; LINE_DELIMITER '\n',
. . . . . . . . . . . . . . . . &gt; QUOTE_CHAR '&quot;',
. . . . . . . . . . . . . . . . &gt; WITH_HEADER 'YES')
. . . . . . . . . . . . . . . . &gt; java.lang.NullPointerException
No rows affected (0.455 seconds)
0: jdbc:luciddb:http://localhost&gt; Closing: de.simplicit.vjdbc.VirtualConnection



I created a foreign schema and a foreign table:
Create or REPLACE Schema FILE_STAGING;
CREATE OR REPLACE FOREIGN TABLE FILE_STAGING.analytics (
id integer,
load_id integer )
SERVER file_load
OPTIONS (filename '/var/db/analytics_olap/current/analytics.csv');
0: jdbc:luciddb:http://localhost&gt; Create or REPLACE Schema FILE_STAGING;
No rows affected (0.165 seconds)
0: jdbc:luciddb:http://localhost&gt; CREATE OR REPLACE FOREIGN TABLE FILE_STAGING.analytics (
. . . . . . . . . . . . . . . . &gt; id integer,
. . . . . . . . . . . . . . . . &gt; load_id integer )
. . . . . . . . . . . . . . . . &gt; SERVER file_load
. . . . . . . . . . . . . . . . &gt; OPTIONS (filename '/var/db/analytics_olap/current/analytics.csv');
No rows affected (0.444 seconds)


I then try to select from FILE_STAGING.analytics:

select * from &quot;FILE_STAGING&quot;.&quot;analytics&quot;;
Error: From line 1, column 15 to line 1, column 31: Table 'FILE_STAGING'.'analytics' not found (state=,code=0)

anything i'm missing?

version of luciddb is 0.9.3

thanks,

Matt</Body>
   <Format>Text</Format>
   <DateInserted>2011-12-06 21:41:43</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
</CommentData>
 <Comments>
  <Item>
   <CommentID>1289</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Hi guys,

I'm trying to use Lucid directly with my Mondrian cube, the data is already there, i followed the guide here:

http://pub.eigenbase.org/wiki/LucidDbMondrianReplication

and i am able to connect to my database from the sqllineClient like this:

bin/sqllineClient -n LUCIDDB_ANALYTICS
select count(*) from &quot;fact_analytics&quot;;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.089 seconds)

My mondrian bare-bones install is currently functional with mysql and my OLAP cube in there. When I try to switch to Lucid, I'm using this connect string in my datasources.xml: 


&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost?user=LUCIDDB_ANALYTICS;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver;&lt;/DataSourceInfo&gt;

The driver works fine, I tested with the standalone sqlline client in debian, it can connect fine:
# sqlline -u jdbc:luciddb:http://localhost -d org.luciddb.jdbc.LucidDbClientDriver -n LUCIDDB_ANALYTICS
Connecting to jdbc:luciddb:http://localhost
- Virtual JDBC-Driver successfully registered
- Couldn't load HSQL-Driver, caching deactivated
- VJdbc-URL: servlet:http://localhost:8034/vjdbc,FarragoDBMS
- VJdbc in Servlet-Mode, using URL http://localhost:8034/vjdbc
- Connecting to datasource FarragoDBMS
Connected to: LucidDB (version 0.9.3)
Driver: LucidDbJdbcDriver (version 0.9)
Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ
sqlline version 1.0.2 by Marc Prud'hommeaux
0: jdbc:luciddb:http://localhost&gt; select count(*) from &quot;fact_analytics&quot; ;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.07 seconds)
0: jdbc:luciddb:http://localhost&gt;



However, from my mondrian install, the connect string above fails.

Here's my current (working) mysql connect string for datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:mysql://localhost/analytics?user=root&amp;amp;password=password;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.mysql.jdbc.Driver;&lt;/DataSourceInfo&gt;



If you can give me some feedback on what's wrong with my luciddb connect string that would be great.
I can provide more details as well.

thanks,

Matt</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-08 16:35:12</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1291</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>129</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Perhaps you could include the error message you are seeing?

I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.

- dan

From: Matt Becker [mailto:mattbecker3240@yahoo.com]
Sent: Thursday, September 08, 2011 4:34 PM
To: luciddb-users@lists.sourceforge.net
Subject: [luciddb-users] issue with connect string in mondrian datasources.xml

Hi guys,

I'm trying to use Lucid directly with my Mondrian cube, the data is already there, i followed the guide here:

http://pub.eigenbase.org/wiki/LucidDbMondrianReplication

and i am able to connect to my database from the sqllineClient like this:

bin/sqllineClient -n LUCIDDB_ANALYTICS
select count(*) from &quot;fact_analytics&quot;;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.089 seconds)

My mondrian bare-bones install is currently functional with mysql and my OLAP cube in there. When I try to switch to Lucid, I'm using this connect string in my datasources.xml:

&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost?user=LUCIDDB_ANALYTICS;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver;&lt;/DataSourceInfo&gt;

The driver works fine, I tested with the standalone sqlline client in debian, it can connect fine:
# sqlline -u jdbc:luciddb:http://localhost -d org.luciddb.jdbc.LucidDbClientDriver -n LUCIDDB_ANALYTICS
Connecting to jdbc:luciddb:http://localhost
- Virtual JDBC-Driver successfully registered
- Couldn't load HSQL-Driver, caching deactivated
- VJdbc-URL: servlet:http://localhost:8034/vjdbc,FarragoDBMS
- VJdbc in Servlet-Mode, using URL http://localhost:8034/vjdbc
- Connecting to datasource FarragoDBMS
Connected to: LucidDB (version 0.9.3)
Driver: LucidDbJdbcDriver (version 0.9)
Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ
sqlline version 1.0.2 by Marc Prud'hommeaux
0: jdbc:luciddb:http://localhost&gt; select count(*) from &quot;fact_analytics&quot; ;
+---------+
| EXPR$0  |
+---------+
| 18219   |
+---------+
1 row selected (0.07 seconds)
0: jdbc:luciddb:http://localhost&gt;


However, from my mondrian install, the connect string above fails.

Here's my current (working) mysql connect string for datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:mysql://localhost/analytics?user=root&amp;amp;password=password;Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=com.mysql.jdbc.Driver;&lt;/DataSourceInfo&gt;

If you can give me some feedback on what's wrong with my luciddb connect string that would be great.
I can provide more details as well.

thanks,

Matt


</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-08 17:05:57</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>dan</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1290</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>108</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>
&gt; I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.
I agree with Dan - it's likely a driver/URL mismatch which was incorrectly on

&gt;  http://pub.eigenbase.org/wiki/LucidDbMondrianReplication

I've updated that Wiki article to include the new JDBC Driver name and URL.  Sorry for the issue with the old driver information still lingering on that page

JDBC driver class: org.luciddb.jdbc.LucidDbClientDrive
JDBC URL: jdbc:luciddb:http://localhost

Nick


</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-08 17:39:45</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>nagoodman</InsertName>
   <InsertPhoto>userpics/POIPKHZMY6BR.jpg</InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1293</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Hi guys,

i changed that, still no dice.. it's saying the driver can't be found: 

The Mondrian XML: No suitable driver found for jdbc:luciddb://localhost

in my xml connection.

Here's my new connection info in my /usr/local/tomcat/webapps/mondrian/WEB-INF/datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost;JdbcUser='LUCIDDB_ANALYTICS';Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=org.luciddb.jdbc.LucidDbClientDriver;&lt;/DataSourceInfo&gt;

I've definitely got the drivers copied to driver locations:
/usr/local/tomcat/webapps/mondrian/WEB-INF/lib/LucidDbClient.jar
/usr/share/java/LucidDbClient.jar

anyone have a sample connection string that works with the barebones mondrian install, as above?

thanks,

Matt






________________________________




I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.I agree with Dan - it's likely a driver/URL mismatch which was incorrectly on

 http://pub.eigenbase.org/wiki/LucidDbMondrianReplication
I've updated that Wiki article to include the new JDBC Driver name and URL.  Sorry for the issue with the old driver information still lingering on that page

JDBC driver class: org.luciddb.jdbc.LucidDbClientDrive
JDBC URL: jdbc:luciddb:http://localhost

Nick</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:12:49</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1296</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>129</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>I think it should be jdbc:luciddb:http://localhost

From: Matt Becker [mailto:mattbecker3240@yahoo.com]
Sent: Monday, September 12, 2011 12:12 PM
To: Mailing list for users of LucidDB
Subject: Re: [luciddb-users] issue with connect string in mondrian datasources.xml

Hi guys,

i changed that, still no dice.. it's saying the driver can't be found:

The Mondrian XML: No suitable driver found for jdbc:luciddb://localhost

in my xml connection.

Here's my new connection info in my /usr/local/tomcat/webapps/mondrian/WEB-INF/datasources.xml:
&lt;DataSourceInfo&gt;Provider=mondrian;Jdbc=jdbc:luciddb://localhost;JdbcUser='LUCIDDB_ANALYTICS';Catalog=/WEB-INF/queries/analytics_schema.xml;JdbcDrivers=org.luciddb.jdbc.LucidDbClientDriver;&lt;/DataSourceInfo&gt;

I've definitely got the drivers copied to driver locations:
/usr/local/tomcat/webapps/mondrian/WEB-INF/lib/LucidDbClient.jar
/usr/share/java/LucidDbClient.jar

anyone

 have a sample connection string that works with the barebones mondrian install, as above?

thanks,

Matt



________________________________


I could be mistaken but I think JdbcDrivers=com.lucidera.jdbc.LucidDbRmiDriver should be org.luciddb.jdbc.LucidDbClientDriver.
I agree with Dan - it's likely a driver/URL mismatch which was incorrectly on

 http://pub.eigenbase.org/wiki/LucidDbMondrianReplication
I've updated that Wiki article to include the new JDBC Driver name and URL.  Sorry for the issue with the old driver information still lingering on that page

JDBC driver class: org.luciddb.jdbc.LucidDbClientDrive
JDBC URL: jdbc:luciddb:http://localhost

Nick



</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:42:07</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>dan</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1294</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>Hi Nick,

thanks, that did it! I overlooked that http somehow.

thanks again,

Matt

The Mondrian XML: No suitable driver found for jdbc:luciddb://localhostMatt, the URL that Dan and I sent over looked like this:

jdbc:luciddb:http://localhost
NOT
jdbc:luciddb://localhost

Can you please try to use the correct URL format and let us know if that works?  The rest of your Mondrian setup looks ok at first glance.

Nick
</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:44:05</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1295</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>108</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>
On Sep 12, 2011, at 9:12 AM, Matt Becker wrote:

&gt; The Mondrian XML: No suitable driver found for jdbc:luciddb://localhost
Matt, the URL that Dan and I sent over looked like this:

jdbc:luciddb:http://localhost
NOT
jdbc:luciddb://localhost

Can you please try to use the correct URL format and let us know if that works?  The rest of your Mondrian setup looks ok at first glance.

Nick</Body>
   <Format>Text</Format>
   <DateInserted>2011-09-12 16:59:32</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>nagoodman</InsertName>
   <InsertPhoto>userpics/POIPKHZMY6BR.jpg</InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1335</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>hi guys,

I did this http://pub.eigenbase.org/wiki/LucidDbMondrianReplication
and it's working fine with my data source now, thanks to you guys.

i'm trying to figure out how to create a dump file and import (update) an existing luciddb db that is my mondrian cube. 
Is there a simple procedure that I can follow to create a dump file? What format should my file be in and how should the import process work? 


thanks,

Matt</Body>
   <Format>Text</Format>
   <DateInserted>2011-10-14 21:31:25</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
  <Item>
   <CommentID>1346</CommentID>
   <DiscussionID>514</DiscussionID>
   <InsertUserID>239</InsertUserID>
   <UpdateUserID></UpdateUserID>
   <DeleteUserID></DeleteUserID>
   <Body>hi guys,

i have a question about importing flat files.
I've got this set up:

file:  /var/db/analytics_olap/current/analytics.csv 


I created a foreign server:

CREATE OR REPLACE SERVER file_load
FOREIGN DATA WRAPPER SYS_FILE_WRAPPER
OPTIONS (
DIRECTORY '/var/db/analytics_olap/current',
FILE_EXTENSION 'csv',
CONTROL_FILE_EXTENSION 'bcp',
FIELD_DELIMITER ',',
LINE_DELIMITER '\n',
QUOTE_CHAR '&quot;',
WITH_HEADER 'YES')

0: jdbc:luciddb:http://localhost&gt; CREATE OR REPLACE SERVER file_load
. . . . . . . . . . . . . . . . &gt; FOREIGN DATA WRAPPER SYS_FILE_WRAPPER
. . . . . . . . . . . . . . . . &gt; OPTIONS (
. . . . . . . . . . . . . . . . &gt; DIRECTORY '/var/db/analytics_olap/current',
. . . . . . . . . . . . . . . . &gt; FILE_EXTENSION 'csv',
. . . . . . . . . . . . . . . . &gt; CONTROL_FILE_EXTENSION 'bcp',
. . . . . . . . . . . . . . . . &gt; FIELD_DELIMITER ',',
. . . . . . . . . . . . . . . . &gt; LINE_DELIMITER '\n',
. . . . . . . . . . . . . . . . &gt; QUOTE_CHAR '&quot;',
. . . . . . . . . . . . . . . . &gt; WITH_HEADER 'YES')
. . . . . . . . . . . . . . . . &gt; java.lang.NullPointerException
No rows affected (0.455 seconds)
0: jdbc:luciddb:http://localhost&gt; Closing: de.simplicit.vjdbc.VirtualConnection



I created a foreign schema and a foreign table:
Create or REPLACE Schema FILE_STAGING;
CREATE OR REPLACE FOREIGN TABLE FILE_STAGING.analytics (
id integer,
load_id integer )
SERVER file_load
OPTIONS (filename '/var/db/analytics_olap/current/analytics.csv');
0: jdbc:luciddb:http://localhost&gt; Create or REPLACE Schema FILE_STAGING;
No rows affected (0.165 seconds)
0: jdbc:luciddb:http://localhost&gt; CREATE OR REPLACE FOREIGN TABLE FILE_STAGING.analytics (
. . . . . . . . . . . . . . . . &gt; id integer,
. . . . . . . . . . . . . . . . &gt; load_id integer )
. . . . . . . . . . . . . . . . &gt; SERVER file_load
. . . . . . . . . . . . . . . . &gt; OPTIONS (filename '/var/db/analytics_olap/current/analytics.csv');
No rows affected (0.444 seconds)


I then try to select from FILE_STAGING.analytics:

select * from &quot;FILE_STAGING&quot;.&quot;analytics&quot;;
Error: From line 1, column 15 to line 1, column 31: Table 'FILE_STAGING'.'analytics' not found (state=,code=0)

anything i'm missing?

version of luciddb is 0.9.3

thanks,

Matt</Body>
   <Format>Text</Format>
   <DateInserted>2011-12-06 21:41:43</DateInserted>
   <DateDeleted></DateDeleted>
   <DateUpdated></DateUpdated>
   <Flag>0</Flag>
   <Score></Score>
   <Attributes></Attributes>
   <InsertName>Matt Becker (list)</InsertName>
   <InsertPhoto></InsertPhoto>
   <UpdateName></UpdateName>
   <DeleteName></DeleteName>
   <Deleted>1</Deleted>
</Item>
</Comments>
</Data>
