A tool to install, configure and manage Trino installations
  • Python 97.7%
  • Shell 1.2%
  • Makefile 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Piotr Leniartek 4c626f55d3 Readme update
*Trino rebranding
*Deprication notice
2021-04-19 09:49:45 +01:00
bin Consolidate test installer to use build-artifacts-in-docker 2020-04-23 18:27:40 +01:00
docs Rename and move script-run to file-run 2020-12-04 13:01:33 -05:00
packaging Add -x flag to installation script 2020-02-15 15:14:46 +00:00
prestoadmin Prepare for next dev iteration 2020-11-02 12:13:28 -05:00
tests Fix assertion to match Presto rpm 2020-11-02 10:30:42 -05:00
util Add release command to setup.py 2016-08-17 13:26:35 -04:00
.gitignore Headings to sentence case for Google style 2020-10-30 20:08:58 -04:00
.travis.yml Consolidate test installer to use build-artifacts-in-docker 2020-04-23 18:27:40 +01:00
base-images-tag.json Use prestodb/centos6-presto-admin-tests-* as base image for presto admin tests 2017-12-19 11:51:56 +01:00
CONTRIBUTING.rst Update docs to point to prestosql 2019-03-08 11:23:44 -05:00
LICENSE presto-admin: Refactor directory structure using cookiecutter 2015-03-17 18:08:42 -04:00
Makefile Update docker images to use prestodev 2019-07-25 10:30:15 +02:00
MANIFEST.in Fix manifest to get the correct README 2015-05-08 16:39:21 -04:00
README.md Readme update 2021-04-19 09:49:45 +01:00
release.py Update docs to point to prestosql 2019-03-08 11:23:44 -05:00
requirements.txt Remove deprecated ldap parameters from Presto client auth 2020-10-12 14:00:22 -04:00
setup.cfg Codestyle - let line length limit to be 120 chars 2016-07-01 08:43:11 +02:00
setup.py Remove deprecated ldap parameters from Presto client auth 2020-10-12 14:00:22 -04:00
tox.ini Run tests for default system python installation 2017-12-14 16:08:38 +01:00

trino-admin Build Status

Trino-admin (formerly known as presto-admin) is deprecated and will not work with new versions of Trino (>350)

Trino-admin installs, configures, and manages Trino installations.

Comprehensive documentation(deprecated) can be found at https://trinodb.github.io/trino-admin/docs/current/index.html

Requirements

  1. Python 2.6 or 2.7
  2. Docker. (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

Trino-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 trino-admin,

  1. Fork the trino-admin repo on GitHub, https://github.com/trinodb/trino-admin.

  2. Clone your fork locally ::

     $ git clone git@github.com:your_name_here/trino-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 trinoadmin
     $ cd trinoadmin/
     $ 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 trino-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).