Skip to main content

Create a Hive Metastore service

Create a Hive Metastore service to give the services in your workspace one shared store for table metadata. The Setup Hive Metastore form has four screens: Basic Information, Nodes Configuration, Additional properties, and Review & Create.

Prerequisites​

  • A workspace whose Status is Connected. See Create a workspace.
  • A PostgreSQL database that the workspace can reach. You can use a database you created in FPT Database Engine or your own database.
  • An object storage bucket, with its endpoint, access key, and secret key.

Open the create form​

  1. Select Data platform → Workspace management, then select your workspace.
  2. On the Overview tab, select Create.
  3. In the Create service dialog, select Hive Metastore, then select Create service.

Create service dialog with the Category filter, the Hive Metastore card among the service cards, and the Create service button

In a workspace with no services yet, the Overview tab shows Create first service instead. Select the Hive Metastore card there to open the form directly.

The Setup Hive Metastore form opens on the Basic Information screen.

Enter basic information​

  1. Enter a Name.
  2. Enter a Description (optional).
  3. Select a Version.
  4. Select Next Step.

Basic Information screen of the Setup Hive Metastore form with the Name, Description, and Version fields

FieldDescription
NameRequired. The service name. 1 to 30 characters. Letters, numbers, and hyphens (-).
DescriptionOptional. A description of the service.
VersionRequired. The Hive Metastore version.

Configure nodes​

  1. Select a Storage Policy.
  2. Select a Type.
  3. Enter the Number of nodes.
  4. Select Next Step.

Nodes Configuration screen of the Setup Hive Metastore form with the Storage Policy, Type, and Number of nodes fields

FieldDescription
Storage PolicyRequired. The storage policy of the nodes, for example Premium-SSD.
TypeRequired. The resource configuration of the nodes, for example 2 vCPU - 4096 MB RAM.
Number of nodesRequired. The number of nodes. From 1 to 10.

Configure additional properties​

On the Additional properties screen, connect Hive Metastore to the database and the object storage where it stores its data.

  1. Connect the Database.
  2. Connect the Cloud object storage.
  3. Select Next Step.

Database​

Hive Metastore stores its data in a PostgreSQL database. Use a database you created in FPT Database Engine or your own database.

  1. Select the database Type.
  2. Select From FPT Database Engine and choose the database in Database Name, or select Manual configuration.
  3. Enter or check the connection details: Host name, Port, Database, Username, and Password.
  4. Select Test connection to check the connection from the workspace to the database.

Database section with PostgreSQL selected, the From FPT Database Engine and Manual configuration options, the connection fields, and the Test connection button

FieldDescription
TypeRequired. PostgreSQL.
From FPT Database Engine or Manual configurationRequired. From FPT Database Engine uses a database you created in FPT Database Engine. Manual configuration takes the connection details of your own database. Default: From FPT Database Engine.
Database NameRequired with From FPT Database Engine. The FPT Database Engine database to use.
Host nameRequired. The host name or IP address of the database server.
PortRequired. The port of the database server, for example 5432. The form does not fill it in.
DatabaseRequired. The name of the database.
UsernameRequired. The user that connects to the database.
PasswordRequired. The password of that user.

Cloud object storage​

Enter the object storage bucket where the service stores its data.

  1. Enter the Endpoint, Access Key, Secret key, Bucket Name, and Path of the bucket.
  2. Select Test connection to check the connection from the workspace to the storage.

Cloud Object Storage section with the Endpoint, Access Key, Secret key, Bucket Name, and Path fields and the Test connection button

FieldDescription
EndpointRequired. The endpoint of the object storage.
Access KeyRequired. The access key of the object storage.
Secret keyRequired. The secret key that goes with the access key.
Bucket NameRequired. The name of the bucket.
PathRequired. The folder where the service stores its data. Enter it without a leading or trailing slash.

Review and create​

  1. Check the settings on the Review & Create screen. The database settings appear under Storage, the bucket settings under Cloud Object Storage.
  2. Select Create.

Review & Create screen of the Setup Hive Metastore form with the Basic Information, Node Configuration, Storage, and Cloud Object Storage sections and the Create button

The service is ready when its Status is Healthy. This takes about 10 minutes.

Next steps​