Adding a CatalogΒΆ

In Presto, connectors allow you to access different data sources – e.g., Hive, PostgreSQL, or MySQL.

To add a catalog for the Hive connector:

  1. Create a file in ~/.prestoadmin/catalog with the following content:
  2. Distribute the configuration file to all of the nodes in the cluster:

    ./presto-admin catalog add hive
  3. Restart Presto:

    ./presto-admin server restart

You may need to add additional properties for the Hive connector to work properly, such as if your Hadoop cluster is set up for high availability. For these and other properties, see the Hive connector documentation.

For detailed documentation on catalog add, see catalog add. For more on which catalogs Presto supports, see the Presto connector documentation.