Apache Zeppelin interpreter for MarkLogic let you execute MarkLogic JSearch queries from Zeppelin notebook against MarkLogic cluster. You can make use MarkLogic distributed computing capabilities and Zeppelin visualization components together.
Apache Zeppelin is a web-based notebook that enables interactive data analytics. You can make beautiful data-driven, interactive and collaborative documents with SQL, Scala and more. Fore more details, please refer to Apache Zeppelin home page.
To execute exploratory queries against MarkLogic and visualize the result in the Apache Zeppelin notebook.
MarkLogic JSearch aggregation/facet, documents and collection queries. I'm in the process of adding the entire JSarch query support. Please stay tuned.
jsearch.facets([ jsearch.facet('RDBMS', 'RDBMS') ]).result()
jsearch.documents().where(jsearch.byExample({symbol: 'AAPL'})).result().results
fn.collection('trades').toArray()
A range index for JSON element 'RDBMS'is expected for the above query. Variable jsearch will be available in the context by default. No need to import '/MarkLogic/jsearch.sjs'.
- Download the latest release from release folder.
- Unzip the content into zeppelin_home/interpreter.
- Edit the zeppelin_home/conf/zeppelin-site.xml file
- Add "org.sanju.zeppelin.marklogic.interpreter.MarkLogicInterpreter" into the zeppelin.interpreters property value.
- Restart Zeppelin.
Above five steps would install the Zeppelin MarkLogic Interpreter.
- Go to Zeppelin home page. (http://host:8080)
- Click on the username on the right top corner, click on the interpreter.
- Click on the Create button on the interpreters page.
- Select marklogic interpreter group.
- Given an interpreter name.
- Leave the connection details as is, or change as per your environment.
- Save the interpreter.
- Click Notebook menu, click Create new note.
- Select MarkLogic interpreter.
- Give a name for the notebook. And you are ready to go.
Please create an issue in GitHub.