Giter Site home page Giter Site logo

docker-livy's Introduction

docker-livy

A Docker image for Livy, the REST Spark Server.

Running

The image can be run with

docker run -p 8998:8998 -d tobilg/livy

which will expose the port 8998 on the Docker host for this image.

Details

Have a look at the official docs to see how to use the Livy REST API.

docker-livy's People

Contributors

tobilg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-livy's Issues

Error: Cannot find Livy REPL jars

Create an instance from example
docker run -p 8998:8998 -d tobilg/livy

Spark Example

>>> import json, pprint, requests, textwrap
>>> host = 'http://localhost:8998'
>>> data = {'kind': 'spark'}
>>> headers = {'Content-Type': 'application/json'}
>>> r = requests.post(host + '/sessions', data=json.dumps(data), headers=headers)
>>> r.json()
u'requirement failed: Cannot find Livy REPL jars.'

Push 0.2.0 to registry

Hey,

I didnt find version 0.2 in the public registry would be nice, to have this one tagged as 0.2 not as latest :).

Thanks,
Jendrik

Cannot execute statement and State as running forever

I followed this doc here
https://github.com/cloudera/hue/tree/master/apps/spark/java

and created session then sent in a simple {"code": "1+1"} via POST /sessions/{sessionId}/statements but what I got was this:

{
  "id": 0,
  "state": "running",
  "output": null
}

The Kitematic console shows this

192.168.59.1 - - - 10/Mar/2016:07:56:26 +0000 "GET /sessions/0/statements/0 HTTP/1.1" 200 40

I think this has to do with Livy but I am wondering if you ever got it to work?

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.