SlideShare a Scribd company logo
1 of 7
Download to read offline
Como instalar o Pentaho BI Server CE 3.8 com o MySQL 5.1 no Mac e Linux (Servidor em
Produção).

Criado por: Caio Moreno de Souza ( @caiomsouza )
e-mail: caio@it4biz.com.br
http://blog.professorcoruja.com
http://www.it4biz.com.br
Última alteração: 7 de junho de 2011

* Este documento é uma contribuição para a Comunidade Pentaho Brasileira e deve ser
distribuido de forma gratuita.

Passo a passo de como fazer a instalação:

1) Descompactar o Pentaho BI Server CE 3.8

Link para o projeto Pentaho no Source Forge:
http://sourceforge.net/projects/pentaho/

Link para baixar o Pentaho BI Server 3.8 CE (Community Edition) (Mac e Linux)

http://sourceforge.net/projects/pentaho/files/Business%20Intelligence%20Server/3.8.0-stable/
biserver-ce-3.8.0-stable.tar.gz/download

2) Executar os 5 scripts no MySQL na sequência abaixo para criar os bancos de dados,
tabelas, grants e usuários necessários

Para ajudar nesta tarefa, recomendamos o aplicativo MySQL Workbench.

Link para download do MySQL Server 5.1
http://dev.mysql.com/downloads/mysql/


Execute cada um dos scripts na ordem correta.

1_create_repository_mysql.sql
Cria o banco de dados Hibernate
Creates the Hibernate database

2_create_quartz_mysql.sql
Cria o banco de dados Quartz
Creates the Quartz database

3_create_sample_datasource_mysql.sql
Carrega o data source do sample data dentro do banco de dados hibernate
Loads the sample data data source into the Hibernate database

4_load_sample_users_mysql.sql
Cria todos os usuários de exemplo e roles dentro do banco de dados hibernate
Creates all the sample users and roles into the Hibernate database

5_sample_data_mysql.sql
Cria o banco de dados Sample Data
Creates the sample data database

Depois de criados todos os bancos necessários para o BI Server, verifique se a estrutura criada
é a mesma que a estrutura abaixo:

   ● hibernate*
       ○ authorities
       ○ datasource
       ○ granted_authorities
       ○ users
   ● quartz
       ○ qrtz_blob_triggers
       ○ qrtz_calendars
       ○ qrtz_cron_triggers
       ○ qrtz_fired_triggers
       ○ qrtz_job_details
       ○ qrtz_job_listeners
       ○ qrtz_locks
       ○ qrtz_paused_trigger_grps
       ○ qrtz_scheduler_state
       ○ qrtz_simple_triggers
       ○ qrtz_trigger_listeners
       ○ qrtz_triggers
   ● sampledata
       ○ customer_w_ter
       ○ customers
       ○ department_managers
       ○ dim_time
       ○ employees
       ○ offices
       ○ orderdetails
○   orderfact
           ○   orders
           ○   payments
           ○   products
           ○   quadrant_actuals
           ○   trial_balance



3) Alterar o arquivo applicationContext-spring-security-jdbc.xml localizado na pasta
pentaho-solutions/system

Antes:

<!-- This is only for Hypersonic. Please update this section for any other database you are using
-->
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.hsqldb.jdbcDriver" />
<property name="url"
value="jdbc:hsqldb:hsql://localhost:9001/hibernate" />
<property name="username" value="hibuser" />
<property name="password" value="password" />
</bean>

Depois:

<!-- This is only for Hypersonic. Please update this section for any other database you are
using -->
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://localhost:3306/hibernate" />
<property name="username" value="hibuser" />
<property name="password" value="password" />
</bean>
4) Alterar o arquivo applicationContext-spring-security-hibernate.properties localizado
na pasta pentaho-solutions/system

Antes:

jdbc.driver=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:hsql://localhost:9001/hibernate
jdbc.username=hibuser
jdbc.password=password
hibernate.dialect=org.hibernate.dialect.HSQLDialect

Depois:

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/hibernate
jdbc.username=hibuser
jdbc.password=password
hibernate.dialect=org.hibernate.dialect.MySQLDialect

* Vale lembrar que para instalações do MySQL remotas é necessário alterar de localhost para o
IP da maquina.

5) Alterar o arquivo hibernate-settings.xml localizado na pasta pentaho-solutions/system/
hibernate/

Antes:

<config-file>system/hibernate/hsql.hibernate.cfg.xml</config-file>

Depois:

<config-file>system/hibernate/mysql5.hibernate.cfg.xml</config-file>

6) Alterar o arquivo context.xml localizado na pasta /tomcat/webapps/pentaho/META-INF/

