This repository contains a docker file to build a docker image with Apache Tez. This docker file is adaptation from this repo, except that the docker image for tez runs on top of hadoop 2.5.2 docker base image from my other github repo (docker-hadoop).
You can either pull the image that is already pre-built from Docker hub or build the image locally (refer next section)
docker pull prasanthj/docker-tez:0.8.4
If you do not want to pull the image from Docker hub, you can build it locally using the following steps
git clone https://github.com/prasanthj/docker-tez.gitcd docker-tezdocker build -t local-tez-0.8.4 .
docker run -i -t -P local-tez-0.8.4 /etc/bootstrap.sh -bash
When running one of the stock map-reduce examples, the TEZ DAG ApplicationMaster will run the map-reduce job instead of the YARN MR AppMaster. This can be verified by looking at the YARN ResourceManager UI.
$HADOOP_PREFIX/bin/hadoop jar $HADOOP_PREFIX/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0.jar grep input output 'dfs[a-z.]+'
There is also a basic Tez MRR job example in one of the tez jars. You can test it by running the following:
$HADOOP_PREFIX/bin/hadoop jar $TEZ_DIST/tez-examples-0.8.4.jar orderedwordcount input output-owc
If you are running docker using Boot2Docker then do the following steps
Setup routing on the host machine (Mac OS X) using the following
command sudo route add -net 172.17.0.0/16 192.168.59.103
NOTE: 172.17.0.X is usually the ipaddress of docker container. 192.168.59.103 is the ipaddress exported in DOCKER_HOST
Get containers IP address
docker psdocker inspect -f=“{{.NetworkSettings.IPAddress}}” CONTAINER_IDLaunch a web browser and type http://<container-ip-address>:8088 to view hadoop cluster web UI.
Content type
Image
Digest
sha256:494f8f72f…
Size
1.3 GB
Last updated
almost 10 years ago
docker pull prasanthj/docker-tez