Skip to content

Latest commit

 

History

History
76 lines (40 loc) · 2.22 KB

Banana_SETUP.md

File metadata and controls

76 lines (40 loc) · 2.22 KB

Initial Requirements

  1. Download Banana Lucidworks Banana: https://github.com/lucidworks/banana

  2. Create Solr Cores for tables to be viewed through the dashboard

$ bin/dsetool create_core heracles_db.error_log generateResources=true reindex=true $ bin/dsetool create_core heracles_db.error_msgs generateResources=true reindex=true

Clone Banana

Copy “banana-release” folder to DSE’s “resources” folder. Rename “banana-release” to “banana”

Path: Services/Installer: /usr/share/dse/resources No services/tarball: install_location/resources

Configure Banana

config.js

Go to DSE/resources/banana/src/config.js and make the following changes :

  1. Change “banana_index” to “banana.dashboards”,
  2. set “solr_core” to "heracles_db.error_log,heracles_db.error_msgs",

Banana Solr Index

1.Get the solrconfig.xml created for the core in step 2

dsetool get_core_config keyspace.table [current=true|false] > "Location Desired" eg: dsetool get_core_config heracles_db.error_log current = true > ~/Downloads/solrconfig.xml

2.Go to $DSE/resources/banana/resources/banana-int-solr-4.5/banana-int/conf Replace the file solrconfig.xml with the one copied in step 1 above.

Create Banana.dashboards Core

localhost should be replaced by the IP of the machine as needed.

$ curl --data-binary @solrconfig.xml -H ‘Content-type:text/xml; charset=utf-8’ “http://localhost:8983/solr/resource/banana.dashboards/solrconfig.xml”

$ curl --data-binary @schema.xml -H ‘Content-type:text/xml; charset=utf-8’ “http://localhost:8983/solr/resource/banana.dashboards/schema.xml”

$ curl -X POST -H ‘Content-type:text/xml; charset=utf-8’ “http://localhost:8983/solr/admin/cores?action=CREATE&name=banana.dashboards”

Edit the tomcat settings

  1. Update $DSE/resources/tomcat/conf/server.xml, add the following inside the tags:
  1. Delete $DSE/resources/tomcat/work

Restart DSE

service dse restart

or

dse cassandra restart

##Customize Banana Dashboard as per your requirements

http://localhost:8983/banana

Source :

https://medium.com/@carolinerg/visualizing-cassandra-solr-data-with-banana-b54bf9dd24c#.dz96jqpq3