Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1080e9

Browse files
committed
Merge branch 'master' into 2.0.0-hadoop2.7.4-java8
2 parents 4c7ce38 + 627ee46 commit f1080e9

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/big-data-europe/Lobby)
2+
13
# Changes
24

35
Version 2.0.0 introduces uses wait_for_it script for the cluster startup
46

57
# Hadoop Docker
68

9+
## Supported Hadoop Versions
10+
* 2.7.1 with OpenJDK 7
11+
* 2.7.1 with OpenJDK 8
12+
13+
## Quick Start
14+
715
To deploy an example HDFS cluster, run:
816
```
917
docker-compose up
@@ -14,6 +22,18 @@ Or deploy in swarm:
1422
docker stack deploy -c docker-compose-v3.yml hadoop
1523
```
1624

25+
`docker-compose` creates a docker network that can be found by running `docker network list`, e.g. `dockerhadoop_default`.
26+
27+
Run `docker network inspect` on the network (e.g. `dockerhadoop_default`) to find the IP the hadoop interfaces are published on. Access these interfaces with the following URLs:
28+
29+
* Namenode: http://<dockerhadoop_IP_address>:50070/dfshealth.html#tab-overview
30+
* History server: http://<dockerhadoop_IP_address>:8188/applicationhistory
31+
* Datanode: http://<dockerhadoop_IP_address>:50075/
32+
* Nodemanager: http://<dockerhadoop_IP_address>:8042/node
33+
* Resource manager: http://<dockerhadoop_IP_address>:8088/
34+
35+
## Configure Environment Variables
36+
1737
The configuration parameters can be specified in the hadoop.env file or as environmental variables for specific services (e.g. namenode, datanode etc.):
1838
```
1939
CORE_CONF_fs_defaultFS=hdfs://namenode:8020
@@ -23,7 +43,7 @@ CORE_CONF corresponds to core-site.xml. fs_defaultFS=hdfs://namenode:8020 will b
2343
```
2444
<property><name>fs.defaultFS</name><value>hdfs://namenode:8020</value></property>
2545
```
26-
To define dash inside a configuration parameter, use double underscore, such as YARN_CONF_yarn_log___aggregation___enable=true (yarn-site.xml):
46+
To define dash inside a configuration parameter, use triple underscore, such as YARN_CONF_yarn_log___aggregation___enable=true (yarn-site.xml):
2747
```
2848
<property><name>yarn.log-aggregation-enable</name><value>true</value></property>
2949
```
@@ -37,10 +57,3 @@ The available configurations are:
3757
* /etc/hadoop/mapred-site.xml MAPRED_CONF
3858

3959
If you need to extend some other configuration file, refer to base/entrypoint.sh bash script.
40-
41-
After starting the example Hadoop cluster, you should be able to access interfaces of all the components (substitute domain names by IP addresses from ```network inspect dockerhadoop_default``` command):
42-
* Namenode: http://namenode:50070/dfshealth.html#tab-overview
43-
* History server: http://historyserver:8188/applicationhistory
44-
* Datanode: http://datanode:50075/
45-
* Nodemanager: http://nodemanager:8042/node
46-
* Resource manager: http://resourcemanager:8088/

base/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function configure() {
2323

2424
echo "Configuring $module"
2525
for c in `printenv | perl -sne 'print "$1 " if m/^${envPrefix}_(.+?)=.*/' -- -envPrefix=$envPrefix`; do
26-
name=`echo ${c} | perl -pe 's/___/-/g; s/__/_/g; s/_/./g'`
26+
name=`echo ${c} | perl -pe 's/___/-/g; s/__/@/g; s/_/./g; s/@/_/g;'`
2727
var="${envPrefix}_${c}"
2828
value=${!var}
2929
echo " - Setting $name=$value"

0 commit comments

Comments
 (0)