Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

https://img.shields.io/pypi/dm/trino-admin.svg https://img.shields.io/pypi/v/trino-admin.svg https://img.shields.io/pypi/pyversions/trino-admin.svg https://img.shields.io/pypi/implementation/trino-admin.svg Documentation Status

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

documentation can be found at https://trino-admin.readthedocs.io/en/latest/

Requirements

  1. Python 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 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.

  3. trino or presto command line (Optional)

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/wgzhao/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 (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).

Metadata

Release files for trino-admin 2.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trino-admin 2.16
File Size Uploaded
trino-admin-2.16.linux-x86_64.tar.gz 137.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trino-admin 2.16
File Interpreter ABI Platform
trino_admin-2.16-py2-none-any.whl Python 2 none any Details

Total release size: 229.8 kB

Release files / trino-admin-2.16.linux-x86_64.tar.gz

Download URL trino-admin-2.16.linux-x86_64.tar.gz
Size 137.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce6a50f44d9ffb58a58cb75db7bf26ffe25da395ff138d11364017456f7c591b
BLAKE2b-256 checksum
How to use checksums
ea001ef43c3b6acd16dc60ff19c602d497409da0eae1cadb8aa3df3aa57b086b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.5

Release files / trino_admin-2.16-py2-none-any.whl

Download URL trino_admin-2.16-py2-none-any.whl
Size 92.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
db469c49cf4853d3c6b8ca5d759ab8e14882a38c0e48cc22662b0f221d03db64
BLAKE2b-256 checksum
How to use checksums
ebe09c5ad02e8350b586c1f246133cdf306c5003daf2eeeb0303ecf46fc965a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.5

Release history Release notifications | RSS feed

This release

2.16 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page