Skip to main content

# presto-admin [![Build Status](https://travis-ci.org/prestosql/presto-admin.svg?branch=master)](https://travis-ci.org/prestosql/presto-admin)

presto-admin installs, configures, and manages Presto installations.

Comprehensive documentation can be found at https://prestosql.github.io/presto-admin/.

## Requirements

  1. Python 2.6 or 2.7

  2. [Docker](https://www.docker.com/). (Only required for development, if you want to run the system tests)
    • If you DO NOT have Docker already installed, you can run the install-docker.sh script in the bin directory of this project. That script has only been tested on Ubuntu 14.04.

    • If you have Docker already installed, you need to make sure that your user has been added to the docker group. This will enable you to run commands without sudo, which is a requirement for some of the unit tests. To enable sudoless docker access run the following:

      $ sudo groupadd docker $ sudo gpasswd -a ${USER} docker $ sudo service docker restart

      If the user you added to the docker group is the same one you’re logged in as, you will need to log out and back in so that the changes can take effect.

## Building

Presto-admin makes use of make as its build tool. make in turn calls out to various utilities (e.g. tox, flake8, sphinx-apidoc, python) in order to perform the requested actions.

In order to get started with presto-admin,

  1. Fork the presto-admin repo on GitHub, https://github.com/prestosql/presto-admin.

  2. Clone your fork locally

    $ git clone git@github.com:your_name_here/presto-admin.git
  3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development

    $ mkvirtualenv prestoadmin
    $ cd prestoadmin/
    $ python setup.py develop
  4. Create a branch for local development

       $ git checkout -b name-of-your-bugfix-or-feature
    
    Now you can make your changes locally.

5. When you’re done making changes, check that your changes pass make clean lint test, which runs flake8 and the unit tests (which test both Python 2.6 and 2.7). To run the product tests tests (make test-all), you need docker installed. You may also need to run pip install wheel in your virtualenv. To install and start docker use

$ wget -qO- https://get.docker.com/ | sh

# Add current user to Docker group to run without sudo
$ sudo gpasswd -a ${USER} docker
$ sudo service docker restart

### Building the installer

The two tasks used to build the presto-admin installer are dist and dist-offline. The dist task builds an installer that requires internet connectivity during installation. The dist-offline task builds an installer that does not require internet connectivity during installation. Instead the offline installer downloads all dependencies at build time and points pip to those dependencies during installation.

## License

Free software: Apache License Version 2.0 (APLv2).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prestoadmin-2.9.tar.gz (38.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prestoadmin-2.9-py2-none-any.whl (92.9 kB view details)

Uploaded Python 2

File details

Details for the file prestoadmin-2.9.tar.gz.

File metadata

  • Download URL: prestoadmin-2.9.tar.gz
  • Upload date:
  • Size: 38.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.7.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.16

File hashes

Hashes for prestoadmin-2.9.tar.gz
Algorithm Hash digest
SHA256 7dd7c20b661a2e5516d2e756f34739da424c4c89335bc6e578e282709cb4afdb
MD5 73af0e6983119694c4215a0de530d9f1
BLAKE2b-256 d6a5c9fed8fbb48a947bce1d542e616b55e26fe146a06a49db1d7a9156491cd1

See more details on using hashes here.

File details

Details for the file prestoadmin-2.9-py2-none-any.whl.

File metadata

  • Download URL: prestoadmin-2.9-py2-none-any.whl
  • Upload date:
  • Size: 92.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.7.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.16

File hashes

Hashes for prestoadmin-2.9-py2-none-any.whl
Algorithm Hash digest
SHA256 a5e2b0415e01fa496241241bd8dc249dd5db6bb6113674384fae8eded4877d7c
MD5 c8709a57133607d8041a38b048fa6f4f
BLAKE2b-256 5332494db8b74dcf195ca1242294820737f6525c5a9825308afc65bfa41b7d1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page