<commit_before># ambari-presto-service

This repository contains the code and configuration needed to integrate [Presto](https://prestodb.io/) with [Ambari](https://ambari.apache.org/). Adding the Presto service to Ambari allows:

1. Installing and deploying Presto on a cluster from the Ambari UI.
2. Changing Presto configuration options via the Ambari UI.

# Table of contents

* [Getting Started](#getting-started)
  * [Requirements for integration](#requirements-for-integration)
  * [Adding the Presto service](#adding-the-presto-service)
  * [Supported topologies](#supported-topologies)
    * [Pseudo-distributed](#pseudo-distributed)
    * [Distributed](#distributed)
  * [Configuring Presto](#configuring-presto)
    * [Adding and removing connectors](#adding-and-removing-connectors)
* [Known issues](#known-issues)
* [Getting help](#getting-help)
* [Developers](#developers)
  * [Requirements for development](#requirements-for-development)
  * [Definitions](#definitions)
  * [Information on integrating services with Ambari](#information-on-integrating-services-with-ambari)
  * [Build and custom distributions](#build-and-custome-distributions)

# Getting Started

## Requirements for integration

1. You must have Ambari installed and thus transitively fulfill [Ambari's requirements](http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Installing_HDP_AMB/content/_meet_minimum_system_requirements.html).
2. Oracle Java JDK 1.8 (64-bit). Note that when installing Ambari you will be prompted to pick a JDK. You can tell Ambari to download Oracle JDK 1.8 or point it to an existing installation. Presto picks up whatever JDK Ambari was installed with so it is imperative that Ambari is running on Oracle JDK 1.8.
3. Disable `requiretty`. On RHEL 6.x this can be done by editing the `/etc/sudoers` file and commenting out `Defaults    requiretty`.

## Adding the Presto service

This section and all others that follow within [Getting Started](#getting-started) walk you through the integration steps needed to get Presto working with Ambari. By default, this integration code installs Presto version `0.130`, the latest version at the time of writing. To install the latest Teradata Presto release (0.127t), download the Ambari integration package from [here](http://it.teradata.com/PrestoDownload/?LangType=1040&LangSelect=true) and follow the remaining instructions below. To change the distribution to install another version, see [Build and custom distributions](#build-and-custome-distributions).<commit_msg>Add wget as a requirement<commit_after># ambari-presto-service

This repository contains the code and configuration needed to integrate [Presto](https://prestodb.io/) with [Ambari](https://ambari.apache.org/). Adding the Presto service to Ambari allows:

1. Installing and deploying Presto on a cluster from the Ambari UI.
2. Changing Presto configuration options via the Ambari UI.

# Table of contents

* [Getting Started](#getting-started)
  * [Requirements for integration](#requirements-for-integration)
  * [Adding the Presto service](#adding-the-presto-service)
  * [Supported topologies](#supported-topologies)
    * [Pseudo-distributed](#pseudo-distributed)
    * [Distributed](#distributed)
  * [Configuring Presto](#configuring-presto)
    * [Adding and removing connectors](#adding-and-removing-connectors)
* [Known issues](#known-issues)
* [Getting help](#getting-help)
* [Developers](#developers)
  * [Requirements for development](#requirements-for-development)
  * [Definitions](#definitions)
  * [Information on integrating services with Ambari](#information-on-integrating-services-with-ambari)
  * [Build and custom distributions](#build-and-custome-distributions)

# Getting Started

## Requirements for integration

1. You must have Ambari installed and thus transitively fulfill [Ambari's requirements](http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Installing_HDP_AMB/content/_meet_minimum_system_requirements.html).
2. Oracle Java JDK 1.8 (64-bit). Note that when installing Ambari you will be prompted to pick a JDK. You can tell Ambari to download Oracle JDK 1.8 or point it to an existing installation. Presto picks up whatever JDK Ambari was installed with so it is imperative that Ambari is running on Oracle JDK 1.8.
3. Disable `requiretty`. On RHEL 6.x this can be done by editing the `/etc/sudoers` file and commenting out `Defaults    requiretty`.
4. Install `wget` on all nodes that will run a Presto component.

## Adding the Presto service

This section and all others that follow within [Getting Started](#getting-started) walk you through the integration steps needed to get Presto working with Ambari. By default, this integration code installs Presto version `0.130`, the latest version at the time of writing. To install the latest Teradata Presto release (0.127t), download the Ambari integration package from [here](http://it.teradata.com/PrestoDownload/?LangType=1040&LangSelect=true) and follow the remaining instructions below. To change the distribution to install another version, see [Build and custom distributions](#build-and-custome-distributions).
{'fraction_non_alphanumeric': 0.0940353604041189, 'fraction_numerical': 0.01185156401787449, 'mean_word_length': 5.270401948842874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2290216', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1386, 'n_words': 525}