OrdersME

Create an Orders Domain ..

Workshop - OrdersME

Creating a Pentaho Metadata Domain

  1. Start Metadata Editor:

Windows (Powershell):

cd \
cd Pentaho/design-tools/metadata-editor/
./metadata-editor.bat

Linux:

cd
cd Pentaho/design-tools/metadata-editor/
./metadata-editor.sh
  1. Start the Pentaho Server (not required if using Pentaho labs):

Windows (Powershell):

cd \
cd Pentaho/server/pentaho-server
./start-pentaho.bat

Linux:

cd
cd /opt/pentaho/server/pentaho-server
sudo ./start-pentaho.sh

Follow the guide below to create your OrdersME domain:

Connect to the Database

A connection represents connection information of a specific database, and acts as the parent in the hierarchy for all physical tables and physical columns that are defined for that database.

Pentaho metadata models can connect to most common relational databases using JDBC. The Pentaho Metadata Editor (and the Pentaho Metadata Architecture) supports a vast and rich set of data sources. Before you begin defining your business model, you must first describe the database or data source that you would like to model. You do this by defining one or more connections in the editor.

JDBC Connection

Define a Domain & JDBC Connection

Before you begin defining your business model, you must first describe the database or data source that you would like to model.

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

New Domain - OrdersME
  1. Right-mouse click on Connections or: File > New > Connection

New Database Connection
  1. Select the installation environment and enter the connection settings:

Enterprise Edition

If you've downloaded & installed the on-prem Windows 30-day Enterprise Edition then configure the connection with the following settings:

Field
Parameter

Connection name

hsqldb:sampledata

Connection Type

Hypersonic

Access

JNDI

JNDI name

SampleData

JNDI (Java Naming and Directory Interface) is a Java API that allows applications to look up and access resources—like databases, message queues, or LDAP directories—from a central naming or directory service. Instead of hardcoding resource details into your application, you reference a JNDI name (like java:/comp/env/jdbc/MyDB), and the application server manages the actual connection details, making applications more portable and flexible.

JNDI Connection

Adding JDBC driver

Before you can connect to a data source in any Pentaho server or client tool, you must first install the appropriate database driver.

Before copying a new JDBC driver, ensure that there is not a different version of the same JAR in the destination directory. If there is, you must remove the old JAR to avoid version conflicts.

  1. Copy the JDBC driver to:

~/Pentaho/design-tools/metadata-editor/lib/JDBC/

  1. Once the driver JAR is in place, you must restart the server or client tool.

Last updated

Was this helpful?