2012-2013
V 1.0
TD5 : Pentaho BI
2012-2013
V 1.0
TD5 : Pentaho BI
Les dossiers suivants devraient tre visibles aprs que vous avez extrait le fichier ZIP:
C:\
|-- pentaho
| |-- adminstration-console
| |-- biserver-ce
2012-2013
V 1.0
TD5 : Pentaho BI
Avant de commencer, assurez-vous que vous placez tous vos scripts SQL dans le dossier qui vous
servira la connexion la console MySQL, dans cet exemple cest C: \ pentaho \ tmp.
C:\pentaho\tmp> mysql -u root -p
mysql> source 1_create_repository_mysql.sql;
...output
mysql> source 2_create_quartz_mysql.sql;
...output
mysql> source 3_create_sample_datasource_mysql.sql;
...output
mysql> source 4_load_sample_users_mysql.sql;
...output
mysql> source 5_sampledata_mysql.sql;
...output
mysql> show databases;
hibernate* (NB : les tabes seront crs au premier dmarrage de BI platofrm)
o authorities
o datasource
o granted_authorities
o users
quartz
o qrtz_blob_triggers
o qrtz_calendars
o qrtz_cron_triggers
o qrtz_fired_triggers
o qrtz_job_details
o qrtz_job_listeners
o qrtz_locks
o qrtz_paused_trigger_grps
o qrtz_scheduler_state
o qrtz_simple_triggers
o qrtz_trigger_listeners
o qrtz_triggers
sampledata
o customer_w_ter
o customers
o department_managers
o dim_time
o employees
o offices
o orderdetails
o orderfact
2012-2013
V 1.0
TD5 : Pentaho BI
o
o
o
o
o
orders
payments
products
quadrant_actuals
trial_balance
applicationContext-spring-security-jdbc.xml
Ce fichier se trouve dans pentaho-solutions\system\
<!-- 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>
Remplacer par:
<!-- 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>
applicationContext-spring-security-hibernate.properties
Ce fichier se trouve dans pentaho-solutions\system\
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
2012-2013
V 1.0
TD5 : Pentaho BI
Remplacer par :
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
hibernate-settings.xml
Ce fichier se trouve dans pentaho-solutions\system\hibernate\
<config-file>system/hibernate/hsql.hibernate.cfg.xml</config-file>
Remplacer Par :
<config-file>system/hibernate/mysql5.hibernate.cfg.xml</config-file>
Par
<?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"
2012-2013
V 1.0
TD5 : Pentaho BI
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>
Configuring Publishing
publisher_config.xml
Dans pentaho-solutions\system
2012-2013
V 1.0
TD5 : Pentaho BI
<publisher-config>
<publisher-password>publishthis</publisher-password>
</publisher-config>
2012-2013
V 1.0
TD5 : Pentaho BI