Antes:

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/pentaho" docbase="webapps/pentaho/">
<Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5"
maxWait="10000" username="hibuser" password="password"
driverClassName="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:hsql://localhost/hibernate"
validationQuery="select count(*) from INFORMATION_SCHEMA.SYSTEM_SEQUENCES" />
<Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5"
maxWait="10000" username="pentaho_user" password="password"
driverClassName="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:hsql://localhost/quartz"
validationQuery="select count(*) from INFORMATION_SCHEMA.SYSTEM_SEQUENCES"/>
</Context>

Depois:

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/pentaho" docbase="webapps/pentaho/">
       <Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource"
              factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20"
maxIdle="5"
              maxWait="10000" username="hibuser" password="password"
              driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/
hibernate"
              validationQuery="select 1" />

        <Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource"
              factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20"
maxIdle="5"
              maxWait="10000" username="pentaho_user" password="password"
              driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/
quartz"
              validationQuery="select 1"/>
</Context>


7) Alterar o arquivo web.xml localizado na pasta /tomcat/webapps/pentaho/WEB-INF/

Antes:

   <!-- [BEGIN HSQLDB DATABASES] -->
   <context-param>
      <param-name>hsqldb-databases</param-name>
      <param-value>sampledata@../../data/hsqldb/sampledata,hibernate@../../data/hsqldb/
hibernate,quartz@../../data/hsqldb/quartz</param-value>
   </context-param>
   <!-- [END HSQLDB DATABASES] -->


     <!-- [BEGIN HSQLDB STARTER] -->
  <listener>
<listener-class>org.pentaho.platform.web.http.context.HsqldbStartupListener</listener-
class>
   </listener>
   <!-- [END HSQLDB STARTER] -->


Depois:

Comentar as linhas abaixo, para encontrar os pedaços procurar pelas palavras hsqldb-
databases e HsqldbStartupListener.


  <!-- [BEGIN HSQLDB DATABASES] -->

  <!-- comentar ou remover

   <context-param>
      <param-name>hsqldb-databases</param-name>
      <param-value>sampledata@../../data/hsqldb/sampledata,hibernate@../../data/hsqldb/
hibernate,quartz@../../data/hsqldb/quartz</param-value>
   </context-param>

  fim comentar ou remover -->

  <!-- [END HSQLDB DATABASES] -->


     <!-- [BEGIN HSQLDB STARTER] -->

         <!-- comentar ou remover

   <listener>
      <listener-class>org.pentaho.platform.web.http.context.HsqldbStartupListener</listener-
class>
   </listener>

     fim comentar ou remover -->

  <!-- [END HSQLDB STARTER] -->

8) Configurar o TrustedIpAddrs no arquivo web.xml localizado na pasta /tomcat/
webapps/pentaho/WEB-INF/

Antes:
<param-name>TrustedIpAddrs</param-name>
<param-value>127.0.0.1</param-value>

Depois com o seu IP:

<param-name>TrustedIpAddrs</param-name>
<param-value>127.0.0.1,[seu_endereco_ip]</param-value>

Exemplo real:

<param-name>TrustedIpAddrs</param-name>
<param-value>127.0.0.1,192.168.10.103</param-value>

9) Instalar o Saiku Plug in no Pentaho BI Server 3.8

http://blog.professorcoruja.com/2011/06/como-instalar-o-saiku-20-ga-stable-plug.html




Links utilizados como base para a criação deste tutorial.

   ●   Pentaho 3.6 with MySQL, PostgreSQL & Oracle
       http://www.prashantraju.com/projects/pentaho/

   ●   How to manually install & configure Pentaho BI server 3.5 on Ubuntu
       http://osbi.nl/2009/09/how-to-install-configure-pentaho-bi-server-3-5-on-ubuntu/

   ●   Documentos internos IT4biz IT Solutions.

More Related Content

More from IT4biz IT Solutions

Curso Gratuito Online de Open Data (Dados Abertos) e BI Open Source
Curso Gratuito Online de Open Data (Dados Abertos) e BI Open SourceCurso Gratuito Online de Open Data (Dados Abertos) e BI Open Source
Curso Gratuito Online de Open Data (Dados Abertos) e BI Open SourceIT4biz IT Solutions
 
Sugestão de indicadores para bi prefeituras
Sugestão de indicadores para bi prefeiturasSugestão de indicadores para bi prefeituras
Sugestão de indicadores para bi prefeiturasIT4biz IT Solutions
 
Sugestão de indicadores para bi de prefeituras
Sugestão de indicadores para bi de prefeiturasSugestão de indicadores para bi de prefeituras
Sugestão de indicadores para bi de prefeiturasIT4biz IT Solutions
 
