加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

非常好-- Pentaho4.8 BI server搭建

发布时间:2020-12-14 03:40:17 所属栏目:大数据 来源:网络整理
导读:一 下载解压 1 从pentaho官网http://community.pentaho.com/ 下载biserver-ce-4.8.0-stable.zip 2 解压,在biserver-ce目录下执行start-pentaho.bat,在administration-console目录下执行start-pac.bat, 分别启动user console与admin console 3 pentaho自带

一 下载解压

1> 从pentaho官网http://community.pentaho.com/ 下载biserver-ce-4.8.0-stable.zip

2> 解压,在biserver-ce目录下执行start-pentaho.bat,在administration-console目录下执行start-pac.bat, 分别启动user console与admin console

3> pentaho自带了tomcat,直接访问http://localhost:8080/pentaho?可以打开user console,访问http://localhost:8099?可以打开admin console

4> 在biserver-ce目录下执行stop-pentaho.bat 可以关闭user console,在administration-console目录下执行stop-pac.bat可以关闭admin console


二 采用Mysql数据库

pentaho默认采用的是HSQLDb,这里将替换成mysql。

1> 分别运行biserver-cedatamysql5目录下的:

create_repository_mysql.sql

create_quartz_mysql.sql

create_sample_datasource_mysql.sql

2> 导入sampledata

可以从我的资源中下载sql语句:http://download.csdn.net/detail/sundongsdu/5139341


3> 修改配置文件:

a) 修改applicationContext-spring-security-jdbc.xml

??? driverClassName改为com.mysql.jdbc.Driver

? ? url改为jdbc:mysql://localhost:3306/hibernate

b)修改applicationContext-spring-security-hibernate.properties,修改后为:

[html]? view plain copy
  1. jdbc.driver=com.mysql.jdbc.Driver??
  2. jdbc.url=jdbc:mysql://localhost:3306/hibernate??
  3. jdbc.username=hibuser??
  4. jdbc.password=password??
  5. hibernate.dialect=org.hibernate.dialect.MySQLDialect??

c) 修改hibernate/hibernate-settings.xml

config-file改为mysql5.hibernate.cfg.xml

d) 修改webapps/pentaho/META-INF/context.xml,

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

e) 修改mysql hibernate数据库中datasource的值

driverclass改为:com.mysql.jdbc.Driver

URL改为: jdbc:mysql://localhost:3306/sampledata

Query改为:select 1

f) 修改biserver-ce-4.8.0-stablebiserver-cepentaho-solutionssystemsimple-jndi 下的jdbc.properties 如下:

copy
    SampleData/type=javax.sql.DataSource??
  1. SampleData/driver=com.mysql.jdbc.Driver??
  2. SampleData/url=jdbc:mysql://localhost:3306/sampledata??
  3. SampleData/user=pentaho_user??
  4. SampleData/password=password??
  5. Hibernate/type=javax.sql.DataSource??
  6. Hibernate/driver=com.mysql.jdbc.Driver??
  7. Hibernate/url=jdbc:mysql://localhost:3306/hibernate??
  8. Hibernate/user=hibuser??
  9. Hibernate/password=password??
  10. Quartz/type=javax.sql.DataSource??
  11. Quartz/driver=com.mysql.jdbc.Driver??
  12. Quartz/url=jdbc:mysql://localhost:3306/quartz??
  13. Quartz/user=pentaho_user??
  14. Quartz/password=password??
  15. SampleDataAdmin/type=javax.sql.DataSource??
  16. SampleDataAdmin/driver=com.mysql.jdbc.Driver??
  17. SampleDataAdmin/url=jdbc:mysql://localhost:3306/sampledata??
  18. SampleDataAdmin/user=pentaho_admin??
  19. SampleDataAdmin/password=password??

g) 修改biserver-ce/tomcat/webapps/pentaho/WEB-INF/web.xml

禁掉HSQLDB

Line 87:

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

Line 214:

copy
    <!--?[BEGIN?HSQLDB?STARTER]??
  1. listenerlistener-class>org.pentaho.platform.web.http.context.HsqldbStartupListener ????[END?HSQLDB?STARTER]?-->??

h) 拷贝biserver-cetomcatwebappspentahoMETA-INFcontext.xml中的内容到biserver-cetomcatconfCatalinalocalhostpentaho.xml

i) 按步骤一启动即可


三. 安装saiku插件

Pentaho社区版已经停止了jpivot的支持,转而使用saiku: http://analytical-labs.com/

下载saiku-plugin-2.4.zip以及saiku-webapp-2.4-war??

将saiku-plugin-2.4.zip解压至/biserver-ce/pentaho-solutions/system/, 将saiku-webapp-2.4-war 拷贝至biserver-cetomcatwebapps,

重启bi server

点击"New Saiku Analytics"可以查看Saiku分析结果,点击"New? Analysis"可以查看JPivot分析结果



PS:
问题及解决方案:

Could not load JDBC driver class [com.mysql.jdbc.Driver]

解决方案:

拷贝mysql-connector-java-5.1.20.jar 到tomcat/lib目录


参考文献:

http://sysapp.51cto.com/art/200904/121222.htm

http://interestingittips.wordpress.com/2011/04/27/complete-pentaho-installation-on-ubuntu-part-1/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读