evaluation technical

Upload: raghunathanece

Post on 05-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Evaluation Technical

    1/33

    The Pentaho BI Suite Technical Evaluator's Guide

  • 7/31/2019 Evaluation Technical

    2/33

  • 7/31/2019 Evaluation Technical

    3/33 | T

    Contents

    Introduction...............................................................................................................................Is This Guide For You?..............................................................................................................................

    Prerequisites...............................................................................................................................................Hardware Requirements..................................................................................................................

    Software Requirements....................................................................................................................

    Evaluation Overview...................................................................................................................................Installation.................................................................................................................................

    Using the Windows Installation Utility........................................................................................................

    Installing on Linux.......................................................................................................................................Using the Linux Installation Utility....................................................................................................

    Starting the Servers At Boot Time On Linux...................................................................................Verifying the Installation..............................................................................................................................11

    Create, Publish, and Share Reports........................................................................................Starting Report Designer............................................................................................................................Exploring the Report Designer Interface....................................................................................................

    Creating a Basic Report..............................................................................................................................1Refining Your Report..................................................................................................................................

    Adding a Parameter....................................................................................................................................Publishing Your Report to the Pentaho BI Platform...................................................................................Ad hoc Reporting Tutorial..........................................................................................................................

    Analyzing Data with Pentaho Analyzer......................................................................................................Creating a New Analyzer Report.....................................................................................................

    Enhancing the Pentaho Analyzer Report........................................................................................Adding Filters to an Analyzer Report..............................................................................................

    Exporting the Analyzer Report........................................................................................................

    Dashboards............................................................................................................................. 2Dashboard Designer Tutorial......................................................................................................................

    Advanced Concepts and Tasks...............................................................................................The Pentaho Enterprise Console...............................................................................................................Supported Data Source Types...................................................................................................................Adding a Pentaho Database Connection....................................................................................................2

    Adding a JDBC Driver.....................................................................................................................Adding a JNDI Data Connection to Tomcat...............................................................................................

    Appendix: List of JDBC Class Names.............................................................................................Creating a SQL Query in Report Designer................................................................................................

    Pentaho Software Technology....................................................................................................................33

  • 7/31/2019 Evaluation Technical

    4/33Pentaho BI Suite Official Documentation | Introduction

    Introduction

    This guide walks technical users through the process of performing a critical evaluation of the Pentaho BI Suite

    Enterprise Edition version 3.6.0

    Pentaho offers a low-cost open source alternative to traditional proprietary business intelligence software. Proprietary

    BI companies like to control the evaluation process in order to mask the overwhelming technical barriers in installingand configuring their software, so they typically charge prospective clients for a "proof-of-concept" implementation,

    integrated with the client's data, and that is essentially the only evaluation option they offer. Pentaho does not charge

    for software evaluations, even for its Enterprise Edition offerings -- anyone can download the Pentaho BI Suite and usea free 30-day evaluation license key. However, no charge means there's also no consultant to do all of the work for

    you, or to stand over your shoulder and personally walk you through using and evaluating these rather sophisticatedproducts. This guide is essentially a free replacement for that consultant, meant to satisfy prospective Pentaho

    customers who want to save money by performing an initial evaluation on their own. There are still Pentaho consultantsalespeople, and pre-sales support specialists to help you with more advanced procedures, and if you still want that

    proof-of-concept after you've performed your initial evaluation, a Pentaho consultant can make that happen.

    Is This Guide For You?

    This guide's intended audience is relatively broad, but decidedly technically inclined. You might be anyone from a chie

    information officer, IT manager, BI administrator, or database administrator, to someone who reports to one of those

    positions. One thing is certain, however: You should be comfortable with technical details and complex tutorials. Ifyou are not an IT professional, or if you otherwise require a simpler business intelligence evaluation experience thatexplains many of the related concepts along the way, you may be better suited to the Getting Started With Pentahoguide.

    Prerequisites

    At this point, you should have already outlined your business problems and commenced a project to solve them througbusiness intelligence software. You should expect to budget an hour to perform the initial evaluation, which includes

    installing the Pentaho BI Suite Enterprise Edition 3.6.0, creating a data-driven report in Report Designer using theincluded sample data, and working with ad hoc reporting in the Pentaho User Console.

    If at any time you run into a technical problem that is not covered in this guide, contact your Pentaho salesrepresentative for pre-sales support.

    The Pentaho BI Suite Enterprise Edition includes an application server, sample data in an HSQLDB database, and a

    pre-configured MySQL database instance that will hold sample reports, schedules, and program settings. This packagis not functionally different from the Enterprise Edition version that you would likely deploy to a production environmenPentaho Enterprise Edition customers also have access to a manual deployment package that enables sysadmins to

    build their own Pentaho BI Server Web application for an existing production application server and database. So if yocompany is purely an Oracle or PostgreSQL shop, you won't be forced to use MySQL.

    For evaluation purposes, you will be installing the application server, database, and client tools on the same machine.In a production installation, you would ordinarily install the client tools on workstation machines, and the BI Server on a

    dedicated server. The unified system requirements are explained below.

    Note: The BI Suite supports common enterprise authentication technologies such as LDAP, Active Directory,Central Authentication Service (single sign-on), and existing JDBC user account tables in other databases.However, configuring the BI Suite to work with third-party authentication services is beyond the scope of this

    guide. Contact your Pentaho sales representative if you need further assistance with more sophisticatedevaluation scenarios.

    Hardware Requirements

    The Pentaho BI Suite software does not have strict limits on computer or network hardware. As long as you meet the

    minimum software requirements (note that your operating system will have its own minimum hardware requirements),Pentaho is hardware agnostic. There is, however, a recommended set of minimum system specifications:

    Server:

  • 7/31/2019 Evaluation Technical

    5/33Pentaho BI Suite Official Documentation | Introduct

    RAM At least 2GB

    Hard drive space At least 2GB for the software, and more for solution and

    content files

    Processor Dual-core AMD64 or EM64T

    Workstation:

    RAM At least 1GB

    Hard drive space At least 1GB for the software, and more for solution andcontent files

    Processor Dual-core AMD64 or EM64T

    It's possible to use less capable machines, but in most realistic scenarios, the too-limited system resources will result i

    an undesirable level of performance.

    Your environment does not have to be 64-bit, even if your processor architecture supports it; while all modern desktop

    workstation, and server machines have 64-bit processors, they often ship by default with 32-bit operating systems. Ifyou want to run the Pentaho BI Suite in a pure 64-bit environment, you will have to install a 64-bit operating system,ensure that your solution database and Java Runtime Environment are 64-bit, and install the BI Suite via the archive-

    based or manual deployment methods.

    Note: A 32-bit JRE has a hard memory limit of 2GB (1.5GB on Windows), so if you have 2GB or more of RAMit pays to use a 64-bit JRE on a 64-bit operating system.

    Software Requirements

    Note: The system requirements listed below apply to the BI Suite. The BI Suite graphical installation utility,however, will only work on Windows or Linux.

    In terms of operating systems, Windows (XP SP2, 2003, Vista, 7) modern Linux distributions (SUSE Linux Enterprise

    Desktop and Server 10 and Red Hat Enterprise Linux 5 are officially supported, but most others should work), Solaris10, and Mac OS X 10.5 are all officially supported.

    No matter which operating system you use, you must have the Sun Java Runtime Environment (JRE) version 1.5 or1.6 (sometimes referenced as version 5.0 or 6.0, respectively) installed. 1.4.2 and previous versions will not work, and

    Pentaho does not officially support them.

    Note: The GNU Compiler for Java, or GCJ for short, interferes with the way many native Java programswork on Linux, including some of the components of the Pentaho BI Suite. If you are using a Linux distributionthat installs GCJ by default (which includes all of the most popular distros), then before you begin installation

    you must remove, disable, or circumvent GCJ. If you cannot remove it, you can simply ensure that yourPENTAHO_JAVA_HOME variable is properly set (instructions for this are below), and add the Java RuntimeEnvironment's /bin/ directory to the beginning of your PATH variable in ~/.bashrc or /etc/environment, then relo

    before continuing.

    Workstations will need to have reasonably modern Web browsers to access Pentaho's Web interface. Internet Explore6 or higher; Firefox 3.6 or higher (or the Mozilla or Netscape equivalent); and Safari 2.0.3 or higher will all work.

    Your environment can be either 32-bit or 64-bit as long as it meets the above requirements.

    The aforementioned configurations are officially supported by Pentaho. Other operating systems such as FreeBSD an

    OpenBSD; other Java virtual machines like Blackdown; other application servers such as Liferay and Websphere; and

    other Web browsers like Opera may work without any problems. However, the Pentaho support team will probably notbe able to help you if you have trouble installing or using the BI Suite under these conditions.

    Note: Some Pentaho client tools, such as Metadata Editor, Aggregation Designer, Pentaho Data Integration,and Design Studio, require that the Eclipse SWT JAR be in your Java classpath. This can be an issue inscenarios where standalone client tools are installed onto a machine that does not also have the BI Serverinstalled, particularly on platforms other than Windows and Linux.

    Note: The Pentaho Reporting engine requires a graphical environment in order to create charts. If you areinstalling the BI Server onto a headless Linux, BSD, or Solaris server and do not have X11R6 on it, you shouldinstall the Xvfb package on your server to satisfy the charting dependency.

  • 7/31/2019 Evaluation Technical

    6/33Pentaho BI Suite Official Documentation | Introduction

    Evaluation Overview

    Note: You do not have to follow the suggested workflow. If you're focused on creating reports with your owndata, feel free to skip directly to the sections that apply to your situation.

    This guide walks you through installing the reporting and analysis elements of the Pentaho BI Suite version 3.6.0, whic

    includes Report Designer, Metadata Editor, Design Studio, and the BI Platform. Only the user-facing components arecovered in this evaluation, so there are no instructions for data preparation tools here. There is a separate guide for

    evaluating Pentaho Data Integration, however.

    The bulk of this evaluation should take a little over an hour, during which time you will accomplish the following goals:

    1. Download and install the Pentaho BI Suite Enterprise Edition installer: 15 minutes.

    2. Read and follow a walkthrough for creating a basic, data-driven report with the included sample data: 10 minutes.

    3. Refine the report to include conditional text formatting, user-controllable parameters, and a chart: 10 minutes.

    4. Publish your report to the Pentaho BI Platform and share it with others: 10 minutes.

    5. Create an ad hoc report with the wizard built into the Pentaho User Console: 5 minutes.

    6. Create an Analyzer Report in the Pentaho User Console: 10 minutes.

    7. Create a dashboard using the new Dashboard Designer utility in the Pentaho User Console: 20 minutes.

    Once you've seen the power of the BI Suite's content creation tools, if you are technically inclined and have more time

    to spend on your evaluation, you can move onto more advanced concepts and tasks:1. Explore the Pentaho Enterprise Console: 15 minutes.

    2. Connect to your own database: 20 minutes.

    3. Create ad hoc reports and Pentaho Analyzer reports using your own data: Variable.

    4. Learn about the underlying technologies that drive Pentaho Reporting and Analysis Enterprise edition: 10 minutes

  • 7/31/2019 Evaluation Technical

    7/33Pentaho BI Suite Official Documentation | Installat

    Installation

    The graphical installation utility is easy to use, so it requires little instruction on Windows. Linux users must execute

    some additional steps in order to install the BI Suite properly, however. Refer to the section below that applies to youroperating system.

    Using the Windows Installation Utility

    These instructions are for Windows users only. Linux users should refer to the Linux installation instructions instead.

    Note: You must disable any anti-spyware software before installing the BI Suite. Some types of softwarefirewalls and anti-virus scanners may also block the BI Server or prevent it from operating normally.

    Step-by-step instructions for using the installer are below. You may need to adjust the instructions for your specificsituation.

    1. Run the installation utility as you would any other program - double-click it.

    2. When the installation utility starts, you'll see a Pentaho splash screen. Click Next.

    3. Accept the license agreement to continue.

    4. When prompted for which Pentaho applications you want to install, uncheck all options except BI Server and DataIntegration Server. If you have a Pentaho Dashboards Enterprise Edition or Pentaho Analysis Enterprise Editionlicense key, select the checkboxes for the Dashboard Designer and Pentaho Analyzer options, respectively.

    If you do not have the requisite support entitlements, the Dashboard Designer and Pentaho Analyzer plugins will nowork, and they will change your Pentaho User Console interface permanently. There is no direct harm in installingthese plugins if you do not have support entitlements for them; however, you will have to ensure that your users are

    properly trained to avoid the disabled functions in the Pentaho User Console. If necessary, it is possible to installDashboard Designer and Pentaho Analyzer later by using archive packages.

  • 7/31/2019 Evaluation Technical

    8/33Pentaho BI Suite Official Documentation | Installation

    Note: If you install Pentaho Analyzer, you must also install Dashboard Designer due to a softwaredependency.

    5. When asked if you would like to install the Pentaho sample data, select No if this is a production install.

    The sample data is useful for evaluating the BI Suite, but tends to get in the way in a production environment.

    6. Next, you'll be asked to choose a directory to install to. Feel free to select a new path, but for documentationcontinuity and support purposes, you should leave the actual directory name alone. The default directory is ~/pentaho/

    You cannot install into a directory that already exists.

    7. In the next screen, type in a root password for the MySQL database.The BI Suite installer provides a MySQL database to store your reports and analysis views. The root password isfor the internal database root user, not the global system root (administrator) user. This is the account that has tota

    control over all MySQL databases.

    8. The next step asks for a publish password, which controls access to the BI Server from Pentaho client tools such aReport Designer and Schema Workbench.

    If you do not set a publish password, you will not be able to publish from client tools to the BI Server.

    9. Next, you'll be asked to supply account details for a Pentaho administrator account.

    This will be both your Pentaho User Console and Pentaho Enterprise Console login information.

    10.Optional: If any of the default Pentaho BI and DI Server ports (8088, 8080, 8012, 9092, 9080, 8443, 8143, and 330are not available on your system, the default numbers will increment by one until an available port is found.

    11.A summary screen will show you an overview of which BI Suite components you've chosen to install, and theports that all of the necessary services will run on, . Click Next to leave this screen, then Next again to commenceinstallation.

    Once the installation wizard is complete, the BI Server and DI Server should be up and running with default parameter

    You have the option of starting the Pentaho Enterprise Console, Pentaho User Console, and Pentaho Data Integrationduring the last step of the installation process. You should choose the of these options so that you can properly test an

    configure your BI Server installation. If you choose them, your default Web browser will open and display tabs for theconsole pages that you selected.

    Note: Two terminal windows will remain open after installation. Closing them will terminate the BI Server and DServer processes for this session.

    Note: The BI Server is now installed as a service in Windows, meaning it will start and stop when Windows

    starts up and shuts down. The Pentaho Enterprise Console and Data Integration Server must be manually runfrom the Start menu, however.

    Installing on Linux

    Because of Linux' more modular and secure design, the installation instructions are different than for Windows.

    The licensing technology in the BI Server requires that you take all of the steps below to ensure that all system users

    have access to content and tools through the Pentaho User Console. If you used the graphical installation utility toevaluate the Pentaho BI Suite on Linux before you purchased a subscription, you did not have to establish a new user

    account or worry much about licensing. However, the procedure is more involved on a production server, where morethan one user will be accessing the Pentaho User Console or managing BI Server licenses.

    Note: Pentaho strongly discourages administrators from installing to the /opt/ directory due to its complicatepermissions requirements and general isolation from the rest of the system.

    Using the Linux Installation Utility

    These instructions are for Linux users only. Windows users should refer to the Windows installation instructions instea

    Important: If you do not have an X server installed, you can run the installation utility in text mode by invokingthe --mode text switch. If you like, you can also perform the installation on a Linux workstation, then transferover the /pentaho/ and ~/.pentaho/ directories to your server after installation.

  • 7/31/2019 Evaluation Technical

    9/33Pentaho BI Suite Official Documentation | Installat

    Note: The installation utility's graphical mode defaults to the GTK graphics toolkit. If you do not have therequisite GTK libraries on your system, you can run the installer with the --mode xwindow switch to useOpenMotif instead.

    Step-by-step instructions for using the installer are below. You may need to adjust the instructions for your specific

    situation.

    1. Open a terminal window.

    2. If it is not already there, copy the installation utility to the pentaho home directory.

    cp /home/rwilco/Desktop/pentaho-bi-suite-3.6-linux-installer.bin /home/pentaho/

    3. Switch to the pentaho user account.su pentaho -

    4. Set execute permissions on the installation utility.

    chmod +x ./pentaho-bi-suite-3.6-linux-installer.bin

    5. Run the installation utility.

    /home/rwilco/Desktop/pentaho-bi-suite-3.6-linux-installer.bin

    6. When the installation utility starts, you'll see a Pentaho splash screen. Click Next.

    7. Accept the license agreement to continue.

    8. When prompted for which Pentaho applications you want to install, uncheck all options except BI Server and DataIntegration Server. If you have a Pentaho Dashboards Enterprise Edition or Pentaho Analysis Enterprise Editionlicense key, select the checkboxes for the Dashboard Designer and Pentaho Analyzer options, respectively.

    If you do not have the requisite support entitlements, the Dashboard Designer and Pentaho Analyzer plugins will

    not work, and they will change your Pentaho User Console interface irreversibly. There is no direct harm in installinthese plugins if you do not have support entitlements for them; however, you will have to ensure that your users areproperly trained to avoid the disabled functions in the Pentaho User Console. If necessary, it is possible to install

    Dashboard Designer and Pentaho Analyzer later by using archive packages.

    Note: If you install Pentaho Analyzer, you must also install Dashboard Designer due to a softwaredependency.

    9. When asked if you would like to install the Pentaho sample data, select No if this is a production install.

    The sample data is useful for evaluating the BI Suite, but tends to get in the way in a production environment.

    10.Next, you'll be asked to choose a directory to install to. Feel free to select a new path, but for documentationcontinuity and support purposes, you should leave the actual directory name alone. The default directory is ~/pentaho/

  • 7/31/2019 Evaluation Technical

    10/33| Pentaho BI Suite Official Documentation | Installation

    You cannot install into a directory that already exists.

    11.In the next screen, type in a root password for the MySQL database.

    The BI Suite installer provides a MySQL database to store your reports and analysis views. The root password isfor the internal database root user, not the global system root (administrator) user. This is the account that has tota

    control over all MySQL databases.

    12.The next step asks for a publish password, which controls access to the BI Server from Pentaho client tools such aReport Designer and Schema Workbench.

    If you do not set a publish password, you will not be able to publish from client tools to the BI Server.

    13.Next, you'll be asked to supply account details for a Pentaho administrator account.

    This will be both your Pentaho User Console and Pentaho Enterprise Console login information.

    14.Optional: If any of the default Pentaho BI and DI Server ports (8088, 8080, 8012, 9092, 9080, 8443, 8143, and 330are not available on your system, the default numbers will increment by one until an available port is found.

    15.A summary screen will show you an overview of which BI Suite components you've chosen to install, and theports that all of the necessary services will run on, . Click Next to leave this screen, then Next again to commenceinstallation.

    Once the installation wizard is complete, the BI Server and DI Server should be up and running with default parameter

    You have the option of starting Pentaho Enterprise Console, Pentaho Data Integration, and the Pentaho User Consoleduring the last step of the installation process. You should de-select the Data Integration option, since it is not installed

    with the Data Integration Server, and choose both the User Console and Enterprise Console options so that you canproperly test and configure your BI Server installation. If you choose them, your default Web browser will open and

    display tabs for the console pages that you selected.

    Starting the Servers At Boot Time On Linux

    This procedure assumes that you will be running your BI Server, DI Server, and Pentaho Enterprise Console serverunder the pentaho local user account, as recommended by Pentaho and explained earlier in this guide. If you are usina different account to start these services, use it in place of the pentaho user account in the script below.

    You can start and stop the BI and DI Servers at any time by running the start-pentaho.sh and stop-pentaho.sh scripin the /pentaho/server/biserver-ee/ and /pentaho/server/data-integration-server/ directories,respectively, or you can start and stop the entire stack -- MySQL, Tomcat, DI Server, and the Pentaho EnterpriseConsole -- with the provided ctlscript.sh script in the /pentaho/ directory. To start the Tomcat server automatically atboot time, and stop automatically during shutdown, follow the below procedure.

    1. With root permissions, create a file in /etc/init.d/ called pentaho.

    2. Using a text editor, copy the following content into the new pentaho script, changing mysql to the name of the initscript for your database if it is running on the remote machine, or remove mysql entirely if you are using a remotedatabase. Secondly, you must adjust the paths to the BI Server, DI Server, and Pentaho Enterprise Console scriptsto match your situation.

    #!/bin/sh -e### BEGIN INIT INFO# Provides: pentaho# Required-Start: networking# Required-Stop:# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Description: Pentaho BI Server

    ### END INIT INFO

    case "$1" in"start")su - pentaho -c "/home/pentaho/pentaho/mysql/scripts/ctl.sh start"su - pentaho -c "/home/pentaho/pentaho/server/biserver-ee/start-pentaho.sh"su - pentaho -c "/home/pentaho/pentaho/server/data-integration-server/start-pentaho.sh"su - pentaho -c "cd /home/pentaho/pentaho/server/enterprise-console && ./start-pec.sh;;"stop")su - pentaho -c "/home/pentaho/pentaho/mysql/scripts/ctl.sh stop"su - pentaho -c "/home/pentaho/pentaho/server/biserver-ee/stop-pentaho.sh"su - pentaho -c "/home/pentaho/pentaho/server/data-integration-server/stop-pentaho.sh

  • 7/31/2019 Evaluation Technical

    11/33Pentaho BI Suite Official Documentation | Installatio

    su - pentaho -c "cd /home/pentaho/pentaho/server/enterprise-console && ./stop-pec.sh";;*)echo "Usage: $0 { start | stop }";;esacexit 0

    3. Save the file and close the text editor.

    4. Make the init script executable.

    chmod +x /etc/init.d/pentaho

    5. Add the pentaho init script to the standard runlevels so that it will run when the system starts, and stop when thesystem is shut down or rebooted, by using the update-rc.d command.

    This command may not exist on your computer if it is not Debian-based. If that is the case, consult your distribution

    documentation or contact your distribution's support department to determine how to add init scripts to the defaultrunlevels.

    update-rc.d pentaho defaults

    The Pentaho BI Server will now start at boot time, and shut down when the system stops or restarts.

    Verifying the Installation

    Follow the below instructions to verify that your Pentaho BI Suite installation was successful.

    1. Switch to the Web browser window that the graphical installer opened upon completing the installation process.

    2. Log into the Pentaho User Console with the username Joe and the password password, then click Login

    3. Go to the View menu, then click Browser.

    The file browser pane will appear on the left edge of the window.

    4. Click the + next to Steel Wheels.

    5. Open at least three items in the Analysis, Reporting, and/or Dashboards folders and verify that the contentdisplays without errors.

    If you've completed the above steps without any errors or difficulties, then the BI Suite is properly installed andconfigured for evaluation purposes. If you've encountered any errors or unexpected behavior, contact your Pentaho

    sales representative for assistance.

  • 7/31/2019 Evaluation Technical

    12/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    Create, Publish, and Share Reports

    Now that you've got the BI Suite installed and have verified that it is working, you're ready to start creating a basic repo

    with the sample data. Once created, you'll publish the report to the output format of your choice, and to the Pentaho BServer, where you will be able to share the report more directly. You'll start with Pentaho's most sophisticated reportintool, Report Designer, and then move on to creating an ad hoc report through the BI Platform.

    Pentaho Report Designer is a pixel-perfect report creation tool that allows you to have total control over how your data

    is selected, refined, formatted, and displayed in a variety of useful output formats. The Pentaho BI Platform combines

    elements of Pentaho Reporting and Pentaho Analysis into an easy-to-use Web interface that enables report schedulinand sharing.

    Starting Report Designer

    Follow the process below to start Report Designer.

    1. Click the Report Designer entry in the Pentaho folder in the Programs section of your Start menu, or navigateto the /pentaho/design-tools/report-designer/ directory and run report-designer.bat on Windows, or report-designer.sh on Linux.

    2. Before the program starts, it runs a version checking utility. You can click either option in the version checker screeto start Report Designer if you just downloaded this file, it is assuredly the most current version, so you may not

    need to enable this feature right now.

    After the version check is complete (or skipped), Report Designer will start. Report Designer displays a Welcomescreen and a default workspace at startup. The Welcome screen provides you with a brief introduction to the program,

    some instructions for getting started, and access to sample content and recently opened reports. For this walkthroughyou won't be following the instructions on the Welcome screen, though if you would like to experiment with Report

    Designer a little before continuing, feel free.

    Exploring the Report Designer Interface

    Report Designer's interface is similar to that of other graphic design and layout tools. A typical menu and button bar

    are at the top of the screen; a tool palette for adding design elements is on the left; and on the right are two panes that

    contain data and structure elements, and show the properties of a selected report element.

    The palette on the left side of the main window is where most of your design tools are located:

  • 7/31/2019 Evaluation Technical

    13/33Pentaho BI Suite Official Documentation | Create, Publish, and Share Repor

    The Structure, Data, Style, and Attribute panes show your report elements, data sources, and their configurable option

    Creating a Basic Report

    Make sure the HQLDB (Hypersonic) Sample Database is running before you start this exercise. Go to Start ->Pentaho Enterprise Edition -> Server Management -> Start Sample Database. Alternatively, if you used the

  • 7/31/2019 Evaluation Technical

    14/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    installer, you can start HSQLDB by navigating to .../pentaho/server/hsql-sample-database and clickingstart_hypersonic.bat (or .sh). If you installed the BI Suite from a .zip or .tar.gz file, navigate to .../biserver-

    ee/data and click start_hypersonic.bat (or .sh).

    As an introduction to Report Designer, follow this procedure to create a simple report that shows which products are

    associated with cancelled orders, sorted by product l ine and territory.

    1. From the Welcome screen, click the Evaluation Blank Report under Samples.

    The report appears in the Design view. The Design view enables you to create and adjust the report layoutmanually.

    The sample report file you just opened was designed specifically for this evaluation guide. It comes with a predefinedata source linked to the sample data included in the evaluation package. The only element in this report is a head

    at the top that says "Pentaho Report Designer Walkthrough Sample Report." You can remove this header if you like

    2. Drag and drop a Label element from the Palette onto the Page Header band.

    The page header appears at the absolute top of every page in the report.

    3. Double-click the label to edit it, then type in Cancelled orders for all regions.

    4. Click the font size drop-down box in the formatting toolbar, and select 24 in the list.

    This increases the text size to 24 point, which is more appropriate for a page title than 12 point.

    5. Click and drag the horizontal resize handles on the Label element you just created until the field is as large as thepage; drag the vertical resize handles until the text fits appropriately in the space.

    Expanding the field out to the size of the page will allow you to center the text more easily.

    6. With the label selected, click the Center Aligns the Element icon in the formatting toolbar.The text is now perfectly centered in the page header.

    7. Click the Data tab and click Data Sets.

    8. Click and expand the JDBC (SampleData) folder.

    Note: Click the small icon to the left of the JDBC (SampleData) folder. Click the icon next to the small iconto the left of the default folder.

    The TERRITORY, STATUS, PRODUCTNAME, PRODUCTLINE, and TOTALPRICE fields are listed.

    9. Click TERRITORY to select it, then click and drag it into the left side of the Details band section of the grid.

    The Details band will repeat itself for as many iterations of the query elements as there are. So if TERRITORY

    contains five rows, there will be five item elements in the report, spread across as many pages as is necessary.

    10.Repeat the previous step for the PRODUCTLINE column, but drop it into the center of the Details band instead.

    11.Repeat the previous step for the PRODUCTNAME column, but drop it into the right side of the Details band instead

    12.Drag the TERRITORY field to the absolute top left of the Details band.

    13.Drag the PRODUCTLINE to the absolute top center of the Details band, then click the Center Aligns the Elementicon in the formatting toolbar.

    14.Drag the PRODUCTNAME to the absolute top right of the Details band, then click the Center Aligns the Elementicon in the formatting toolbar.

    15.Drag the TOTALPRICE to the absolute top right of the Details band, then click the Right Aligns the Element iconin the formatting toolbar.

    16.Drag the resize handles on the TERRITORY, PRODUCTLINE, PRODUCTNAME, and TOTALPRICE fields so thatthey fill all of the horizontal space in the grid. Don't change their vertical size just adjust their horizontal borders

    and orientations so that they are at the top of the Details band with their borders abutting to one another and thesides of the report, ensuring that none of them overlap.

    The three fields should appear to be one solid line when you're done resizing and repositioning them.

    Caution: Make sure elements do not overlap; if they do, they may not appear in the output.

    17.Click Preview icon (it looks like an eye) in the upper left corner of the formatting toolbar.

    Preview is a good way to verify the effects of any changes you make to a report.

    18.Go to File -> Save and save your report

  • 7/31/2019 Evaluation Technical

    15/33Pentaho BI Suite Official Documentation | Create, Publish, and Share Repor

    You now have a basic report that shows information that would be quite useful to the fictional company it belongs to. Ifyou'd like to see some of Report Designer's more advanced functionality, continue on to the next section. Otherwise,skip ahead to the next portion of this guide that appeals to you.

    Refining Your Report

    To complete this process, you must have created a report according to the directions in the previous section. Youshould have the modified evaluation_blank.report file open in Report Designer at this time.

    Being able to view properly refined and constrained data is useful, but Report Designer is capable of much more thanjust collecting and printing data; it also has many formatting options to increase the readability and visual appeal of

    your reports. Follow the below process to enhance your report with conditional formatting, borders, a company logo, adynamic report date in the footer, and a pie chart. Feel free to go to the Preview tab at any time to see your progress.

    1.Click the Select Objects icon ( ) in the toolbar.

    2. Click in the grid and drag a selection box (from right to left), around all four fields in the Details band.

    3. Go to the Format menu and select Size & Border.The Format Element dialog box appears.

    4. In the Format Element dialog box, click All.

  • 7/31/2019 Evaluation Technical

    16/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    5. Under Style, click solid.

    6. Next to Color, select black from the list.

    7. Next to Width, click the up arrow to select 1.

    8. Change the Paddings property to Left - 0; Right- 0; Top - 5; Bottom- 5.

    9. Click OK to exit the Format Element dialog box and apply your formatting changes.

    10.Click the PRODUCTLINE field to select it.

    11.Click the Structure tab and click bg-color (backbround color) under the Style tab.12.

    Click the Add Expression icon ( ) next to bg-color.The Expression dialog box appears.

    13.Click the ellipsis (...) to open the Formula Editor dialog box.

    14.Select Logical from the Category drop-down box.

    15.Double-click the IF statement in the list on the left.

    16.Click the Select Field icon, (on the far right), next to the Test line.

    17.In the Select Field box, choose PRODUCTLINE and click OK to return to the Formula Editor.

    18.Add ="Classic Cars" to the Test line.Your condition should look like this: [PRODUCTLINE]="Classic Cars"

    19.In the Then_value line type red; in the Otherwise_value line, click white.

  • 7/31/2019 Evaluation Technical

    17/33Pentaho BI Suite Official Documentation | Create, Publish, and Share Repor

    20.Click OK to exit the Formula Editor dialog box; click Close to exit the Expression dialog box.

    Click Preview ( ). Notice that all cancelled orders in the Classic Cars product line will now be highlighted in red.

    21.Drag and drop an Image element from the palette into the Report Header band.

    22.Double-click the image element to display the Resource dialog box. Click (...) to browse for the logo.png file locatein the Legacy folder under samples (.../report-designer/samples/Legacy).

    This graphic is a Steel Wheels Inc. logo developed by Pentaho for demonstration purposes.

    23.Click Embed in Report and click OK.

    24.Reposition and resize the logo until it is the width of the report.

    Report Designer will downsize images proportionately according to the size of the element. You may not see theimage until you resize it.

    25.Drag and drop a Date field element in the right corner of the Page Footer.

    26.Double-click the new date field, and type and select Report date for a field name.

    Note: Click Preview to see the date displayed at the bottom of the report.

    27.Drag and drop a Chart element from the palette to the Report Footer band.

    28.Use the resizing handles to center and stretch the chart. You can also adjust the width of the band.

    29.Double-click the sample chart.The Edit Chart dialog box opens.

    30.The type of chart most appropriate for your report is a pie chart. In the top portion of the Edit Chart dialog box, selethe pie chart icon.

    Note: Notice that the pie chart properties that define its look-and-feel are listed in the left pane of the EditChart dialog box. Properties associated with the data in the chart are listed in the right pane.

    31.In the chart-title text box, type, Highest Cancelled Order Costs.

    32.On the right, next to value-column, select TOTALPRICE from the list.

    This column determines the numerical data that the pie chart will represent.

    33.Next to series-by-field, click the ellipsis (...) to open the Edit Array dialog box.

    34.Click Add and double-click in the white area under Value.

    35.Select PRODUCTLINE from the list and click OK to exit the Edit Array dialog box.

    This determines how the TOTALPRICE data will be constrained in the pie chart.

    36.Click OK to save the chart settings.

  • 7/31/2019 Evaluation Technical

    18/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    Your report is now branded for the fictional Steel Wheels company, easier to read, and specifically highlights cancelledorders relating to the Vintage Cars product line. This is still only the beginning, but you should now have a goodimpression of the power and flexibility of Pentaho Report Designer.

    Adding a Parameter

    In addition to locally executing a report directly from Report Designer, you can also publish it to the Pentaho BI Platfor

    where it can then be viewed using the Pentaho User Console. If you've created a parameterized report (a report thatrequires user input through the BI Platform Web interface in order to run), you must publish to the BI Platform in order

    take advantage of its interactive elements.

    Follow the instructions below to add parameterization to your report, publish it to the BI Platform, and run it from the

    solution repository.

    1. Click the Data tab and double-click on default.The JDBC Data Source dialog box appears.

    2.In the JDBC Data Source dialog box, click (the Edit icon on the right).

    3. Under Choose Schema, select Public, and click OK to open the Query Designer.

    4. Under the PRODUCTS table, right-click on PRODUCTLINE and select add where condition.

    5. In the condition edit dialog box, type ${ENTER_PRODUCTLINE} and click OK.Important: Use {curly brackets} not (parentheses) around your parameter.

    6. Click OK to exit the remaining dialog boxes and to save your query.

    Publishing Your Report to the Pentaho BI Platform

    You have created and formatted a report; now you are ready to share the report with your users.

    1. Click File -> Publish. Alternatively, click .

  • 7/31/2019 Evaluation Technical

    19/33Pentaho BI Suite Official Documentation | Create, Publish, and Share Repor

    If you haven't saved the report, a warning message reminds you to save it. The Login dialog box appears, pre-populated with credentials valid for the evaluation.

    2. Click OK.The Publish to Server dialog box appears.

    3. In the Publish to Server dialog box, type in a report name and description into the appropriate fields.

    4. Under Location, save the report in the .../steel-wheels/reports folder.

    5. Select html as the Output Type.

    6. In the Publish Password text field, type the publish password and click OK.

    Note: If you followed the installation instructions in the Getting Started with Pentaho Guide, the defaultpublish password is password.

    A success message appears.

    7. Click Yes to go directly to the Pentaho User Console to view the report you just published.

    If you want to access the report later, log into the BI Server by going to http:// localhost:8080 in your Web browsethen navigate to the Reporting Examples directory in the Solution Browser. You should see your published repoin the list. If not, click Tools -> Refresh Repository.

    8. Log in as Joe. Joe's password is password.

    9. In the Select Line field, type in any of the product lines from the sample data: Classic Cars, Motorcycles, VintageCars, Ships, Trains, or Planes, then click Ok.

    You can use your browser's back button to revisit this page and enter a different product line if you choose.

    You now have a dynamic report that BI Platform users can run at any time, with updated data, that concentrates on

    specific product lines. The conditional formatting is still set to give Classic Cars a red background, and the pie chart isconfigured to compare cancelled order costs among all product lines, so there is still some adjustment to do to put thisreport into production. However, at this point in your evaluation, you've seen most of Report Designer's key features; if

    you'd like to go back into Report Designer and make more changes to the cancelled orders report, feel free. This guidehowever, will proceed to a walk through of the BI Platform's ad-hoc reporting capabilities.

  • 7/31/2019 Evaluation Technical

    20/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    Ad hoc Reporting Tutorial

    You must be logged into the Pentaho User Console before continuing.

    This walkthrough shows you how to create a simple, template-based report that shows which territory generates themost sales.

    1. Click the Create New Report button in the middle of the Pentaho User Console screen.

    The ad hoc query wizard will start.

    2. In the first step of the wizard, select Orders in the Select a Data Source pane.

    As you become more familiar with Ad Hoc Reports features, you can add your own relational or flat file (CSV) data

    sources to ad hoc reports. See the Getting Started with Pentaho Guidefor details.

    3. In the Apply a Template field, select a predefined report template that appeals to you.

    A thumbnail preview of the template will appear in the Template Details field. A template specifies a variety ofproperties in the report that affect its appearance, like font size and background colors for various report elements.

    4. Click Next.

    5. In the Available Items list, click the Territory business column and drag it to the upper right into the Level 1 box.

    This will determine how the data is grouped.

    6. Drag and drop the Amount and Buy Price into the Details box on the right.

    This determines which fields to display for the given groups.

    7. Click Go to preview how these new items have affected the report, then close the preview tab when you're done.

    8. Click Next.

    9. Click the Territory item in the Groups list.

    A list of general options will appear on the right.

    10.Click Center.

    This will center the territory name above each table, making it easier to read.

    11.Click Amount, then click Add in the Sort Detail Columns area on the right.

    This will sort the sales amounts from lowest to highest.

    12.Click Go to test the new change, or Next to continue to the next part of the wizard.

    13.To set the header, footer, description, paper type, and page orientation, change the on-screen values for theseelements accordingly.

    PDF is the only output type that has a concept of a page, so the Page portion of the Header and Footer sectionsonly applies to PDFs.

    14.Click the blue Save button in the top toolbar to save your report. In the ensuing file dialog, navigate to the locationyou want to save the report to, and type in a filename for the report.

    You can continue to modify your report after it's been saved; just click Save to update the report file after you'vemade changes.

    You now have a report that shows how much revenue is coming from each sales territory, and the itemized price of

    each purchased product. As you can see, ad hoc reporting is quicker and simpler than Report Designer, but doesn't

  • 7/31/2019 Evaluation Technical

    21/33Pentaho BI Suite Official Documentation | Create, Publish, and Share Repor

    offer nearly the same level of design detail, nor does it have advanced reporting features like conditional formatting orparameterization.

    Analyzing Data with Pentaho Analyzer

    Pentaho Analyzer is the front-end interface of the Pentaho Analysis product line. Using Pentaho Analyzer, you canquery the data in a database without having to understand how the database is structured. Pentaho Analyzer allowsyou to explore your data dynamically. You can drill down into the data to discover hidden details that may help you

    make important business decisions. Pentaho Analyzer also presents data multi-dimensionally and lets you select whatdimensions and measures you want to explore.

    Pentaho Analyzer is an interactive analysis tool; it provides you with a rich drag-and-drop user interface that allows yoto create reports quickly based on your exploration of your data. You can also display Pentaho Analyzer reports in a

    dashboard.

  • 7/31/2019 Evaluation Technical

    22/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    Creating a New Analyzer Report

    In this exercise of the Pentaho Analyzer you will be creating a report that displays the actual versus budgeted expense

    by region for each department in the fictitious Steel Wheels company (SampleData).

    Follow the instructions below to start creating an Analyzer report.

    1. In the Pentaho User Console menubar, go to File -> New and select Analyzer Report.Pentaho Analyzer opens.

    2. Select your Schema and Cube from the corresponding lists. For the purposes of this exercise, select SampleData

    and Quadrant Analysis, respectively.

    Note: The list of available schemas and cubes are provided by your administrator. A schema is the structuof the relational database and includes tables, fields, views, and more. A cube is a data structure that allowinformation in a database to be analyzed quickly and from multiple perspectives.

    3. Click OK.A blank report appears.

    4. In the list of fields (on the right), click and drag Department to the Analyzer workspace in the left pane.The Department column appears in the workspace.

    5. Click and drag the Budget and Actual fields to the workspace.The columns appear in the workspace in the order in which they were placed.

    6. Right-click the Budget column to display the Edit Column dialog box. Select Column Name and Format ->

    Currency ($) from the Format list so that your values display as dollar amounts. Repeat this step for the Actualcolumn.

    Note: If you need help to understand the options in any Pentaho Analyzer dialog box, click Help.

    7. Click and drag the Region column to the report. (Read the note below.)

    Note: Notice that the Region column appears in the workspace; however, you want this column to be thefirst column in the report.

    8. In the workspace, click and drag the Region column to the left of the Department column.

    Pentaho Analyzer is designed to provide you with great flexibility when designing the visual structure of your report

    9. At this point you have a functioning report and you can view your data in chart form. Click (Switch to ChartFormat) to examine your report data in a chart format. The default display is a bar chart but if you click (Choose

    Another Chart Type) you can select a different chart type to display your data.

    10.Save your report before continuing the exercise. In the Pentaho User Console, click (Save As). When the SaveAs dialog box appears, save your report as Regional Expense Report under /steel wheels/analysis andclick OK.

  • 7/31/2019 Evaluation Technical

    23/33Pentaho BI Suite Official Documentation | Create, Publish, and Share Repor

    Enhancing the Pentaho Analyzer Report

    You have created a working Analyzer report; however you can make the data in the report more useful if you can show

    the difference, in dollar amounts, between the actual and budgeted expenses.

    Follow the instructions below to enhance your report.

    1. In the Pentaho User Console menubar, go to File -> Open.

    2. Browse to /steel wheels/analysis and select Regional Expense Report.

    3.Click (Switch to Table Format) if you are in chart mode when the report appears.

    4. Right-click the Actual column and select User Defined Number -> Calculated Number.The New Calculated Number dialog box appears.

    5. In the Name field, type Difference.

    This step creates a new column in the report.

    6. Select Currency ($) from the Format list so that the data in your report displays as dollar amounts.

    7. In the right pane of the dialog box, click so that a minus sign appears next to [Actual]-.

    8. Click Budget in the left pane and click to move it to the right pane so that you create a formula that subtracts thebudgeted expenses from the actual expenses, [Actual]-[Budget]. Click OK.The Difference column appears in the report.

    9. Right-click the Region column and select Show Subtotals.

    The subtotals for each region is displayed in the report.10.Save the report.

    Adding Filters to an Analyzer Report

    Filters are used to restrict or limit the data that is presented in a report. For example, a report shows sales by product

    line. A filter on Quarter restricts the data so that sales for the fourth quarter in 2006 only are shown. If you were toadd a regional filter of Europe, the report displays data pertaining to European sales in the fourth quarter of 2006,

    exclusively. If you were to add a filter on the Product Line field to exclude Surfing, the report displays data pertainingto European sales in the fourth quarter of 2006 that are not in the surfing product line, exclusively.

    Follow the steps below to add a filter to your sample report:

    1. Open the Regional Expense Report.

    2. Under the report name click Show/Hide Filters next to No Filter in Use.A workspace for filters appears at the top of the report.

    3. Click and drag the Region field/column into the filter workspace.The Filter on Region dialog box appears. Notice that the values, (Central, Eastern, Southern, and Western),associated with the Region field are listed in the dialog box. You can choose one of these values or you can enableMatch a specific string to filter the report on a specific string of data.

    4. Select Eastern from the list of values and click (Add Selected) to move it into the right pane.Eastern appears with a green checkmark next to it in the right pane.

    5. Select Western from the list of values and click (Add Selected) to move it into the right pane.Western appears with a green checkmark next to it in the right pane.

    6. Click OK to exit the dialog box.

    Your sample report displays data for the Eastern and Western regions only.7. Click Undo or Reset to to go back to the previous version of the report.

    Exporting the Analyzer Report

    Pentaho Analyzer allows you to export your report as a PDF, a Microsoft Excel spreadsheet, or a CSV file.

    Follow the instructions below to export your report:

    1. In the Pentaho Analyzer toolbar, click More and select Export Report.The export options list appears.

    2. Select Export to PDF.A PDF of the report appears.

  • 7/31/2019 Evaluation Technical

    24/33| Pentaho BI Suite Official Documentation | Create, Publish, and Share Reports

    3. Examine your report.

    Notice that Pentaho Analyzer appends metadata about the report itself in the PDF. Information about the report

    author, the location of the source file, fields used, filter summary, are included.

  • 7/31/2019 Evaluation Technical

    25/33Pentaho BI Suite Official Documentation | Dashboard

    Dashboards

    Reporting may only be the first step for you in terms of information delivery. When you have data that needs to be

    updated frequently or in real-time and delivered to a large number of people, static reports become cumbersome andbandwidth-intensive. In these situations, you may be better served by a Web portal that shows rich and interactivecharts, graphs, and stoplight reporting dashboard elements. Pentaho offers a Dashboard Designer tool to create

    dashboards from existing content (charts, reports, Pentaho Analyzer reports, graphics, etc.) with a variety of interestinfeatures, including:

    Stoplight alerting and conditional formatting Google Maps integration

    Adobe Flash widget support

    To see some dashboards in action, click the plus sign next to Steel Wheels in the browser pane on the left to expand (If you don't see a browser pane, go to the View menu in the Pentaho User Console, then select Browser. The browspane will appear on the left). A list of example files will appear in the lower left pane; in it, double-click on the GoogleMaps, Revenue Analysis, and Top 10 Customers items to see different interactive dashboard examples. These aresimilar in appearance and functionality to actual production dashboards used by Pentaho customers.

    Pentaho offers a Dashboards Enterprise Edition support module that provides two service enhancements: A DashboaDesigner plugin for the Pentaho User Console, which makes simple dashboard creation capabilities available to

    business users; and Pentaho dashboard development consultative support and expertise available to your JSPdevelopers.

    Dashboard Designer Tutorial

    You must be logged into the Pentaho User Console.

    Context for the current task

    Note: See the Getting Started with Pentaho Guidefor details about new dashboard features.

  • 7/31/2019 Evaluation Technical

    26/33| Pentaho BI Suite Official Documentation | Dashboards

    1. Go to the File menu, then select Dashboard from the New sub-menu.

    A New Dashboard page will appear with the default 2 by 2 layout selected.

    2. Click back to the Templates tab. then select the two-column dashboard layout from the horizontal list.

    The dashboard layout will change from four panes to two.

    3. Click the Theme tab to switch to the Theme pane.

    4. Select the Cool Blue theme.

    5. In Objects list on the left, click the Untitled 1 item.

    The left panel in the two-column layout will be selected.

    6. In the upper right corner of the Untitled 1 panel click the Insert Content down arrow and choose File. In thebrowser, navigate to /steel-wheels/Dashboards/Widget Library/KPIs/Sales Year /Year (Flash) and click Select.

    7. In the Title field below, type Yearly Sales Trend.

    8. Click Apply.

    9. Click Untitled 2 in the Objects list to switch to the right panel.

    10.In the upper right corner of the Untitled 2 panel click the Insert Content down arrow and choose File. In thebrowser, navigate to /steel-wheels/dashboards/Widget Library/KPIs/Productline Mix - Total Sales (flash) andclick Select.

    11.In the Title field in the lower portion of the screen, type Product Share.

    12.Click Apply.

    13.Click Filters in the Objects list.

    The Filter Editor will appear on the right.

    14.Click the Show Filter Toolbar checkbox.

    This toolbar enables user-interactive controls at the top of the dashboard.

    15.Click the + in the upper right corner of the Filter Editor.

    The Filter Properties dialog box appears.

    16.In the Name field, type Territory.

    This is display name for the filter control label.

    17.Enable Display Name as Control Label if you want users to see the display name in the filter toolbar.

    18.In the Filter Properties dialog, click +The List Value dialog appears.

    19.Type North America into the Label field, and NA in the Value field, then click Add.20.Add two more list values for Europe/EMEA and Asia Pacific/APAC, then click Close.

    21.Click Ok in the Filter Properties dialog to finish creating the filter list.

    A drop-down box will appear in the filter toolbar at the top.

    22.In the Objects list, click Yearly Sales Trend.

    23.In the Region line, click the down-arrow and select Territory.

    24.Repeat the previous step for Product Share.

    You now have a functional dashboard that shows bar and pie chart data filtered by sales region. To switch to a differenregion, select it from the Territory drop-down box in the upper left corner of the dashboard. You can now save your

    dashboard and share it normally through the Pentaho User Console. Feel free to experiment further with DashboardDesigner.

  • 7/31/2019 Evaluation Technical

    27/33Pentaho BI Suite Official Documentation | Dashboard

  • 7/31/2019 Evaluation Technical

    28/33| Pentaho BI Suite Official Documentation | Advanced Concepts and Tasks

    Advanced Concepts and Tasks

    Up till this point, you've been reading specific, easy-to-follow procedures for working with reports. From an end-

    user's perspective Pentaho's client tools and the Pentaho User Console are all easy to use, but the technologies thatReport Designer and the BI Platform depend on are more technically sophisticated. This section contains advancedinstructions, information, and tips for more technically savvy evaluators.

    The Pentaho Enterprise Console

    Among the most visible exclusive Enterprise Edition features is the central administration and configuration interface

    called Pentaho Enterprise Console. You can access this application by opening a Web browser and navigating tohttp://localhost:8088.

    Note: This application will be accessible only for as long as your 30-day evaluation license is active.

    Through the Pentaho Enterprise Console, you can establish data sources, user accounts, user roles, and configure ancontrol nearly every aspect of the Pentaho BI Platform.

    Supported Data Source Types

    In addition to the JNDI-based Pentaho database connections that are established through the Pentaho EnterpriseConsole, the BI Suite can connect to the following data source types:

    Spreadsheets Flat files with tab- or comma-separated values

    Any JNDI-compliant database

    Mondrian MDX files

    You can access these directly through the data source configuration function of Report Designer.

    Adding a Pentaho Database Connection

    To define a Pentaho database connection:

    1. In the Pentaho Enterprise Console go to Administration > Database Connections.

  • 7/31/2019 Evaluation Technical

    29/33Pentaho BI Suite Official Documentation | Advanced Concepts and Tas

    2. Click the General icon to display basic configuration options.

    3. Click the plus sign (+) (add) if you cannot find your database in the default list.The Add Database Connection dialog box appears.

    4. Type a connection name that concisely describes the data source.

    5. Type or select the Driver Class from the list. The database driver name you select depends on the type of databasyou are accessing. For example, org.hsqldb.jdbcDriveris a sample driver name for a HSQLDB database.

    Note: If your JDBC driver is not available, see Adding a JDBC Driver.

    6. Type the User Name and Password required to access your database.7. Type or select the URL from the list. This is the URL of your database; for example,jdbc:hsqldb:hsql://localhost/

    sampledata. JDBC establishes a connection to a SQL-based database and sends and processes SQL statements.

    8. Click Test.A success message appears if the connection is established.

    9. Click OK to save your entries.

    Adding a JDBC Driver

    Before you can connect to a data source in any Pentaho server or client tool, you must first install the appropriatedatabase driver. Your database administrator, CIO, or IT manager should be able to provide you with the proper driver

    JAR. If not, you can download a JDBC driver JAR file from your database vendor or driver developer's Web site. Once

    you have the JAR, follow the instructions below to copy it to the driver directories for all of the BI Suite components thaneed to connect to this data source.

    Note: Microsoft SQL Server users frequently use an alternative, non-vendor-supported driver called JTDS. Ifyou are adding an MSSQL data source, ensure that you are installing the correct driver.

    Backing up old drivers

    You must also ensure that there are no other versions of the same vendor's JDBC driver installed in these directories.If there are, you may have to back them up and remove them to avoid confusion and potential class loading problems.

    This is of particular concern when you are installing a driver JAR for a data source that is the same database typeas your Pentaho solution repository. If you have any doubts as to how to proceed, contact your Pentaho support

    representative for guidance.

    Installing JDBC drivers

    Copy the driver JAR file to the following directories, depending on which servers and client tools you are using

    (Dashboard Designer, ad hoc reporting, and Analyzer are all part of the BI Server):

    Note: For the DI Server: before copying a new JDBC driver, ensure that there is not a different version of thesame JAR in the destination directory. If there is, you must remove the old JAR to avoid version conflicts.

    BI Server:/pentaho/server/biserver-ee/tomcat/lib/

    Enterprise Console:/pentaho/server/enterprise-console/jdbc/

    Data Integration Server:/pentaho/server/data-integration-server/tomcat/webapps/pentaho-diWEB-INF/lib/

    Data Integration client:/pentaho/design-tools/data-integration/libext/JDBC/

    Report Designer:/pentaho/design-tools/report-designer/lib/jdbc/

    Schema Workbench:/pentaho/design-tools/schema-workbench/drivers/

    Aggregation Designer:/pentaho/design-tools/agg-designer/drivers/

    Metadata Editor:/pentaho/design-tools/metadata-editor/libext/JDBC/

    Note: To establish a data source in the Pentaho Enterprise Console, you must install the driver in both theEnterprise Console and the BI Server or Data Integration Server. If you are just adding a data source throughthe Pentaho User Console, you do not need to install the driver to Enterprise Console.

    Restarting

    Once the driver JAR is in place, you must restart the server or client tool that you added it to.

  • 7/31/2019 Evaluation Technical

    30/33| Pentaho BI Suite Official Documentation | Advanced Concepts and Tasks

    Connecting to a Microsoft SQL Server using Integrated or Windows Authentication

    The JDBC driver supports Type 2 integrated authentication on Windows operating systems through the

    integratedSecurity connection string property. To use integrated authentication, copy the sqljdbc_auth.dll file to allthe directories to which you copied the JDBC files.

    The sqljdbc_auth.dll files are installed in the following location:

    \sqljdbc_\\auth\

    Note: Use the sqljdbc_auth.dll file, in the x86 folder, if you are running a 32-bit Java Virtual Machine (JVM)even if the operating system is version x64. Use the sqljdbc_auth.dll file in the x64 folder, if you are running a

    64-bit JVM on a x64 processor. Use the sqljdbc_auth.dll file in the IA64 folder, you are running a 64-bit JVM oan Itanium processor.

    Adding a JNDI Data Connection to Tomcat

    If you would prefer to use a JNDI connection to your database instead of the standard Pentaho method, follow the

    instructions below:

    1. Consult the list of JDBC class namesto determine the class name and connection string for your database.

    2. Stop the Tomcat server by running the stop-pentaho script.

    3. Edit the /pentaho/server/biserver-ee/tomcat/conf/server.xml with a text editor.

    4. Anywhere inside of the element, add the XML snippet shown below:

    The above example shows a simple PostgreSQL configuration. Replace the Resource name, username,password, driverClassName, and url parameters (or any relevant connection settings) to match your connectioninformation.

    5. Save and close the server.xml file.

    6. Start the Tomcat server by running the start-pentaho script.

    Tomcat can now properly connect to your database.

    Appendix: List of JDBC Class NamesA comprehensive list of JDBC databases and their associated class names and connection strings.

    Note: The table below may have forced line breaks to improve readability in some formats.

    Database name Connection string Class name

    IBM DB2 jdbc:db2://hostname:port/

    databasename

    COM.ibm.db2.jdbc.app.DB2Driver

    JDBC-ODBC Bridge jdbc:odbc:databasename sun.jdbc.odbc.JdbcOdbcDriver

    Microsoft SQL Server jdbc:weblogic:mssqlserver4:databasename@hostname:port

    weblogic.jdbc.mssqlserver4.Driver

    Sybase (jConnect 5.2) jdbc:sybase:Tds:hostname:port com.sybase.jdbc2.jdbc.SybDriver

    Sybase (jConnect 4.2 and earlier) jdbc:sybase:Tds:hostname:port com.sybase.jdbc.SybDriver

    PostgreSQL (v7.0 and later) jdbc:postgresql://hostname:port/ databasename

    org.postgresql.Driver

    PostgreSQL (v6.5 and earlier) jdbc:postgresql://hostname:port/databasename

    postgresql.Driver

    Oracle OCI 9i jdbc:oracle:oci:@SID oracle.jdbc.driver.OracleDriver

    Oracle OCI 8i jdbc:oracle:oci8:@SID oracle.jdbc.driver.OracleDriver

  • 7/31/2019 Evaluation Technical

    31/33Pentaho BI Suite Official Documentation | Advanced Concepts and Tas

    Database name Connection string Class name

    MySQL (MM.MySQL Driver) jdbc:mysql://hostname:port/

    databasename

    org.gjt.mm.mysql.Driver

    Microsoft SQL Server 2000 (Microsoft

    Driver)

    jdbc:microsoft:sqlserver://

    hostname:port[;DatabaseName=databasename]

    com.microsoft.sqlserver.

    jdbc.SQLServerDriver

    Microsoft SQL Server (Sprinta Driver) jdbc:inetdae:hostname:port?database=databasename

    com.inet.tds.TdsDriver

    Microsoft SQL Server (JTurbo Driver) jdbc:JTurbo://hostname:port/

    databasename

    com.ashna.jturbo.driver.Driver

    HSQLDB (v1.3 and later) jdbc:hsqldb:hsql://hostname:port/

    databasename

    org.hsqldb.jdbcDriver

    HSQLDB (v1.2 and earlier) jdbc:hsqldb:hsql://hostname:port/ databasename

    hSql.hDriver

    Interbase (InterClient Driver) jdbc:interbase://hostname/databasename

    interbase.interclient.Driver

    InstantDB (v3.14 and later) jdbc:idb:databasename org.enhydra.instantdb.jdbc.idbDriver

    InstantDB (v3.13 and earlier) jdbc:idb:databasename jdbc.idbDriver

    Informix Dynamic Server jdbc:informix-sqli:// hostname:port/databasename:

    INFORMIXSERVER=servername

    com.informix.jdbc.IfxDriver

    IDS Server jdbc:ids://hostname:port/conn?

    dsn='ODBC_DSN_NAME'

    ids.sql.IDSDriver

    Firebird (JCA/JDBC Driver) jdbc:firebirdsql:[// hostname[:port]/]databasename

    org.firebirdsql.jdbc.FBDriver

    Cloudscape RMI jdbc:rmi://hostname:port/ jdbc:cloudscape:databasename

    RmiJdbc.RJDriver

    Cloudscape jdbc:cloudscape:databasename COM.cloudscape.core.JDBCDriver

    PointBase Embedded Server jdbc:pointbase://embedded[:port]/ databasename

    com.pointbase.jdbc.jdbcUniversalDriv

    Oracle Thin jdbc:oracle:thin:@hostname:port:SID oracle.jdbc.driver.OracleDriver

    Creating a SQL Query in Report Designer

    In Report Designer, data sources are defined through SQL or MQL queries, or through a Mondrian MDX file. If youaren't an SQL guru, you can still form a good query through Report Designer's built-in SQL Query Builder. The reportinexamples in this guide have thus far involved using a mostly blank report file that contains a predefined query. This

    was done to enable Pentaho Reporting evaluators to dive into Report Designer quickly without having to worry aboutforming a query. Follow the below process to establish a connection to the sample HSQLDB database and create the

    same query that came with the example report. This query will constrain the data so that it only reveals data pertainingto cancelled orders, sorted by sales territory, product line, total price, and product name.

    1. Close the Report Designer Welcome screen.

    The Welcome screen is replaced by the Design view.

    2. Go to File -> New to display an untitled report.

    3. Right-click on Data Sets under the Data tab on the right, then selectJDBC... in the context menu.The JDBC Data Source configuration window appears.

    4. Click on SampleData (Hypersonic) under Connections to select it.

    5.Under Available Queries, click (Add).

    6. You must now enter an SQL query to pull in information to use in the report, but since you aren't familiar with the

    sample data structure, you'll need some assistance. Click (the Edit icon on the far right).

    The Choose Schema dialog box appears.

    7. Select Public and click OK.The SQL Query Designer appears.

    8. Double-click the CUSTOMER_W_TER table in the lower left pane.

  • 7/31/2019 Evaluation Technical

    32/33| Pentaho BI Suite Official Documentation | Advanced Concepts and Tasks

    All of the columns in that table will appear in a list in the right pane.

    9. Double-click the ORDERFACT table.

    10.Double-click the PRODUCTS table.

    11.Right-click each table's name, then click deselect all from the context menu.

    By default, all columns in a table are selected. If you just want to select a few of them, it's easier to deselect all andthen select only the relevant columns than it is to deselect unwanted columns by clicking checkboxes.

    12.Create a SQL JOIN by clicking on the CUSTOMERNUMBER column in the CUSTOMER_W_TER field, then clickinand dragging it to the CUSTOMERNUMBER column in the ORDERFACT sub-window.

    A grey line with a red square in the middle will appear between the two sub-windows. If there is not already a JOINbetween the ORDERFACT and PRODUCTS tables, create one now.

    13.In the CUSTOMER_W_TER table, click the checkbox next to the TERRITORY column.

    14.In the PRODUCTS table, click the checkboxes next to the PRODUCTLINE and PRODUCTNAME columns.

    15.In the ORDERFACT table, click the checkboxes next to the STATUS and TOTALPRICE columns.

    16.Right-click on the STATUS column in the ORDERFACT table, then select add where condition... in the contextmenu.

    A conditional statement window appears.

    17.Type 'Cancelled' into the lower text field, then click ok.

    This will constrain the data in the STATUS column so that only the cancelled orders are displayed.

    18.In the upper left pane, right-click on CUSTOMER_W_TER"."TERRITORY" , then select add to order-by in thecontext menu.

    This will sort the results by territory.19.Repeat the previous step for PRODUCTLINE, then PRODUCTNAME.

    This will sort the results by territory first (because it is first in the order-by list), and then by the product line, and the

    by product name within each product line.

    20.Click Preview to make sure that the lists are sorted and grouped correctly.

    21.When you're done looking at the basic query results, close the preview window, then click OK to save your queryand exit the SQL Query Builder.

    22.Click OK to exit the Configure window.

    You should now be back in the Design view of Report Designer. You are now ready to create a report using the data

    you just specified in the query.

  • 7/31/2019 Evaluation Technical

    33/33

    Your query should look like this:

    SELECT"CUSTOMER_W_TER"."CUSTOMERNUMBER","CUSTOMER_W_TER"."TERRITORY","PRODUCTS"."PRODUCTLINE","PRODUCTS"."PRODUCTNAME","ORDERFACT"."STATUS","ORDERFACT"."TOTALPRICE"

    FROM"PRODUCTS" INNER JOIN "ORDERFACT" ON "PRODUCTS"."PRODUCTCODE" =

    "ORDERFACT"."PRODUCTCODE"INNER JOIN "CUSTOMER_W_TER" ON "ORDERFACT"."CUSTOMERNUMBER" ="CUSTOMER_W_TER"."CUSTOMERNUMBER"

    WHERE"ORDERFACT"."STATUS" = 'Cancelled'

    ORDER BY"CUSTOMER_W_TER"."TERRITORY" ASC,"PRODUCTS"."PRODUCTLINE" ASC,"PRODUCTS"."PRODUCTNAME" ASC

    Note: The MQL Query Builder tool works almost identically to SQL Query Designer.

    Pentaho Software Technology

    Pentaho = options

    Commercial open source companies like Pentaho offer unique opportunities to customers who have atypical business

    intelligence needs. If you want to do something unusual with a proprietary BI product, you can't -- you're limited bya static design. Pentaho, however, provides access to the source code for its core components, including full API

    documentation. So if there is something unusual that you need to do with the Pentaho BI Suite (like completelyrearranging the user interface, or adding new features, or building your own software with Pentaho's Reporting or

    Analysis engines), you are limited only by your own budget for in-house software development. If your programmersneed help or advice, a Pentaho Enterprise Edition subscription includes developer assistance from Pentaho'sengineering department.

    The Pentaho Reporting engine

    Report Designer is one possible implementation of the Pentaho Reporting engine, formerly known as JFreeReport. Th

    engine can be integrated into existing Java applications, or you can build your own Report Designer-like user interfacefor it, or you can use it as sort of a reporting appliance that you send jobs to from other services.

    If you're looking for an embeddable reporting solution, the Pentaho Reporting engine is an excellent option because ofits source code availability, its history of successful embedding projects, and Pentaho Reporting Enterprise Edition'sdeveloper assistance options. As an Enterprise Edition customer, your application developers can get assistance from

    the Pentaho engineers who created and maintain the Reporting engine code, and get a fast track for bug fixes.

    Preparing data for Report Designer

    In order for Report Designer to interface properly with your database, you must prepare the data so that it is easier

    to work with. The Pentaho Metadata Editor is designed specifically to prepare data for Report Designer and ad hocreporting in the BI Platform by creating user-friendly names for tables and columns. If you extend your evaluation to

    include connecting to your own database, you should start with Metadata Editor, which is included in the PentahoReporting evaluation package.

    Hand-editing reports with Design Studio

    Reports published to the Pentaho BI Platform can also be accessed through other methods not covered in this