It4biz apresentação bi prefeituras
It4biz   apresentação bi prefeiturasIt4biz   apresentação bi prefeituras
It4biz apresentação bi prefeiturasIT4biz IT Solutions
 
Curso de Criação de Dashboards com o Pentaho (BI Open Source)
Curso de Criação de Dashboards com o Pentaho (BI Open Source)Curso de Criação de Dashboards com o Pentaho (BI Open Source)
Curso de Criação de Dashboards com o Pentaho (BI Open Source)IT4biz IT Solutions
 
Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...
Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...
Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...IT4biz IT Solutions
 
Apresentação Aplicativo Obras do PAC no FISL 13
Apresentação Aplicativo Obras do PAC no FISL 13Apresentação Aplicativo Obras do PAC no FISL 13
Apresentação Aplicativo Obras do PAC no FISL 13IT4biz IT Solutions
 
Open Social Intelligence (PT-BR)
Open Social Intelligence (PT-BR)Open Social Intelligence (PT-BR)
Open Social Intelligence (PT-BR)IT4biz IT Solutions
 
I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012
I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012
I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012IT4biz IT Solutions
 
Cobertura Pentaho Meetup Barcelona 2009
Cobertura Pentaho Meetup Barcelona 2009Cobertura Pentaho Meetup Barcelona 2009
Cobertura Pentaho Meetup Barcelona 2009IT4biz IT Solutions
 
Aliança IT4biz (Brasil) e StrateBI (Espanha)
Aliança IT4biz (Brasil) e StrateBI (Espanha)Aliança IT4biz (Brasil) e StrateBI (Espanha)
Aliança IT4biz (Brasil) e StrateBI (Espanha)IT4biz IT Solutions
 
Alianza IT4biz (Brasil) y StrateBI (España)
Alianza IT4biz (Brasil) y StrateBI (España)Alianza IT4biz (Brasil) y StrateBI (España)
Alianza IT4biz (Brasil) y StrateBI (España)IT4biz IT Solutions
 

More from IT4biz IT Solutions (20)

Program PCM13
Program PCM13Program PCM13
Program PCM13
 
Welcome to PCM 13
Welcome to PCM 13Welcome to PCM 13
Welcome to PCM 13
 
Curso Gratuito Online de Open Data (Dados Abertos) e BI Open Source
Curso Gratuito Online de Open Data (Dados Abertos) e BI Open SourceCurso Gratuito Online de Open Data (Dados Abertos) e BI Open Source
Curso Gratuito Online de Open Data (Dados Abertos) e BI Open Source
 
Saiku Chart Plus
Saiku Chart PlusSaiku Chart Plus
Saiku Chart Plus
 
C*Tools Training São Paulo
C*Tools Training São PauloC*Tools Training São Paulo
C*Tools Training São Paulo
 
Instalação C*Tools
Instalação C*ToolsInstalação C*Tools
Instalação C*Tools
 
Curso Usuário Final
Curso Usuário FinalCurso Usuário Final
Curso Usuário Final
 
Criando Dashboards Wizard
Criando Dashboards WizardCriando Dashboards Wizard
Criando Dashboards Wizard
 
Sugestão de indicadores para bi prefeituras
Sugestão de indicadores para bi prefeiturasSugestão de indicadores para bi prefeituras
Sugestão de indicadores para bi prefeituras
 
Sugestão de indicadores para bi de prefeituras
Sugestão de indicadores para bi de prefeiturasSugestão de indicadores para bi de prefeituras
Sugestão de indicadores para bi de prefeituras
 
It4biz apresentação bi prefeituras
It4biz   apresentação bi prefeiturasIt4biz   apresentação bi prefeituras
It4biz apresentação bi prefeituras
 
Curso de Criação de Dashboards com o Pentaho (BI Open Source)
Curso de Criação de Dashboards com o Pentaho (BI Open Source)Curso de Criação de Dashboards com o Pentaho (BI Open Source)
Curso de Criação de Dashboards com o Pentaho (BI Open Source)
 
Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...
Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...
Cidade Aberta BI - O Gestor de BI Open Source 100% livre para as prefeituras ...
 
Apresentação Aplicativo Obras do PAC no FISL 13
Apresentação Aplicativo Obras do PAC no FISL 13Apresentação Aplicativo Obras do PAC no FISL 13
Apresentação Aplicativo Obras do PAC no FISL 13
 
Open Social Intelligence (ES)
Open Social Intelligence (ES)Open Social Intelligence (ES)
Open Social Intelligence (ES)
 
