Skip to content

Walkthrough Tour ​

This walkthrough guides you through obtaining a trial license, creating compute clusters, loading data, running SQL statements, and connecting to a third-party tool. It assumes that you have completed a public installation of Yellowbrick.

Overview ​

The walkthrough includes the following steps:

  1. Request and install a trial license.
  2. Create the following two compute clusters:
    a. One for data loading
    b. One for querying
  3. Load sample data.
  4. Create a role and users.
  5. Run SQL statements.
  6. Connect to DBeaver.

1. Request and Install a Trial License ​

  1. Log in to Yellowbrick Manager. A banner indicating an unlicensed installation is displayed at the top of the page.
  2. Click the banner link or navigate to Instance Management → Instance Management → License.

    Note: Instance Management is accessible by using the cube icon in the left pane.

  3. Apply for a trial license. You will receive the license key through an email within a few minutes (check your Junk or Spam folder if necessary).
  4. Click Install a License. Copy the license key from the email and paste in to the text field.
  5. Upon installation, you will receive a 30-day trial license supporting up to 128 vCPUs.

2. Create Two Compute Clusters ​

Yellowbrick Manager supports managing multiple compute clusters. Initially, only the instance you named during deployment is displayed.

Perform the following steps:

a. Create the small-query Cluster: ​

  1. Navigate to Instance Management → Compute Clusters. An empty grid is displayed.
  2. Click Cluster.
  3. Create a cluster named "small-query" with one small node (latest version). Default settings include the following:
    • Auto-suspend after 5 minutes of idle time.
    • Auto-resume on query execution (initial SQL statements might take a few minutes).
    • Default Workload Management Profile.
  4. Wait a few minutes for Kubernetes to provision the hardware.

b. Create the small-load Cluster: ​

  1. Repeat the above process to create a small-load cluster with same settings.
  2. Verify that both clusters appear in the grid.

3. Load Sample Data ​

  1. Navigate to Query Editor (third icon ">-" in the left pane).
  2. Create the "yellowbrick_trial" database.
  3. Click Sample Catalog and select Premier League Database.
  4. Choose Setup/Load 1.
  5. Ensure small-load is selected in the Cluster dropdown and yellowbrick_trial is selected as the database.
  6. Click Run to execute the pre-populated SQL statements. After completion, the premdb schema should contain five tables.
  7. Load additional data:
    • Clear the SQL editor.
    • Select Premier League Database → Setup/Load 2 from the Sample Catalog.
    • Run the SQL statements to populate the newmatchstats table with 774,540 rows.

4. Create a Role and Users ​

  1. Navigate to Instance Management → Access Control → Roles.
  2. Click Role to create an analyst role with default cluster and no additional privileges.
  3. Go to the Users tab and click User to create two users:
    • "ybtools10"
    • "ybapps10"
  4. Assign both users to the analyst role with small-query as their default cluster.
  5. Set user passwords.

    Note: Use single sign-on with MFA in production environments.

Grant Permissions: ​

In the Query Editor, run the following:

sql
GRANT USAGE ON CLUSTER "small-query" TO analyst;
ALTER USER ybtools10 SET search_path TO premdb;
ALTER USER ybapps10 SET search_path TO premdb;

5. Run SQL Statements ​

Perform the following steps:

  1. Grant the analyst role access to tables:
sql
GRANT SELECT ON ALL TABLES IN SCHEMA premdb TO analyst;
  1. Log out and log back in as ybtools10.
  2. Choose yellowbrick_trial as the Database.
  3. In Query Editor, confirm cluster settings:
sql
SELECT * FROM current_cluster();
SELECT default_cluster();
  1. Choose small-query as the Cluster, if not pre-selected.
  2. Run the following SQL statements to retrieve match statistics:
sql
SELECT t1.season_name, t1.winners, homegoals + awaygoals AS total
FROM (
    SELECT season_name, winners, SUM(SUBSTR(ftscore, 1, 1)::int) AS homegoals
    FROM premdb.season JOIN premdb.match ON season.seasonid = match.seasonid
    GROUP BY season_name, winners
) t1
JOIN (
    SELECT season_name, winners, SUM(SUBSTR(ftscore, 3, 1)::int) AS awaygoals
    FROM premdb.season JOIN premdb.match ON season.seasonid = match.seasonid
    GROUP BY season_name, winners
) t2 ON t1.season_name = t2.season_name
ORDER BY 1, 2;

6. Connect to DBeaver ​

Perform the following steps:

  1. Download DBeaver and install it.
  2. Create a new database connection:
    • Navigate to Database → New Database Connection → Yellowbrick.
    • Enter the values for the following:
      • Host: Take the Host/Port from the Instance Management page of the Yellowbrick Manager
      • Database: "yellowbrick_trial"
      • Username: "ybapps10"
      • Password: Enter password for the Username ybapps10

Sample Connection Setup: ​

DBeaver Connection Setup

View the Database in DBeaver: ​

Premier League Database in DBeaver

You can now run SQL statements as ybapps10 within DBeaver.

✅ You have successfully completed the walkthrough.