node-livy-client

1.0.0 • Public • Published

Node-Livy-Client

A comprehensive client in Node.js for Apache Livy. Livy is a REST service for Apache Spark.

Usage

npm install node-livy-client

const LivyClient =  require('node-livy-client');
 
const client = new LivyClient({ host: 'localhost' });
 
client.postSession({}, (err, res) => {
    // will create a spark session by default
    console.log("res: ", res);    
});

See tests/functional/client.js for further API call examples.

All Livy API calls should be supported. Please open an issue if you discover any missing.

See lib/client.js for available options.

Test

You must have Livy installed and running locally to run tests.

Download Livy here.

Go to directory where Livy has been downloaded.

export SPARK_HOME=${YOUR SPARK PATH}/libexec

Please make sure that in your livy.conf file, you include:

livy.file.local-dir-whitelist=${PATH TO NODE-LIVY-CLIENT DIRECTORY}

mkdir logs

./bin/livy-server

From within your node-livy-client directory: npm test

Readme

Keywords

Package Sidebar

Install

npm i node-livy-client

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • laurenspiegel