Charm Needed: Solandra

Bug #808255 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
New
Low
Unassigned

Bug Description

Solandra is the integration of the SOLR search engine with Cassandra as backend storage.

https://github.com/tjake/Solandra

summary: - Formula Needed: Solandra
+ Charm Needed: Solandra
Changed in charm:
importance: Undecided → Low
Revision history for this message
James Page (james-page) wrote :

The majority of this charm is going to be the same as the cassandra charm so it should be fairly low-effort to implement this.

Revision history for this message
Peter Petrakis (peter-petrakis) wrote :

Tried charming this from Solandra source as it's not packaged and ran into some roadblocks.

Following the procedure for using an existing cassandra install, I'm actually working from
within a cassandra instance. I get this.

root@ppetraki-sample-cassandra-3:~/solyndra-install/Solandra# INFO 16:51:38,068 Logging initialized
Exception in thread "main" java.lang.ExceptionInInitializerError
 at solandra.SolandraServer.main(SolandraServer.java:39)
Caused by: java.lang.NullPointerException
 at java.util.Properties$LineReader.readLine(Properties.java:435)
 at java.util.Properties.load0(Properties.java:354)
 at java.util.Properties.load(Properties.java:342)
 at lucandra.CassandraUtils.<clinit>(CassandraUtils.java:102)
 ... 1 more

I'm not very familiar with java so I really don't know where to go from there. I'm using
openjdk v6 and build from source using ant as advised by the docs.

besides that, I had to modify build.xml to locate the cassandra script.
diff --git a/build.xml b/build.xml
index 6ec4f6a..cd1e1ac 100644
--- a/build.xml
+++ b/build.xml
@@ -285,7 +285,7 @@
                </copy>

- <copy overwrite="true" file="${cassandra}/bin/cassandra" tofile="${cassandra}/bin/solandra" />
+ <copy overwrite="true" file="/usr/sbin/cassandra" tofile="${cassandra}/bin/solandra" />

                <replace file="${cassandra}/bin/solandra" failOnNoReplacements="true">
                        <replacetoken>classname="org.apache.cassandra.thrift.CassandraDaemon"</replacetoken>

and built like so.

ant -Dcassandra=/usr/share/cassandra cassandra-dist

Hopefully this helps the next guy get further with this. I intend to move on to other open charm bugs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.