lisy09 / apache-livy-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apache-livy-docker

Origin: https://github.com/lisy09/apache-livy-docker

This is a project to provide dockerization of Apache Livy, and provide some other features such as secure access through Kerboros.

Directory

  • livy_docker: source of livy docker
  • build_scripts/: scripts for building
  • test_scripts/: scripts for running example

Change as you need

You can modify ./.env to modify these configurations:

  • JAVA version
  • Spark version
  • Livy version
  • Docker repository & tag

How to build

Prerequisite

  • The environment for build needs to be linux/amd64 or macos/amd64
  • The environemnt for build needs docker engine installed
  • The environemnt for build needs GNU make > 3.8 installed

Build command

To build all docker images locally:

make all

To push built docker images to the remote registry:

make push

To delete built local docker images:

make clean

Or you can check ./Makefile for more details.

How to run

Prerequisite

Run with Hadoop cluster

Modify livy configuration under ./conf/ first. Please refer to official repo to check how.

To deploy livy with Hadoop cluster

make deploy

To undeploy

make undeploy

To submit a tested batch spark task through livy api:

curl -X POST -H "Content-Type: application/json" -H "X-Requested-By: user" -d '{"file":"file:///root/livy-local-files/spark-examples.jar","className":"org.apache.spark.examples.JavaSparkPi"}' http://localhost:8998/batches

or

make submit

About

License:MIT License


Languages

Language:Dockerfile 40.4%Language:Shell 39.2%Language:Makefile 20.5%