BI可视化分析之Pentaho
简介我们在上一篇数据仓库选型中已经确定了用使用Pentaho作为BI可视化分析工作。 或者也可以从Pentaho组件的下载资源上进行结构的分析了解。 除了一些辅助工具和插件之外,Pentaho主要分为三大块。 一个是数据清洗 一个是BI服务端以及Web管理控制后台 一个是报表设计器 其他相关组件 Mondrian Weka Pentaho Metadata Design Studio Pentaho Dashboard 后面再做相关组件的了解。 Pentaho中报表系统由三部分组成:报表解释器(内核)、报表设计器(Pentaho Report Designer)、报表发布平台(Pentaho BI Server)。 报表解释器即Pentaho报表相关的Java Api ,其中报表相关Api又分为: Designer 、Engine 、Libraries 三部分。 报表设计器可以配置数据源、完成数据查询的生成、报表排版、报表预览、导出或发布报表模板。在报表发布平台上用户可以看到之前发布过来的报表模板(发布平台上的数据源配置应该和报表设计器上一致才行)。 用户可以导出自己想要的格式(目前支持Html、Pdf、Excel、Excel2007、CSV、RTF、Text),其中报表设计器和报表发布平台都支持导出数据,换句话说可以单独使用报表设计器也可以结合发布平台使用。因为它们都支持配置数据源、按报表格式查看、导出数据,唯一的区别就是发布平台没有编辑报表模板的功能。 相关资料Pentaho官方网站:http://www.pentaho.com/ Pentaho社区Wiki:http://wiki.pentaho.com/display/COM/Community+Wiki+Home Pentaho社区论坛:http://forums.pentaho.org Matt Casters的博客: http://www.ibridge.be/ Julian Hyde的博客:http://julianhyde.blogspot.com Jaspersoft官方网站: http://www.jaspersoft.com/ Pentaho 报表相关Api地址: http://javadoc.pentaho.com/reporting710/ Pentaho Report Designer 下载地址: https://sourceforge.net/projects/pentaho/files/Report%20Designer/ Pentaho BI Server下载地址: https://sourceforge.net/projects/pentaho/files/Business%20Intelligence%20Server/ 集成到Java程序中 官网示例:https://help.pentaho.com/Documentation/7.1/0R0/140 Pentaho Report Designer 官方使用教程:https://help.pentaho.com/Documentation/7.1/0L0/130 配置BI Server 迁移MySql数据库文档: https://help.pentaho.com/Documentation/7.1/Installation/Archive/030_Use_mysql_as_repository_databas 配置过程踩过的坑: 1)Mysql中需要新增hibuser、jcr_user、pentaho_user等用户,执行示例中的SQL提权后还是导致报错的话,可以手动提权一下。 2)BI Server的插件库中有个中文插件,不过版本比较旧。有兴趣的可以参考下面资料做下汉化。 3)配置过程中如果报错,可以尝试运行下pentaho-server文件夹下面的start-pentaho-debug.bat(linux下运行start-pentaho-debug.sh) 4)如果BI Server 配置的MySQL是本地的话localhost即可,如果是远程机器的话,需要设置成Ip地址的形式,注意在MySQL中开启权限。 5)因为7.1版本里没有sampledata_mysql.sql所以可以去之前的版本里面找找,手动导入到Mysql配置下示例数据 6)安装一些插件的话可能会导致一些报错或诡异的问题,所以对待插件要慎重 7)Report Designer 和 BI Server如果要做数据库迁移的话,都需要添加MySQL驱动,可以网上下载。 8)如果遇到如下报错:[org.pentaho.platform.dataaccess.datasource.wizard.service.impl.ConnectionServiceImpl] ConnectionServiceImpl.ERROR_0002 - Unable to get the list of connections: DatasourceMgmtService.ERROR_0004 - Error occurred during retrieving the datasource 可以先关闭BI Server然后删除或改名如下文件夹 /pentaho-solutions/system/jackrabbit/repository 然后重启BI Server 视频教程: https://www.youtube.com/watch?v=nYI7A9giFzE Pentaho介绍: https://baike.baidu.com/item/Pentaho/3674418?fr=aladdin 项目中集成报表 http://blog.csdn.net/gancheng/article/details/3858922 http://hudeyong926.iteye.com/blog/1583838 http://wiki.pentaho.com/pages/viewpage.action?pageId=9800175 Pentaho社区: http://community.pentaho.com/ Sourceforge介绍: https://baike.baidu.com/item/sourceforge/6562141?fr=aladdin BIServer下载地址: https://sourceforge.net/projects/pentaho/files/Business%20Intelligence%20Server/ Pentaho Report Designer教程: http://www.voidcn.com/article/p-cjjesdho-bkd.html 下载Jre: https://www.java.com/en/download/windows-64bit.jsp Jre的安装及配置: http://www.voidcn.com/article/p-aksaxdse-bph.html 下载Jdk: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html PRD教程: http://www.doc88.com/p-1857576569700.html Pentaho论坛: http://www.itisbi.com/forum.php?mod=forumdisplay&fid=15 Pentaho国外论坛: http://forums.pentaho.com/index.php BIserver使用教程: http://www.cnblogs.com/driftingshine/p/6114065.html Pentaho汉化: http://www.itisbi.com/forum.php?mod=viewthread&tid=281&extra=page=2 MySql安装包: https://dev.mysql.com/downloads/file/?id=471661 MySQl安装失败问题: unable_to_configure_service/”>https://www.crifan.com/resolved_mysql_5517_installation_configuration_error_when_mysql-server-55-winx64_100-_unable_to_configure_service/ Pentaho配置Mysql: http://blog.sina.com.cn/s/blog_7253d6540102w79v.html http://www.cnblogs.com/chinas/p/6544981.html http://www.voidcn.com/article/p-xvfxddbs-qp.html Pentaho插件配置: http://www.cnblogs.com/driftingshine/p/6114065.html Pentaho Java文档: http://javadoc.pentaho.com/bi-platform710/pentaho-platform-api-7.1.0.0-12-javadoc/index.html Pentaho报表集成到Java: https://help.pentaho.com/Documentation/7.1/0R0/140 MySQL迁移问题解决资料: http://www.cnblogs.com/littlehb/archive/2013/05/06/3062402.html http://biwithui.blogspot.com/2014/04/error0002-unable-to-get-list-of.html 报表发布: https://ask.hellobi.com/blog/doudou1/3551 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |