diff --git a/src/main/assemblies/plugin.xml b/src/main/assemblies/plugin.xml
new file mode 100644
index 0000000..10a7c69
--- /dev/null
+++ b/src/main/assemblies/plugin.xml
@@ -0,0 +1,26 @@
+
+
+ plugin
+
+ zip
+
+ false
+
+
+ /
+ true
+ true
+
+ org.elasticsearch:elasticsearch
+
+
+
+ /
+ true
+ true
+
+ org.hbase:asynchbase
+
+
+
+
\ No newline at end of file
diff --git a/src/main/java/org/elasticsearch/river/hbase/HBaseRiver.java b/src/main/java/org/elasticsearch/river/hbase/HBaseRiver.java
index 5e51a96..06446a6 100644
--- a/src/main/java/org/elasticsearch/river/hbase/HBaseRiver.java
+++ b/src/main/java/org/elasticsearch/river/hbase/HBaseRiver.java
@@ -186,9 +186,13 @@ private void parse() throws InterruptedException, Exception {
}
bulkRequest.execute().addListener((ActionListener) this);
}
-
}
+ /**
+ * Sets the minimum time stamp on the HBase scanner, by looking into Elasticsearch for the last entry made.
+ *
+ * @param scanner
+ */
private void setMinTimestamp(final Scanner scanner) {
final SearchResponse response = HBaseRiver.this.esClient.prepareSearch(HBaseRiver.this.index)
.setTypes(HBaseRiver.this.type)
@@ -209,7 +213,7 @@ private void setMinTimestamp(final Scanner scanner) {
@Override
public void onResponse(final BulkResponse response) {
this.indexCounter += response.items().length;
- HBaseRiver.this.logger.info("Indexed {} entries", this.indexCounter);
+ HBaseRiver.this.logger.info("HBase imported has indexed {} entries so far", this.indexCounter);
if (response.hasFailures()) {
HBaseRiver.this.logger.error("Errors have occured while trying to index new data from HBase");
}