GithubHelp home page GithubHelp logo

ustato / docker-spark-ml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from semantive/docker-spark

0.0 1.0 0.0 51 KB

Docker image for Apache Spark.

License: Apache License 2.0

Dockerfile 2.53% Python 7.41% Julia 0.56% Jupyter Notebook 89.50%

docker-spark-ml's Introduction

semantive/spark

An Apache Spark container based on openjdk image. Use it in a standalone cluster with the accompanying docker-compose.yml, or as a base for more complex recipes.

Simple example

To run SparkPi, run the image with Docker:

docker run --rm -it -p 4040:4040 semantive/spark bin/run-example SparkPi 10

Cluster example [docker-compose]

To create a simple standalone cluster with docker-compose use:

docker-compose up

The SparkUI will be running at http://${YOUR_DOCKER_HOST}:8080 with one worker listed and Spark jobs may be submitted using master spark://${YOUR_DOCKER_HOST}:7077. To connect via spark-shell with cluster use:

spark-shell --master spark://localhost:7077

License

Apache Licence

additional

先人の知恵を借りて,Dockerで手軽にSpark,PySparkを利用できるように改良した.

Usage

Build

まずはdocker-composeでビルドとコンテナを立ち上げる.

docker-compose up --build

Ignore INFO

docker exec -it docker-spark-ml_master_1 spark-submit --conf spark.driver.extraJavaOptions='-Dlog4j.configuration=file:/home/spark/conf/log4j.properties' src.py

PCA on PySpark

docker exec -it docker-spark-ml_master_1 spark-submit /home/worker/src/pyspark_pca.py

LightGBM on PySpark

docker exec -it docker-spark-ml_master_1 spark-submit --packages com.microsoft.ml.spark:mmlspark_2.11:0.18.1 /home/worker/src/pyspark_LightGBM_news.py

docker-spark-ml's People

Contributors

eternalsh avatar ustato avatar

Watchers

 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.