#org.quartz.jobStore.misfireThreshold = 60000 #org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate #org.quartz.jobStore.useProperties = false #org.quartz.jobStore.dataSource = myDS #org.quartz.jobStore.tablePrefix = QRTZ5_ #org.quartz.jobStore.isClustered = false # Job Store org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX #_replace_jobstore_properties org.quartz.jobStore.misfireThreshold = 60000 #原始的配置 #org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate #用戶作的修改 org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate org.quartz.jobStore.useProperties = false org.quartz.jobStore.dataSource = myDS org.quartz.jobStore.tablePrefix = QRTZ5_ org.quartz.jobStore.isClustered = false
文件目錄: \biserver-ce\pentaho-solutions\system\hibernatejava
修改內容:mysql
<?xml version='1.0' encoding='utf-8'?> <settings> <!-- * This setting allows the deployment to specify where to find the * database-specific hibernate configuration. The samples supplied * include the following: * * system/hibernate/hsql.hibernate.cfg.xml * system/hibernate/mysql5.hibernate.cfg.xml * system/hibernate/postgresql.hibernate.cfg.xml * system/hibernate/oracle10g.hibernate.cfg.xml * --> <!-- 原始設置 <config-file>system/hibernate/hsql.hibernate.cfg.xml</config-file> --> <!-- 修改成mysql的配置 --> <config-file>system/hibernate/mysql5.hibernate.cfg.xml</config-file> <!-- * * managed should be set to true if running the BI Platform * in a managed environment (like JBoss, Orion, etc). In this configuration, * you should specify another location for the hibernate.cfg.xml (see below) * instead of simply using the default one provided. This setting essentially * tells the HibernateUtil class to use JNDI to locate the factory class for * getting sessions. This allows the platform to use Hibernate across boundaries * in message beans (for example). * <managed>false</managed> --> <managed>false</managed> </settings>
文件目錄:\biserver-ce\pentaho-solutions\systemweb
修改內容:spring
<!-- 原始配置 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="${datasource.driver.classname}" /> <property name="url" value="${datasource.url}" /> <property name="username" value="${datasource.username}" /> <property name="password" value="${datasource.password}" /> <!-- the following are optional --> <!-- <property name="validationQuery" value="${datasource.validation.query}" /> <property name="maxWait" value="${datasource.pool.max.wait}" /> <property name="maxActive" value="${datasource.pool.max.active}" /> <property name="maxIdle" value="${datasource.max.idle}" /> <property name="minIdle" value="${datasource.min.idle}" /> </bean> --> <!-- 用戶定義的mysql配置 --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <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" /> <!-- 可選項 --> <!-- <property name="validationQuery" value="${datasource.validation.query}" /> <property name="maxWait" value="${datasource.pool.max.wait}" /> <property name="maxActive" value="${datasource.pool.max.active}" /> <property name="maxIdle" value="${datasource.max.idle}" /> <property name="minIdle" value="${datasource.min.idle}" /> --> </bean>
文件目錄:\biserver-ce\pentaho-solutions\systemsql
修改內容:apache
# 原始配置 #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 # 用戶定義的mysql配置 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
複製文件: biserver-ce /pentaho-solutions/system/dialects/mysql5/audit_sql.xml
覆蓋 biserver-ce /pentaho-solutions/system/ audit_sql.xmltomcat
a. Repository標籤下的FileSystem,註釋或刪除掉默認配置項,文件所在行數爲80行session
將文檔中的此處代碼oracle
<!-- 原始的配置 --> <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> <param name="path" value="${rep.home}/repository"/> </FileSystem>
修改成:app
<!-- 用戶定義的mysql的配置 --> <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/> <param name="user" value="jcr_user"/> <param name="password" value="password"/> <param name="schema" value="mysql"/> <param name="schemaObjectPrefix" value="fs_repos_"/> </FileSystem>
b. DataStore標籤註釋或刪除掉默認配置項,文件所在行數爲163行
將文檔中的此處代碼
<!-- 原始的配置 --> <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
修改成:
<!-- 用戶定義的mysql的配置 --> <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore"> <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/> <param name="user" value="jcr_user"/> <param name="password" value="password"/> <param name="databaseType" value="mysql"/> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="minRecordLength" value="1024"/> <param name="maxConnections" value="3"/> <param name="copyWhenReading" value="true"/> <param name="tablePrefix" value=""/> <param name="schemaObjectPrefix" value="ds_repos_"/> </DataStore>
c. Workspaces中的filesystem配置項,註釋或刪除掉默認配置項,文件所在行數爲285行
將文檔中的此處代碼
<!-- 原始的配置 --> <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> <param name="path" value="${wsp.home}"/> </FileSystem>
修改成:
<!-- 用戶定義的mysql的配置 --> <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/> <param name="user" value="jcr_user"/> <param name="password" value="password"/> <param name="schema" value="mysql"/> <param name="schemaObjectPrefix" value="fs_ws_"/> </FileSystem>
d. PersistenceManager 修改成 mysql 配置,(文中第一部分 PersistenceManager )
註釋 掉默認配置項標籤( 文本內容第 353 行)
將文檔中此處代碼
<!-- 原始的配置 --> <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager"> <param name="url" value="jdbc:h2:${wsp.home}/db"/> <param name="schemaObjectPrefix" value="${wsp.name}_"/> </PersistenceManager>
修改成:
<!-- 用戶定義的mysql的配置 --> <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/> <param name="user" value="jcr_user" /> <param name="password" value="password" /> <param name="schema" value="mysql"/> <param name="schemaObjectPrefix" value="${wsp.name}_pm_ws_"/> </PersistenceManager>
e. Versioning 修改成 mysql 配置項,Versioning filesystem 默認配置項( 文本內容第 457 行)
將文檔中此處代碼
<!-- 原始的配置 --> <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> <param name="path" value="${rep.home}/version" /> </FileSystem>
修改成:
<!-- 用戶定義的mysql的配置 --> <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/> <param name="user" value="jcr_user"/> <param name="password" value="password"/> <param name="schema" value="mysql"/> <param name="schemaObjectPrefix" value="fs_ver_"/> </FileSystem>
f. PersistenceManager,PersistenceManager (文中第二部分 PersistenceManager )
註釋 掉默認配置項標籤( 文本內容第 526 行)
將文檔中此處代碼
<!-- 原始的配置 --> <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager"> <param name="url" value="jdbc:h2:${rep.home}/version/db"/> <param name="schemaObjectPrefix" value="version_"/> </PersistenceManager>
修改成:
<!-- 用戶定義的mysql的配置 --> <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager"> <param name="driver" value="com.mysql.jdbc.Driver"/> <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/> <param name="user" value="jcr_user" /> <param name="password" value="password" /> <param name="schema" value="mysql"/> <param name="schemaObjectPrefix" value="pm_ver_"/> </PersistenceManager>
<?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" maxTotal="20" maxIdle="5" maxWaitMillis="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" maxTotal="20" maxIdle="5" maxWaitMillis="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> --> <!-- 用戶定義的mysql的配置 --> <Context path="/pentaho" docbase="webapps/pentaho/"> <Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxTotal="20" maxIdle="5" maxWaitMillis="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>
檢查目錄 biserver-ce\tomcat\lib 存不存在 mysql 的jar 包, 不存在或者版本過低的 jar 包,
根據本身所需更新, 本文采用的是 mysql-connector-java-5.1.38-bin.jar
詳情請查看:http://help.pentaho.com/Documentation/6.1/0F0/0P0/030/020