From bc29fde54adae4cc316aa8436d0703f8219311e3 Mon Sep 17 00:00:00 2001 From: jetoile Date: Mon, 16 May 2016 12:08:56 +0200 Subject: [PATCH] update doc --- README.md | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb170d14..078e57df 100755 --- a/README.md +++ b/README.md @@ -11,6 +11,15 @@ Moreover, it provide a standalone component which can be run locally and which s

+#Build + +For windows users, you need to download a hadoop distribution, to unzip it and to define the system environment variable `HADOOP_HOME`. You can also define the path into files `default.properties` (warning: there are a lot...). + +To build, launch the command: +```bash +mvn package +``` + #Usage When Hadoop Unit is started, it should display stuff like that: @@ -31,6 +40,22 @@ When Hadoop Unit is started, it should display stuff like that: ``` +The available components are: +* HDFS +* ZOOKEEPER +* HIVEMETA +* HIVESERVER2 +* SOLR +* SOLRCLOUD +* OOZIE +* KAFKA +* HBASE +* MONGODB +* CASSANDRA +* ELASTICSEARCH + +However, for compatibility reason, SolR/SolRCloud and Elasticsearch can not be run into the same JVM. For this purpose, there are 2 standalone packages which are generated (one which is compliant with solr and one which is compliant with elasticsearch). + ##Integration testing (will start each component present into classpath) With maven, add dependencies of components which are needed @@ -90,23 +115,29 @@ public static void tearDown() throws NotFoundServiceException { ``` ##Standalone mode -Unzip `hadoop-unit-standalone-.tar.gz` +As said above, SolR/SolRCloud and Elasticsearch are not compatible. + +For this purpose, two packages are availables: +* hadoop-unit-standalone-solr +* hadoop-unit-standalone-elasticsearch + +Unzip `hadoop-unit-standalone--.tar.gz` Change `conf/default.properties` Change `conf/hadoop.properties` Start in fg with: ```bash -./bin/hadoop-unit-standalone console +./bin/hadoop-unit-standalone- console ``` Start in bg with: ```bash -./bin/hadoop-unit-standalone start +./bin/hadoop-unit-standalone- start ``` Stop with: ```bash -./bin/hadoop-unit-standalone stop +./bin/hadoop-unit-standalone- stop ``` ##Shell Usage