OrderStarCustomer

Manipulating Metadata Properties ..

Workshop - OrdersStarCustomer

Metadata Properties

  1. Start Metadata Editor:

Windows (PowerShell):

Linux:

  1. Start the Pentaho Server (not required if using Pentaho Labs):

Windows (PowerShell):

Linux:

Follow the guide below to create your OrderStarCustomer domain:

Define a Domain & JDBC Connection

In the OrderStarCustomer workshop, the foundational step involves creating a new domain file and establishing a JDBC database connection that links the Pentaho Metadata Editor to the physical data source. The connection named "hsqldb:sampledata" is configured as a Hypersonic database type using Native JDBC access, pointing to localhost on port 9001 with the database name "sampledata" and credentials (pentaho_admin/password).

After successfully testing the connection, four physical tables are imported from the database into the metadata domain's physical layer: PRODUCTS (product dimension), ORDERFACT (fact table containing transactional order data), CUSTOMER_W_TER (customer dimension with territory information), and DIM_TIME (time dimension).

These imported tables form the physical foundation of the metadata model and can be verified in the Connections tree under hsqldb:sampledata, representing the raw database structures that will later be transformed into business-friendly abstractions through the Business Model and Business View layers.

  1. To define a new domain, select: File > New > Domain File from the main menu.

  2. Right-mouse click on Connections or: File > New > Connection:

Field
Parameter

Connection name

hsqldb:sampledata

Connection Type

Hypersonic

Access

Naitive (JDBC)

Host name

localhost

Database Name

sampledata

Port Number

9001

User Name

pentaho_admin

Password

password

  1. Click Test.

  2. Click OK to dismiss the Database Connection Test dialog, and then click OK to close the Database Connection dialog.

  3. Leave the Metadata Editor and the Import Tables dialog open.


Import Tables

The next step is to import table metadata from your data source into the physical layer and then add the table metadata to the abstract business layer.

  1. If the Import Tables dialog is not open, right-click hsqldb:sampledata and choose Import Tables.

  2. In the Import Tables dialog, press and hold the Ctrl key and use the mouse to select the following tables:

PRODUCTS

ORDERFACT

DIM_TIME

CUSTOMER_W_TER

The ORDERFACT table is the FACT table for the star schema.

  1. Click OK to import the table metadata.

  2. Expand Connections > hsqldb:sampledata and verify each of the tables appears in the physical layer.

Last updated

Was this helpful?