Pentaho5.4 配置mysql 《转载》
2016-08-10 22:26
337 查看
pentaho下载:https://sourceforge.net/projects/pentaho/
源码地址:https://github.com/pentaho
第一次启动
1.先把下载得到的压缩包解压缩到任意位置
3.启动Server
启动成功,但是在启动日志里发现使用的是HSQLDB,这个一会再改
先看看成功启动之后的Server界面。
因为BI Server里内置了tomcat
所以打开浏览器输入,http://localhost:8080/pentaho
点[Login as an Evaluator]就可以看到用户名和密码
点任意一个[GO]就能登陆主页面了
尽管bi Server已经能够启动,但是下面的路还很长。
现在要做的,是希望数据库能够连上一些常用数据库,比如Mysql
修改数据库连接,使用Mysql
1.将下列文件夹中的SQL脚本导入mysql
※在5.4版本中缺少了sample_data脚本,可以从以前的版本的包中找到。
2.修改配置文件
编辑
\biserver-ce\pentaho-solutions\system\applicationContext-spring-security-jdbc.properties
编辑
\biserver-ce\pentaho-solutions\system\applicationContext-spring-security-hibernate.properties
编辑
\biserver-ce\pentaho-solutions\system\hibernate\hibernate-settings.xml
编辑
\biserver-ce\pentaho-solutions\system\quartz\quartz.properties
放开注释
编辑
\biserver-ce\pentaho-solutions\system\simple-jndi\jdbc.properties
编辑
\biserver-ce\tomcat\webapps\pentaho\META-INF\context.xml
删除
\biserver-ce\tomcat\conf\Catalina\localhost\pentaho.xml
因为每次重启pentaho会根据context.xml重建这个文件
停用默认的HSqlDB
\biserver-ce\tomcat\webapps\pentaho\WEB-INF\web.xml
注释掉
编辑
这里的IP,可以开放允许外部访问
复制mysql的驱动包到
\biserver-ce\tomcat\webapps\pentaho\WEB-INF\lib
3.启动bi Server,打开浏览器,新建数据源
源码地址:https://github.com/pentaho
第一次启动
1.先把下载得到的压缩包解压缩到任意位置
2.设置环境变量 |
启动成功,但是在启动日志里发现使用的是HSQLDB,这个一会再改
先看看成功启动之后的Server界面。
因为BI Server里内置了tomcat
所以打开浏览器输入,http://localhost:8080/pentaho
点[Login as an Evaluator]就可以看到用户名和密码
点任意一个[GO]就能登陆主页面了
尽管bi Server已经能够启动,但是下面的路还很长。
现在要做的,是希望数据库能够连上一些常用数据库,比如Mysql
修改数据库连接,使用Mysql
1.将下列文件夹中的SQL脚本导入mysql
create_repository_mysql.sql | |||||||||||||||||||||||||||||||||
创建hibernate 数据库,用于存储用户授权认证,solution repository以及数据源。 | |||||||||||||||||||||||||||||||||
create_quartz_mysql.sql | |||||||||||||||||||||||||||||||||
为Quartz计划任务器创建资源库。 |
sampledata_mysql.sql | |||||||||||||
为sample数据添加pentaho所有基本的实例数据源。 |
2.修改配置文件
编辑
\biserver-ce\pentaho-solutions\system\applicationContext-spring-security-jdbc.properties
# The fully qualified Java class name of the JDBC driver to be used datasource.driver.classname=com.mysql.jdbc.Driver # The connection URL to be passed to our JDBC driver to establish a connection datasource.url=jdbc:mysql://localhost:3306/hibernate # The connection username to be passed to our JDBC driver to establish a connection datasource.username=root # The connection password to be passed to our JDBC driver to establish a connection datasource.password=root # The SQL query that will be used to validate connections from this pool before returning them to the caller. # This query must be an SELECT statement that returns at least one row. # HSQLDB: SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS # MySQL, H2, MS-SQL, POSTGRESQL, SQLite: SELECT 1 # ORACLE: SELECT 1 FROM DUAL datasource.validation.query=SELECT USER() |
\biserver-ce\pentaho-solutions\system\applicationContext-spring-security-hibernate.properties
jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/hibernate jdbc.username=hibuser jdbc.password=password hibernate.dialect=org.hibernate.dialect.MySQL5Dialect |
\biserver-ce\pentaho-solutions\system\hibernate\hibernate-settings.xml
system/hibernate/mysql5.hibernate.cfg.xml |
\biserver-ce\pentaho-solutions\system\quartz\quartz.properties
放开注释
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
\biserver-ce\pentaho-solutions\system\simple-jndi\jdbc.properties
SampleData/type=javax.sql.DataSource SampleData/driver=com.mysql.jdbc.Driver SampleData/url=jdbc:mysql://localhost:3306/sampledata SampleData/user=pentaho_user SampleData/password=password Hibernate/type=javax.sql.DataSource Hibernate/driver=com.mysql.jdbc.Driver Hibernate/url=jdbc:mysql://localhost:3306/hibernate Hibernate/user=hibuser Hibernate/password=password Quartz/type=javax.sql.DataSource Quartz/driver=com.mysql.jdbc.Driver Quartz/url=jdbc:mysql://localhost:3306/quartz Quartz/user=pentaho_user Quartz/password=password Shark/type=javax.sql.DataSource Shark/driver=com.mysql.jdbc.Driver Shark/url=jdbc:mysql://localhost:3306/shark Shark/user=sa Shark/password= SampleDataAdmin/type=javax.sql.DataSource SampleDataAdmin/driver=com.mysql.jdbc.Driver SampleDataAdmin/url=jdbc:mysql://localhost:3306/sampledata SampleDataAdmin/user=pentaho_admin SampleDataAdmin/password=password |
\biserver-ce\tomcat\webapps\pentaho\META-INF\context.xml
<?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 user()" /> <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 user()"/> </Context> |
\biserver-ce\tomcat\conf\Catalina\localhost\pentaho.xml
因为每次重启pentaho会根据context.xml重建这个文件
停用默认的HSqlDB
\biserver-ce\tomcat\webapps\pentaho\WEB-INF\web.xml
注释掉
<!-- [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] --> |
这里的IP,可以开放允许外部访问
<context-param> <param-name>fully-qualified-server-url</param-name> <param-value>http://localhost:8080/pentaho/</param-value> </context-param> |
\biserver-ce\tomcat\webapps\pentaho\WEB-INF\lib
3.启动bi Server,打开浏览器,新建数据源
相关文章推荐
- 如何配置Enterprise5.4系统自带的php,mysql,Apache?
- Centos5.4和Windows server 2003的MySQL主从同步配置
- Pentaho BI Suite配置:在Windows环境下使用MySQL 5.x
- Pentaho Business Intelligence Suite配置:在Windows环境下使用MySQL 5.x
- Apache2.2,php5.4,MySQL5.5的配置
- 转载:MySQL集群配置
- (转载)配置最新的PHP加MYSQL服务器
- 【mantis】(转载)Apache 2.2.11 + PHP 5.2.9 + MySQL 5.1.34 + Mantis 1.1.7配置指南
- 转载:CentOS 6.3安装配置LAMP服务器(Apache+PHP5+MySQL)
- linux下MySQL配置文件讲解[转载]
- centos配置-java-php-mysql【转载参考】
- java jsp tomcat6 mysql 连接池配置[转载]
- CentOS 5.4 服务器配置 yum安装Apache+php+Mysql+phpmyadmin
- win7下配置PHP+apache+mysql【转载 + 补充】
- CentOS 5.4 服务器配置 yum安装Apache+php+Mysql
- 转载--Django+Mysql安装配置详解(Linux)[更新为1.3版]
- CentOS 5.4 服务器配置 yum安装Apache+php+Mysql+phpmyadmin
- 搭建PHP5.4+Apache+Mysql 服务器环境配置的方法
- [转载]mysql配置文件解析