Getting started with Gravitino
There are several options for getting started with Gravitino. Installing and configuring Hive and Trino can be a little complex, so if you are unfamiliar with the technologies it would be best to use Docker.
If you want to download and install Gravitino:
- on AWS, see Getting started on Amazon Web Services
- Google Cloud Platform, see Getting started on Google Cloud Platform
- locally, see Getting started locally
If you have your own Gravitino setup and want to use Apache Hive:
- on AWS or Google Cloud Platform, see Installing Apache Hive on AWS or Google Cloud Platform
- locally, see Installing Apache Hive locally
If you prefer to get started quickly and use Docker for Gravitino, Apache Hive, Trino, and others:
- on AWS or Google Cloud Platform, see Installing Gravitino playground on AWS or Google Cloud Platform
- locally, see Installing Gravitino playground locally
If you are using AWS and want to access the instance remotely, be sure to read Accessing Gravitino on AWS externally
Index
-
Installation methods
- Explore different installation methods, from using Docker to setting up Gravitino on cloud platforms or locally.
-
Java Development Kit (JDK)
- Ensure you have the required Java Development Kit (JDK) installed to run Gravitino successfully.
-
Configuring and starting Gravitino
- Learn how to configure Gravitino, install it from binary releases or Docker images, and start the Gravitino server.
-
Getting started on AWS and GCP
- Detailed steps for setting up Gravitino on Amazon Web Services (AWS) and Google Cloud Platform (GCP), including instance setup, Java installation, and Gravitino deployment.
-
Getting started locally
- Instructions for using Gravitino locally on macOS or Linux, covering JDK installation and Gravitino setup.
-
Integrating with Apache Hive
- Information on installing and configuring Apache Hive on AWS, GCP, and locally. Docker container options for quick setup are also provided.
-
Gravitino Playground
- Explore a bundled Docker image for a Gravitino playground, incorporating tools like Apache Hive, Apache Hadoop, Trino, MySQL, and PostgreSQL.
-
Using REST to interact with Gravitino
- Examples of interacting with Gravitino via REST commands, demonstrating how to create and modify metadata.
-
Accessing Gravitino on AWS externally
- Guidelines for accessing Gravitino externally when deployed on AWS, including necessary configurations and considerations.
-
Next steps
- Concluding thoughts and suggested next steps for users who have completed the setup.
Getting started on Amazon Web Services
To begin using Gravitino on AWS, follow these steps:
-
In the AWS console, launch a new instance. Select
Ubuntuas the operating system andt2.xlargeas the instance type. Create a key pair named Gravitino.pem for SSH access and download it. Allow HTTP and HTTPS traffic if you want to connect to the instance remotely. Set the Elastic Block Store storage to 20GiB. Leave all other settings at their defaults. Other operating systems and instance types may work, but they have yet to be fully tested. -
Start the instance and connect to it via SSH using the downloaded .pem file:
ssh ubuntu@<IP_address> -i ~/Downloads/Gravitino.pemNote: you may need to adjust the permissions on your .pem file using
chmod 400to enable SSH connections. -
Update the Ubuntu OS to ensure it's up-to-date:
sudo apt update
sudo apt upgradeYou may need to reboot the instance for all changes to take effect.
-
Install the required Java Development Kit. Gravitino supports running on Java 8, 11 and 17, so you can install any of them:
sudo apt install openjdk-<version>-jdk-headlessVerify the Java version with:
java -versionYou should see information about the OpenJDK version.
-
Install Gravitino on the instance:
You can install Gravitino from the binary release package or Docker image. Follow how-to-install to install Gravitino.
Or you can install Gravitino from scratch. Follow how-to-build and how-to-install.
-
Start Gravitino using the gravitino.sh script:
<path-to-gravitino>/bin/gravitino.sh start
Getting started on Google Cloud Platform
To begin using Gravitino on GCP, follow these steps:
-
In the Google Cloud console, launch a new instance. Select
e2-standard-4as the instance type and 20 GB for the boot disk size. Allow HTTP and HTTPS traffic if you want to connect to the instance remotely. Leave all other settings as their defaults. Other operating systems and instance types may work, but they have yet to be fully tested. -
Start the instance and connect to it via the SSH-in-browser tool.
-
Update the Debian OS to ensure it's up-to-date:
sudo apt update
sudo apt upgradeYou may need to reboot the instance for all changes to take effect.
-
Install the required Java Development Kit. Gravitino supports running on Java 8, 11 and 17, so you can install any of them:
wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list
sudo apt-get update
sudo apt-get install -y java-<version>-amazon-corretto-jdkVerify the Java version with:
java -versionYou should see information about the OpenJDK version.
-
Install Gravitino on the instance:
You can install Gravitino from the binary release package or Docker image. Follow how-to-install.
Or you can install Gravitino from scratch. Follow how-to-build and how-to-install.
-
Start Gravitino using the gravitino.sh script:
<path-to-gravitino>/bin/gravitino.sh start
Getting started locally
To use Gravitino locally on macOS or Linux, follow these similar steps:
-
Install the required Java Development Kit. Gravitino supports running on Java 8, so 11 and 17, you can install any of them. Using sdkman, for example:
sdk install java <version>You can also use different package managers to install JDK, for example, Homebrew on macOS,
apton Ubuntu/Debian, andyumon CentOS/RedHat. -
Install Gravitino:
You can install Gravitino from the binary release package or Docker image, please follow the how-to-install to install Gravitino.
Or, you can install Gravitino from scratch, follow how-to-build and how-to-install.
-
Start Gravitino using the gravitino.sh script:
<path-to-gravitino>/bin/gravitino.sh start