Python client for Spark Jobserver
Project description
Features
Supports Spark Jobserver 0.6.0+
Library Installation
$ pip install python-sjsclient
Getting started
First create a client instance:
>>> from sjsclient import client >>> sjs = client.Client("http://JOB_SERVER_URL:PORT")
Then call methods on its managers:
>>> for app in sjs.apps.list(): ... print app.name ... 824d89f1-224d-4083-8129-363b79849939 36bb9cd3-054a-4ed7-a9f8-956a542c2357 >>> for job in sjs.jobs.list(): ... print job.jobId ... 8c5bd52f-6486-44ee-9ac3-a8327ee40494 24b67573-3115-49c7-983c-d0eff0499b71 99c8be9e-a0ec-42dd-8a2c-9a8680bc5051 bb82f712-d4b4-43a4-8e4d-e4bb272e85db
Documentation
Discussion list
spark-jobserver google group: https://groups.google.com/forum/#!forum/spark-jobserver
Requirements
Python >= 2.7.0
License
python-sjsclient is offered under the Apache 2 license.
Source code
The latest developer version is available in a github repository: https://github.com/spark-jobserver/python-sjsclient
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-sjsclient-0.1.2.tar.gz
(14.8 kB
view hashes)