Giter VIP home page Giter VIP logo

hadoop-docker's Introduction

Apache Hadoop 2.7.1 Docker image

Docker Repository on Quay

Note1: This is a fork of sequenceiq/hadoop-docker + Spark, Python 2.7.8 and Mongodb Connector.

Note2: this is the master branch - for a particular Hadoop version always check the related branch

Build the image

If you'd like to try directly from the Dockerfile you can build the image as:

docker build  -t cainelli/hadoop-docker:2.7.1 .

Pull the image

The image is also released as an official Docker image from Docker's automated build repository - you can always pull or refer the image when launching containers.

docker pull quay.io/cainelli/docker-hadoop

Start a container

In order to use the Docker image you have just build or pulled use:

Make sure that SELinux is disabled on the host. If you are using boot2docker you don't need to do anything.

docker run -it quay.io/cainelli/docker-hadoop:latest /etc/bootstrap.sh -bash

Pyspark + Mongo

Iteractive Mode


/usr/local/spark/bin/pyspark --packages com.org.mongodb.spark:mongo-spark-connector_2.11:2.0.0

Submit a Job

/usr/local/spark/bin/spark-submit --packages org.mongodb.spark:mongo-spark-connector_2.11:2.0.0 /home/sparkJob.py

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.7.1.jar grep input output 'dfs[a-z.]+'

# check the output
bin/hdfs dfs -cat output/*

Hadoop native libraries, build, Bintray, etc

The Hadoop build process is no easy task - requires lots of libraries and their right version, protobuf, etc and takes some time - we have simplified all these, made the build and released a 64b version of Hadoop nativelibs on this Bintray repo. Enjoy.

hadoop-docker's People

Contributors

akanto avatar cainelli avatar cglewis avatar gliptak avatar itsmeolivia avatar keyki avatar kliewkliew avatar lalyos avatar lresende avatar mhmxs avatar paoloantinori avatar smola avatar sroegner avatar thataustin avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.