Open Social Intelligence (PT-BR)
Open Social Intelligence (PT-BR)Open Social Intelligence (PT-BR)
Open Social Intelligence (PT-BR)
 
I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012
I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012
I Encontro da Comunidade Pentaho em Moçambique (Maputo) / Africa - 2012
 
Cobertura Pentaho Meetup Barcelona 2009
Cobertura Pentaho Meetup Barcelona 2009Cobertura Pentaho Meetup Barcelona 2009
Cobertura Pentaho Meetup Barcelona 2009
 
Aliança IT4biz (Brasil) e StrateBI (Espanha)
Aliança IT4biz (Brasil) e StrateBI (Espanha)Aliança IT4biz (Brasil) e StrateBI (Espanha)
Aliança IT4biz (Brasil) e StrateBI (Espanha)
 
Alianza IT4biz (Brasil) y StrateBI (España)
Alianza IT4biz (Brasil) y StrateBI (España)Alianza IT4biz (Brasil) y StrateBI (España)
Alianza IT4biz (Brasil) y StrateBI (España)
 

Recently uploaded

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Recently uploaded (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Instalação Avançada Pentaho BI Server 3.8 CE com MySQL

  • 1. Como instalar o Pentaho BI Server CE 3.8 com o MySQL 5.1 no Mac e Linux (Servidor em Produção). Criado por: Caio Moreno de Souza ( @caiomsouza ) e-mail: caio@it4biz.com.br http://blog.professorcoruja.com http://www.it4biz.com.br Última alteração: 7 de junho de 2011 * Este documento é uma contribuição para a Comunidade Pentaho Brasileira e deve ser distribuido de forma gratuita. Passo a passo de como fazer a instalação: 1) Descompactar o Pentaho BI Server CE 3.8 Link para o projeto Pentaho no Source Forge: http://sourceforge.net/projects/pentaho/ Link para baixar o Pentaho BI Server 3.8 CE (Community Edition) (Mac e Linux) http://sourceforge.net/projects/pentaho/files/Business%20Intelligence%20Server/3.8.0-stable/ biserver-ce-3.8.0-stable.tar.gz/download 2) Executar os 5 scripts no MySQL na sequência abaixo para criar os bancos de dados, tabelas, grants e usuários necessários Para ajudar nesta tarefa, recomendamos o aplicativo MySQL Workbench. Link para download do MySQL Server 5.1 http://dev.mysql.com/downloads/mysql/ Execute cada um dos scripts na ordem correta. 1_create_repository_mysql.sql Cria o banco de dados Hibernate Creates the Hibernate database 2_create_quartz_mysql.sql Cria o banco de dados Quartz Creates the Quartz database 3_create_sample_datasource_mysql.sql
  • 2. Carrega o data source do sample data dentro do banco de dados hibernate Loads the sample data data source into the Hibernate database 4_load_sample_users_mysql.sql Cria todos os usuários de exemplo e roles dentro do banco de dados hibernate Creates all the sample users and roles into the Hibernate database 5_sample_data_mysql.sql Cria o banco de dados Sample Data Creates the sample data database Depois de criados todos os bancos necessários para o BI Server, verifique se a estrutura criada é a mesma que a estrutura abaixo: ● hibernate* ○ authorities ○ datasource ○ granted_authorities ○ users ● quartz ○ qrtz_blob_triggers ○ qrtz_calendars ○ qrtz_cron_triggers ○ qrtz_fired_triggers ○ qrtz_job_details ○ qrtz_job_listeners ○ qrtz_locks ○ qrtz_paused_trigger_grps ○ qrtz_scheduler_state ○ qrtz_simple_triggers ○ qrtz_trigger_listeners ○ qrtz_triggers ● sampledata ○ customer_w_ter ○ customers ○ department_managers ○ dim_time ○ employees ○ offices ○ orderdetails
  • 3. orderfact ○ orders ○ payments ○ products ○ quadrant_actuals ○ trial_balance 3) Alterar o arquivo applicationContext-spring-security-jdbc.xml localizado na pasta pentaho-solutions/system Antes: <!-- This is only for Hypersonic. Please update this section for any other database you are using --> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="org.hsqldb.jdbcDriver" /> <property name="url" value="jdbc:hsqldb:hsql://localhost:9001/hibernate" /> <property name="username" value="hibuser" /> <property name="password" value="password" /> </bean> Depois: <!-- This is only for Hypersonic. Please update this section for any other database you are using --> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3306/hibernate" /> <property name="username" value="hibuser" /> <property name="password" value="password" /> </bean>
  • 4. 4) Alterar o arquivo applicationContext-spring-security-hibernate.properties localizado na pasta pentaho-solutions/system Antes: jdbc.driver=org.hsqldb.jdbcDriver jdbc.url=jdbc:hsqldb:hsql://localhost:9001/hibernate jdbc.username=hibuser jdbc.password=password hibernate.dialect=org.hibernate.dialect.HSQLDialect Depois: jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/hibernate jdbc.username=hibuser jdbc.password=password hibernate.dialect=org.hibernate.dialect.MySQLDialect * Vale lembrar que para instalações do MySQL remotas é necessário alterar de localhost para o IP da maquina. 5) Alterar o arquivo hibernate-settings.xml localizado na pasta pentaho-solutions/system/ hibernate/ Antes: <config-file>system/hibernate/hsql.hibernate.cfg.xml</config-file> Depois: <config-file>system/hibernate/mysql5.hibernate.cfg.xml</config-file> 6) Alterar o arquivo context.xml localizado na pasta /tomcat/webapps/pentaho/META-INF/ Antes: <?xml version="1.0" encoding="UTF-8"?> <Context path="/pentaho" docbase="webapps/pentaho/"> <Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5" maxWait="10000" username="hibuser" password="password" driverClassName="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:hsql://localhost/hibernate" validationQuery="select count(*) from INFORMATION_SCHEMA.SYSTEM_SEQUENCES" />
  • 5. <Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5" maxWait="10000" username="pentaho_user" password="password" driverClassName="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:hsql://localhost/quartz" validationQuery="select count(*) from INFORMATION_SCHEMA.SYSTEM_SEQUENCES"/> </Context> Depois: <?xml version="1.0" encoding="UTF-8"?> <Context path="/pentaho" docbase="webapps/pentaho/"> <Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5" maxWait="10000" username="hibuser" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/ hibernate" validationQuery="select 1" /> <Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5" maxWait="10000" username="pentaho_user" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/ quartz" validationQuery="select 1"/> </Context> 7) Alterar o arquivo web.xml localizado na pasta /tomcat/webapps/pentaho/WEB-INF/ Antes: <!-- [BEGIN HSQLDB DATABASES] --> <context-param> <param-name>hsqldb-databases</param-name> <param-value>sampledata@../../data/hsqldb/sampledata,hibernate@../../data/hsqldb/ hibernate,quartz@../../data/hsqldb/quartz</param-value> </context-param> <!-- [END HSQLDB DATABASES] --> <!-- [BEGIN HSQLDB STARTER] --> <listener>
  • 6. <listener-class>org.pentaho.platform.web.http.context.HsqldbStartupListener</listener- class> </listener> <!-- [END HSQLDB STARTER] --> Depois: Comentar as linhas abaixo, para encontrar os pedaços procurar pelas palavras hsqldb- databases e HsqldbStartupListener. <!-- [BEGIN HSQLDB DATABASES] --> <!-- comentar ou remover <context-param> <param-name>hsqldb-databases</param-name> <param-value>sampledata@../../data/hsqldb/sampledata,hibernate@../../data/hsqldb/ hibernate,quartz@../../data/hsqldb/quartz</param-value> </context-param> fim comentar ou remover --> <!-- [END HSQLDB DATABASES] --> <!-- [BEGIN HSQLDB STARTER] --> <!-- comentar ou remover <listener> <listener-class>org.pentaho.platform.web.http.context.HsqldbStartupListener</listener- class> </listener> fim comentar ou remover --> <!-- [END HSQLDB STARTER] --> 8) Configurar o TrustedIpAddrs no arquivo web.xml localizado na pasta /tomcat/ webapps/pentaho/WEB-INF/ Antes:
  • 7. <param-name>TrustedIpAddrs</param-name> <param-value>127.0.0.1</param-value> Depois com o seu IP: <param-name>TrustedIpAddrs</param-name> <param-value>127.0.0.1,[seu_endereco_ip]</param-value> Exemplo real: <param-name>TrustedIpAddrs</param-name> <param-value>127.0.0.1,192.168.10.103</param-value> 9) Instalar o Saiku Plug in no Pentaho BI Server 3.8 http://blog.professorcoruja.com/2011/06/como-instalar-o-saiku-20-ga-stable-plug.html Links utilizados como base para a criação deste tutorial. ● Pentaho 3.6 with MySQL, PostgreSQL & Oracle http://www.prashantraju.com/projects/pentaho/ ● How to manually install & configure Pentaho BI server 3.5 on Ubuntu http://osbi.nl/2009/09/how-to-install-configure-pentaho-bi-server-3-5-on-ubuntu/ ● Documentos internos IT4biz IT Solutions.