Start a container
In order to use the Docker image you have just build or pulled use:
docker run -i -t sequenceiq/hadoop-docker /etc/bootstrap.sh -bash
Testing
You can run one of the stock examples:
cd $HADOOP_PREFIX # run the mapreduce bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.0.jar grep input output 'dfs[a-z.]+' # check the output bin/hdfs dfs -cat output/*
Read full article from sequenceiq/hadoop-docker Repository | Docker Hub Registry - Repositories of Docker Images
No comments:
Post a Comment