Skip to content

Apache Livy is an open source REST interface for interacting with Apache Spark from anywhere.

License

Notifications You must be signed in to change notification settings

Armadik/incubator-livy-spark-3.3.0-k8s

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Livy for k8s spark 3.3.0

I used a fork of the project https://github.com/apache/incubator-livy (include PR: https://github.com/apache/incubator-livy/pull/249/files)

And also some of the ideas of the guys from the project https://github.com/HPEEzmeral/spark-on-k8s

In the current project, I added a Dokerfile to build livy, spark, as well as helm chart to run in the k8s environment

The scheme of work is similar to the scheme in the Hadoop cluster: scheme

Building Livy

To build, it is enough to build the Dockerfile in the root of the project.

docker build -t livy .

Install Livy

You need to create a Namespace spark in the l8y cluster

kubectl create ns spark

Then install helm chart:

cd helm/
helm upgrade --install livy . -n spark

Example

After the pod is launched. It is necessary to organize access to port 8998. It does not matter how it will be done, through the forwarding port or intgerss.

To start a session, you need to send a POST request http://localhost:8998/sessions.

# Example
{"kind": "spark" , "driverMemory": "8g",    "driverCores": 4,    "executorMemory": "4g",     "executorCores": 1,     "numExecutors": 10}

scheme

Next you will see the formation of spark pods: scheme

Jupyter

To work from Jupyter, you need to create kernels (https://github.com/jupyter-incubator/sparkmagic) img.png

This scheme of work is at the testing stage, I am not yet sure about its advantages!

About

Apache Livy is an open source REST interface for interacting with Apache Spark from anywhere.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 62.6%
  • Java 26.0%
  • Python 6.3%
  • Shell 2.6%
  • JavaScript 1.0%
  • HTML 0.6%
  • Other 0.9%