Fail to install CumulusRDF

92 views
Skip to first unread message

ngo duyhoa

unread,
May 18, 2014, 4:55:13 AM5/18/14
to cumulus...@googlegroups.com

Hi All,

I have a problem with installation Cumulus in my PC.

Firstly, I tried to install CumulusRDF as follows:

  • Get latest code from the SVN.
  • Go to the root of CumulusRDF and run (e.g., via command line): mvn clean cassandra:stop cassandra:start tomcat7:run
But it always fails (see the attached photo).

I am using Ubuntu 12.04, JDK1.7.

Afterward, I used alternative method such as:

  • Install Cassandra 1.2 (it works)
  • Install Tomcat 7 (it works)
  • Download war files of CumulusRDF version .1.0.0
  • Deploy the war file by Tomcat.
  • Now, I can open the webpage for CumulusRDF as showing in the photo, but I did not see how I can upload the data. 
  • I tried with version 1.0.1, but there is an exception error (see the attached photo)
I wonder if I missed something that none of the installation method works. Please help.

Thank you.
Hoa



 

Andrea Gazzarini

unread,
May 18, 2014, 1:33:35 PM5/18/14
to cumulus...@googlegroups.com
Hi Hoa,
About your first try, your screenshout reports a connection problem ("Connection reset") while it was downloading the cassandra plugin.
I followed your same path and I'm running CumulusRDF without any problem at all. This is what I did

> svn checkout http://cumulusrdf.googlecode.com/svn/trunk/ cumulusrdf-read-only

... (downloading sources)...

> cd cumulusrdf-read-only

> mvn -DskipTests clean cassandra:stop cassandra:start tomcat7:run

(Note I skept tests just in order to have all up and running quickly, but that has no effect on the final result)

Downloading: http://onejar-maven-plugin.googlecode.com/svn/mavenrepo/org/codehaus/mojo/cassandra-maven-plugin/1.2.0-1/cassandra-maven-plugin-1.2.0-1.pom
Downloading: http://sincro.atcult.it:8537/archiva/repository/internal/org/codehaus/mojo/cassandra-maven-plugin/1.2.0-1/cassandra-maven-plugin-1.2.0-1.pom
Downloaded: http://sincro.atcult.it:8537/archiva/repository/internal/org/codehaus/mojo/cassandra-maven-plugin/1.2.0-1/cassandra-maven-plugin-1.2.0-1.pom (0 B at 0.0 KB/sec)
...

[INFO] Cassandra not running!
[INFO]
...
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Cassandra started in 4.0s
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) @ cumulusrdf >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:
resources (default-resources) @ cumulusrdf ---
...
[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) @ cumulusrdf <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ cumulusrdf ---
Downloading: http://onejar-maven-plugin.googlecode.com/svn/mavenrepo/org/apache/tomcat/embed/tomcat-embed-core/7.0.37/tomcat-embed-core-7.0.37.pom
...
[INFO] Running war on http://localhost:9090/cumulus
...

INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
May 18, 2014 7:02:08 PM org.apache.catalina.startup.
TaglibUriRule body
INFO: TLD skipped. URI: urn:com:sun:jersey:api:view is already defined
19:02:08,374 INFO  [Listener] <CRDF-00001> : Startup procedure for CumulusRDF has been initiated.
19:02:08,376 INFO  [Listener] <CRDF-00002> : Found config-file parameter : /cumulus.yaml
19:02:08,376 INFO  [Listener] <CRDF-00003> : Loading CumulusRDF configuration from classpath resource /cumulus.yaml
19:02:08,516 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: storage-layout = triple
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: storage-index-ranges = false
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: proxy-mode = true
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: rest-servlet-url = http://example.org/id/
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-hosts = localhost:9160
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-keyspace = KeyspaceCumulus
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-replication-factor = 1
19:02:08,517 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-read-consistency = ONE
19:02:08,518 DEBUG [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-write-consistency = ONE
19:02:08,518 DEBUG [Listener] <CRDF-00007> : Assigning default values to configuration attributes...
19:02:08,518 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-hosts = localhost:9160
19:02:08,518 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-replication-factor = 1
19:02:08,519 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-read-consistency = ONE
19:02:08,519 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-write-consistency = ONE
19:02:08,519 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: cassandra-keyspace = KeyspaceCumulus
19:02:08,519 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: storage-layout = triple
19:02:08,519 INFO  [Listener] <CRDF-00004> : Adding / replacing configuration attribute: storage-index-ranges = false
19:02:08,667 INFO  [CassandraHostRetryService] Downed Host Retry service started with queue size 256 and retry delay 10s
19:02:08,673 INFO  [JmxMonitor] Registering JMX me.prettyprint.cassandra.
service_CassandraRdfHector:ServiceType=hector,MonitorType=hector
19:02:10,009 INFO  [CassandraRdfHectorTriple] <CRDF-00050> : Replication factor in use: 1
19:02:10,014 INFO  [CassandraRdfHectorTriple] <CRDF-00051> : Consistency level in use: READ = ONE, WRITE = ONE
19:02:12,544 INFO  [Schema] <CRDF-00069> : SCHEMA : Class: edu.kit.aifb.cumulus.store.
Schema, Classes: [], Datatype properties: [], Object properties:[]
19:02:13,062 INFO  [
CassandraHectorCounterFactory] <CRDF-00080> : Init counter: TRIPLE_COUNTER @ value: 0
19:02:13,065 INFO  [CassandraRdfHectorTriple] <CRDF-00047> : Store is running with a pool of 5 bulk workers.
19:02:13,065 INFO  [CassandraRdfHectorTriple] <CRDF-00052> : Store open and connected to localhost:9160
edu.kit.aifb.cumulus.store.
AbstractCassandraRdfHector$StatusListener@7aa6d8d5]
19:02:13,081 INFO  [Listener] <CRDF-00009> : CumulusRDF repository has been successfully initialized.
19:02:13,081 INFO  [Listener] <CRDF-00010> : CumulusRDF open for e-business

