More meaningful example in README.md
Inclue a more real-life example using spark-submit,
including the ES credentials and a more real-life Gerrit URL
Change-Id: I6366152203c24bd3cc42a9081dcfb30297fa578f
diff --git a/README.md b/README.md
index c9de667..41f06b0 100644
--- a/README.md
+++ b/README.md
@@ -5,17 +5,19 @@
```
bin/spark-submit \
- --conf spark.es.nodes=company.com \
+ --conf spark.es.nodes=es.mycompany.com \
+ --conf spark.es.net.http.auth.user=elastic \
+ --conf spark.es.net.http.auth.pass=changeme \
$JARS/SparkAnalytics-assembly-1.0.jar \
--since 2000-06-01 \
- --aggregate email_hour \
- --url http://localhost:8080 \
+ --aggregate email_hour \
+ --url http://gerrit.mycompany.com \
-e gerrit/analytics
```
### Parameters
- since, until, aggregate are the same defined in Gerrit Analytics plugin
see: https://gerrit.googlesource.com/plugins/analytics/+/master/README.md
-- -u --url location/port of Gerrit server for extracting the analytics data
+- -u --url Gerrit server URL with the analytics plugins installed
- -e --elasticIndex specify as <index>/<type> to be loaded in Elastic Search
if not provided no ES export will be performed
- -o --out folder location for storing the output as JSON files