본문으로 건너뛰기

Run Vantage Express on UTM

노트

You can now get a hosted instance of Vantage for free at https://clearscape.teradata.com.

Overview

This how-to shows how to gain access to a Teradata database by running it on your local machine. Once you finish the steps you will have a working Teradata Vantage Express database on your computer.

노트

Starting with version 17.20, Vantage Express includes the following analytics packages: Vantage Analytics Library, Bring Your Own Model (BYOM), API Integration with AWS SageMaker.

Prerequisites

  1. A Mac computer. Both Intel and M1/2 chips are supported.
노트

Vantage Express runs on x86 architecture. When you run the VM on M1/2 chips, UTM has to emulate x86. This is significantly slower then virtualization. If you determine that Vantage Express on M1/M2 is too slow for your needs, consider running Vantage Express in the cloud: AWS, Azure, Google Cloud.

  1. 30GB of disk space and enough CPU and RAM to be able to dedicate at least one core and 4GB RAM to the virtual machine.
  2. Admin rights to be able to install and run the software.
노트

No admin rights on your local machine? Have a look at how to run Vantage Express in AWS, Azure, Google Cloud.

Installation

Download required software

  1. The latest version of Vantage Express. If you have not used the Teradata downloads website before, you will need to register.
  2. The latest version of UTM.

Run UTM installer

  1. Install UTM by running the installer and accepting the default values.

Run Vantage Express

  1. Go to the directory where you downloaded Vantage Express and unzip the downloaded file.

  2. Start UTM, click on the + sign and select Virtualize (for Intel Macs) or Emulate (for M1 Macs).

  3. On Operating System screen select Other.

  4. On Other screen select Skip ISO Boot.

  5. On Hardware screen allocate at least 4GB of memory and at least 1 CPU core. We recommend 10GB RAM and 2 CPUs.

    UTM Hardware

  6. On Storage screen accept the defaults by clicking Next.

  7. On Shared Direct screen click Next.

  8. On Summary screen check Open VM Settings and click Save.

  9. Go through the setup wizard. You only need to adjust the following tabs:

    • QEMU - disable UEFI Boot option
    • Network - expose ssh (22) and Vantage (1025) ports on the host computer:

    UTM Network

  10. Map drives:

    • Delete the default IDE Drive.
    • Map the 3 Vantage Express drives by importing the disk files from the downloaded VM zip file. Make sure you map them in the right order, -disk1, -disk2, -disk3 . The first disk is bootable and contains the database itself. Disks 2 and 3 are so called pdisks and contain data. As you import the files UTM will automatically convert them fro vmdk into qcow2 format. Make sure that each disk is configured using the IDE interface:

    UTM Drives

    • Once you are done mapping all 3 drives, your configuration should look like this:

    UTM Drives Final

  11. Save the configuration and start the VM.

  • Press [ENTER] to select the highlighted LINUX boot partition.

Teradata Data Distribution

  • On the next screen, press ENTER again to select the default SUSE Linux kernel.

Teradata Data Distribution

  • After completing the bootup sequence a terminal login prompt as shown in the screenshot below will appear. Don't enter anything in the terminal. Wait till the system starts the GUI.

Wait for GUI

  • After a while the following prompt will appear - assuming that you did not enter anything after the command login prompt above. Press okay button in the screen below.

OK Security Popup

  • Once the VM is up, you will see its desktop environment. When prompted for username/password enter root for both.

VM Login

  • The database is configured to autostart with the VM. To confirm that the database has started go to the virtual desktop and start Gnome Terminal.

Start Gnome Terminal

  • In the terminal execute pdestate command that will inform you if Vantage has already started:
노트

To paste into Gnome Terminal press SHIFT+CTRL+V.

You want to wait till you see the following message:

See examples of messages that pdestate returns when the database is still initializing.

PDE state is DOWN/HARDSTOP.

PDE state is START/NETCONFIG.

PDE state is START/GDOSYNC.

PDE state is START/TVSASTART.

PDE state is START/READY. PDE state is RUN/STARTED.

DBS state is 1/1: DBS Startup - Initializing DBS Vprocs PDE state is RUN/STARTED.

DBS state is 1/5: DBS Startup - Voting for Transaction Recovery PDE state is RUN/STARTED.

DBS state is 1/4: DBS Startup - Starting PE Partitions PDE state is RUN/STARTED.

  • Now that the database is up, go back to the virtual desktop and launch Teradata Studio Express

Start Teradata Studio Express

  • When you first start it you will be offered a tour. Once you close the tour, you will see a wizard window to add a new connection. Select Teradata:

New Connection Profile

  • On the next screen, connect to the database on your localhost using dbc for the username and password:

New Connection

Run sample queries

  1. We will now run some queries in the VM. To avoid copy/paste issues between the host and the VM, we will open this quick start in the VM. Go to the virtual desktop, start Firefox and point it to this quick start.
  2. Once in Teradata Studio Express, go to Query Development perspective (go to the top menu and select Window -> Query Development).
  3. Connect using the previously created connection profile by double-clicking on Database Connections -> New Teradata.
  4. Using dbc user, we will create a new database called HR. Copy/paste this query and run it by hitting the run query button (Run Query Button) or pressing [F5] key:
  • Let’s create a sample table and insert some data and query it. We will first create a table to hold employee information:
  • Now, let's insert a record:
  • Finally, let's see if we can retrieve the data:

You should get the following results:

Summary

In this guide we have covered how to quickly create a working Teradata environment. We used Teradata Vantage Express in a VM running on VMware. In the same VM, we ran Teradata Studio Express to issue queries. We installed all software locally and didn't have to pay for cloud resources.

Next steps

Further reading

노트

If you have any questions or need further assistance, please visit our community forum where you can get support and interact with other community members.

기타 관심 사항