--------------------------------------------

About your second path, same story, after trying I can confirm you that it works. The stacktrace on your screenshot is truncated so could you please send

  • the exact version of JDK you're using
  • the exact version of Tomcat you're running

So I can try to reproduce the problem (seems something related with some logging libraries)

On top of that, this is what I did:

- start cassandra (I have version 1.2.16)
- start tomcat (I dont' have at the moment your same version, I'm using 6.0.33)
- download war (version 1.0.1) and deploy to webapps folder

opening http://localhost:8080/cumulus I can see the web admin gui

--------------------------------------------

The page you're seeing after deploying the 1.0.0 war is the old web app (which is no longer there).
You can load data by using the REST interface described here https://code.google.com/p/cumulusrdf/wiki/Webapps (this is valid also for 1.0.1)

--------------------------------------------

After this (sorry for that) long email, a couple of points:

- since I see you're pretty confident with maven, if you want to give a try to a "new" CumulusRDF, which is going to be released, let me know.
- as said, we are going to release the 1.1.0 version, which contains a lot of improvements and a lot of differences, compared with the current released version. Beacuse of that, we are putting a lot of effort on the Wiki in order to simplify life to our users. However, those pages have not yet been published because they don't refers to the current version.

Kind Regards,
Andrea


--
You received this message because you are subscribed to the Google Groups "cumulusrdf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cumulusrdf-li...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ngo duyhoa

unread,
May 19, 2014, 4:57:03 AM5/19/14
to cumulus...@googlegroups.com
Hi Andrea,

Thank you for your reply.

I have reinstalled Tomcat-7.0.53, Cassandra 1.2.16  and successfully deployed CumulusRDF-1.0.1.war on Tomcat7. My JDK version is : 1.7.0_45.

I have also used the web interface to successfully upload sample data to the storage. Some simple SPARQL queries work well in the web interface as well as in CLI.

However, I cannot run SPARQL Update command to remove the uploaded data. For example, The following command does not work.

java -cp cumulusRDF.jar edu.kit.aifb.cumulus.cli.Main Remove -q 'select ?s ?p ? ?o where {?s ?p ?o .}'

On the other hand, looking at Cassabdra keyspaces, I found KeyspaceCumulus. But I cannot use this keyspace by commands: cqlsh> use KeyspaceCumulus;  or cqlsh> delete keyspace KeyspaceCumulus;

Could you please provide a small example by command line to delete data from the CumulusRDF storage?

Andreas Wagner

unread,
May 19, 2014, 6:02:11 AM5/19/14
to cumulus...@googlegroups.com
Hi guys,

thanks @ Andrea for the quick reply :)


On 05/19/2014 10:57 AM, ngo duyhoa wrote:
Hi Andrea,

Thank you for your reply.

I have reinstalled Tomcat-7.0.53, Cassandra 1.2.16  and successfully deployed CumulusRDF-1.0.1.war on Tomcat7. My JDK version is : 1.7.0_45.

I have also used the web interface to successfully upload sample data to the storage. Some simple SPARQL queries work well in the web interface as well as in CLI.

However, I cannot run SPARQL Update command to remove the uploaded data. For example, The following command does not work.

java -cp cumulusRDF.jar edu.kit.aifb.cumulus.cli.Main Remove -q 'select ?s ?p ? ?o where {?s ?p ?o .}'

In general, when you have problems - please post also your error stacktrace (i.e., the logs from catalina.out). This way, we can see the problem more clearly.

Regarding the above query: You need to use graph queries. A graph query is a query that returns an RDF graph (or a set of statements) as its result. CONSTRUCT and DESCRIBE queries are examples of these.

DESCRIBE ?s ?p ?o where {?s ?p ?o .}

should work.

Further, you can

(1) use CumulusRDF via Sesame [1]. Here, you can also delete/clear your data

(2) use CumulusRDF via WebApps [2]. Here, you can delete data, e.g., via the CRUD or SPARQL Servlet.


On the other hand, looking at Cassabdra keyspaces, I found KeyspaceCumulus. But I cannot use this keyspace by commands: cqlsh> use KeyspaceCumulus;  or cqlsh> delete keyspace KeyspaceCumulus;
To clear all data from your Cassandra installation, you can simply:

* Stop CumulusRDF and Cassandra
* On Ubuntu: rm -r /var/lib/cassandra/*
* Start Cassandra
* Start CumulusRDF



Could you please provide a small example by command line to delete data from the CumulusRDF storage?
HTH
Andreas

ngo duyhoa

unread,
May 19, 2014, 10:59:06 AM5/19/14
to cumulus...@googlegroups.com, andreas.jo...@googlemail.com
Thanks a lot for the clarification. It works perfectly.
Reply all
Reply to author
Forward
0 new messages