Git Product home page Git Product logo

presto-manager's Introduction

Presto Manager

A tool for managing Presto clusters.

Getting Started

These instructions will get you an instance of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

Clone the full distribution

git clone https://github.com/prestodb/presto-manager.git

Compiling and Running

Change to the project directory you cloned the distribution

cd presto-manager

Use Maven Wrapper to compile and generate executable JAR for the project

./mvnw clean install

Executing

These commands will start the Agent and Controller, respectively:

java -jar ./presto-manager-agent/target/AgentServer.jar
java -jar ./presto-manager-controller/target/ControllerServer.jar

Usage

Any Http client will work as long as it can send basic Http requests (i.e GET, PUT, POST, DELETE, etc.)
Postman, a Google chrome plugin, is recommended for its friendly user interface.

For example, this request will receive a list of available configuration files as its response.

GET http://localhost:8080/v1/config?scope=cluster
For detailed informationa about the API, please generate the swagger API documentation.
Follow the below steps to generate the documentation.

First run

mvn clean compile swagger:generate

Then run

mvn clean compile swagger2markup:convertSwagger2markup

The documentation for the Agent and Controller APIs will be located at these directories, respectively:

Configuration

Each Presto Manager process requires two configuration files: the main configuration file, and a log levels file.

By default, the controller and agent will look to etc/controller.properties and etc/agent.properties for their main configuration files, respectively. To override this behavior, set the system property config to the file you would like to use.

For convenience, sample configurations for the Agent and Controller are provided in the git repository under etc/. The sample files also contain descriptions for each property.

License

This project is licensed under the Apache License. See the LICENSE file for details

presto-manager's People

Contributors

jirassimok avatar shanbai6 avatar sudarsanm94 avatar

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.