You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:44:30 UTC

[30/50] brooklyn-docs git commit: Updated whirr example to add whirr-elasticsearch jar to BROOKLYN_CLASSPATH and added note about including whirr-elasticsearch as a dependency

Updated whirr example to add whirr-elasticsearch jar to BROOKLYN_CLASSPATH and added note about including whirr-elasticsearch as a dependency


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/7271a800
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/7271a800
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/7271a800

Branch: refs/heads/0.6.0
Commit: 7271a8009d788ee2abe37b4896828f229a008565
Parents: 87b63b7
Author: Martin Harris <gi...@nakomis.com>
Authored: Fri Nov 1 15:57:14 2013 +0000
Committer: Martin Harris <gi...@nakomis.com>
Committed: Fri Nov 1 15:57:14 2013 +0000

----------------------------------------------------------------------
 docs/use/examples/whirrhadoop/whirrhadoop.include.md | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/7271a800/docs/use/examples/whirrhadoop/whirrhadoop.include.md
----------------------------------------------------------------------
diff --git a/docs/use/examples/whirrhadoop/whirrhadoop.include.md b/docs/use/examples/whirrhadoop/whirrhadoop.include.md
index 502f73d..fa54bfb 100644
--- a/docs/use/examples/whirrhadoop/whirrhadoop.include.md
+++ b/docs/use/examples/whirrhadoop/whirrhadoop.include.md
@@ -79,6 +79,12 @@ public class WhirrExample extends AbstractApplication {
 }
 {% endhighlight %}
 
+As this example uses elasticsearch, the elasticsearch jar will need to be added to the classpath. If you are using elasticsearch in your own project, you will also need to add it as a dependency in your pom.xml. For an example see the brooklyn-examples/hadoop-and-whirr/pom.xml
+
+{% highlight bash %}
+% export BROOKLYN_CLASSPATH=~/.m2/repository/org/apache/whirr/whirr-elasticsearch/0.8.1/whirr-elasticsearch-0.8.1.jar:$BROOKLYN_CLASSPATH
+{% endhighlight %} 
+
 This can be launched by running:
 
 {% highlight bash %}