Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jetoile committed May 16, 2016
1 parent b94fea1 commit bc29fde
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ Moreover, it provide a standalone component which can be run locally and which s

</p>

#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:
Expand All @@ -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

Expand Down Expand Up @@ -90,23 +115,29 @@ public static void tearDown() throws NotFoundServiceException {
```

##Standalone mode
Unzip `hadoop-unit-standalone-<version>.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-<type>-<version>.tar.gz`
Change `conf/default.properties`
Change `conf/hadoop.properties`

Start in fg with:
```bash
./bin/hadoop-unit-standalone console
./bin/hadoop-unit-standalone-<type> console
```

Start in bg with:
```bash
./bin/hadoop-unit-standalone start
./bin/hadoop-unit-standalone-<type> start
```

Stop with:
```bash
./bin/hadoop-unit-standalone stop
./bin/hadoop-unit-standalone-<type> stop
```

##Shell Usage
Expand Down

0 comments on commit bc29fde

Please sign in to comment.