mondrian 配置XMLA例子2

Mondrian Schema介绍及简单配置示例 Mondrian Schema介绍及简单配置示例 Mondrian是一个OLAP分析的引擎,主要工作是根据事先配置好的schema,将输入的多维分析语句MDX(Multidimensional Expressions )翻译成目标数据库/数据引擎的执行语言(比如SQL)。 1 Schema文档结构介绍Schema 一个模式文件定义了一个多维数据库。模式中包含了一个逻辑模型,逻辑模型 由数据立 阅读详情

XMLA配置好之后需要先使用XMLA test page测试看是否配置正确

Mondrian  is an open source Java OLAP server under   Pentaho. One of its great feature is that it can be act as XML/A  (XML for Analysis) server that can be consumed by a number of independent XML/A compliant clients.

From Mondrian's   documentation  I find it quite simple to set up Mondrian as XMLA provider. But I didn't find any adequate information on how to test it directly from Mondrian's own bundled tool.

For any beginner, it will be hard and time consuming to find out whether the provider is already and rightly set up.

I write this article in order to help those with that problem, complementing Mondrian's own documentation .
Setup
Open your /WEB-INF/datasources.xml file and add a data source :

<?xml version="1.0"?>
<DataSources>
<DataSource>
<DataSourceName>
Provider=Mondrian;DataSource=MySQLTest;</DataSourceName>
<DataSourceDescription>Mondrian FoodMart Data
Warehouse</DataSourceDescription>
<URL>http://localhost:8080/mondrian/xmla</URL>
<DataSourceInfo>
Provider=mondrian;Jdbc=jdbc:mysql://localhost/foodmart;JdbcUser=root;JdbcPassword=;JdbcDrivers=com.mysql.jdbc.Driver;</DataSourceInfo>
<ProviderName>Mondrian</ProviderName>
<ProviderType>MDP</ProviderType>
<AuthenticationMode>Unauthenticated</AuthenticationMode>
<Catalogs>
<Catalog name="FoodMart">
<Definition>/WEB-INF/queries/FoodMart.xml</Definition>
</Catalog>
</Catalogs>
</DataSource>
</DataSources>


DataSourceName tag

Although DataSourceName tag can have entry of any name - which can be detected by Mondrian form test - but we will use the   "Provider= [value];DataSource= [value]"  format instead.
Connection String
Since I use MySQL as my cube's storage that I setup before, so in this particular line I specified connection detail to the server. I specified in the JDBC's URL my host ( localhost), database schema ( foodmart_mondrian), user ( root) with no password and the the driver class itself ( com.mysql.jdbc.Driver).
Validate Data Source
I assume that you already have Mondrian running under Tomcat in your local computer. Try browse to http://localhost:8080/mondrian/xmlaTest.jsp. Select "1.discoverDataSource" option from the combo list then click " show request" button until you see the XMLA construct like below.

After that, you might proceed by clicking " Run" to see if your XMLA provider - specified in your DataSourceName - is recognized.

A screen shot below indicated that Mondrian XMLA provider is recognized and ready to be sent any OLAP/MDX query.

Query Testing
Back to your XMLA   test page, select " 2. executeHR-tabular  option list. Click on " Show Request" button.

Once you see the XMLA generated construct you need to modify one thing: DataSourceInfo entry.


Change the tag's value of "DataSource=MondrianFoodMart;" into "DataSource=MySQLTest;". Continue by clicking on "run" button.



If all going right you will have a returning XML SOAP result like below. This means that Mondrian has successfully executed your query.


Mondrian XMLA实例 本实例由两部分组成:一个是Mondrian提供的XMLA服务端,一个是Olap4j的XMLA客户端,利用XMLA服务访问元数据和执行MDX查询。 详见http://blog.csdn.net/chch87 立即下载

相关推荐

mondrian xmla配置需要的jar

jpivot + mondrian + xmla配置需要的jar, 包括 commons-discovery-0.2.jar jaxrpc.jar axis.jar wsdl4j-1.5.1.jar

ZZ:How to install Mondrian

How to install MondrianIntroduction Set up test data with a non-embedded database Microsoft Access Other database Deploy and run the web application with a non-embedded database De

songgl的专栏 3352

Mondrian介绍及配置.pdf

Mondrian 介绍 配置

mondrain 直接用SQL做源写到XML,开发效率极其提高

1、数据源配置:datasources.xml Provider=Mondrian;DataSource=**; ** http://localhost:8080/mondrian/xmla Provider=mondrian;Jdbc=jdbc:db2://10.1.*.*:50000/**;JdbcUser=db2admin;JdbcPassw...

未来世界 281

mondrian配置例子

mondrian配置例子,附件是openi源码例子,集成了mondrian+Jpivot。

电机传动机构的转矩与惯量折算

参考《工业运动控制》

庐州牧 1万+

Mondrian之XMLA服务

 XMLA是一个基于

chch87的专栏 3208

从零到一:NI USB-8506 LIN通讯的驱动安装与硬件调试全攻略

本文详细介绍了NI USB-8506 LIN通讯设备的驱动安装与硬件调试全流程,包括硬件准备、驱动下载与配置、NI MAX设置及常见问题解决方案。通过实战应用与性能优化技巧,帮助用户快速掌握LIN通讯技术,适用于车载数据记录和自动化测试等场景。

weixin_28273593的博客 930

Mondrian xml服务mysql_Mondrian xmla Provider的配置

To will setup XMLA service, follow these steps.1. Describe the data sources indatasources.xmlIn WEB-INF directory of your webapp, create a file calleddatasources.xml, with content like this:Mondrian...

weixin_33358099的博客 250

ICDAR数据集简介

ICDAR(文档分析与识别国际会议)是OCR领域的权威会议,每两年发布一次数据集,专注于‌自然场景文本检测与识别‌,涵盖多语言、复杂版式和真实环境挑战。街景、广告牌、票据、手写文档等真实场景图像。包含水平、垂直、倾斜、弯曲文本,背景干扰大,部分文本存在遮挡或模糊。提供文本位置坐标(矩形/四边形框)及内容,无法识别的文本标记为###。以上总结提炼了ICDAR的核心价值与应用方法论。给出最佳实践方法是官网数据预训练模型 + 业务数据微调(比如用PPOCRLabel标注100+张业务图)。

xinghaitao2005的博客 1125

ESP32-C3模组上跑通OTA升级(3)

ESP32-C3模组上跑通OTA升级(3)

phmatthaus的专栏 1355

mondrian配置XMLA的例子

This sample is the default features sample which querying Sales Cube from XMLA provider using JPivot interface.  Configuration Prerequisites Articles Mondrian web application with MySQL

Athenaer的专栏 2996

半小时搞定Yolov5安装配置及使用(详细过程)

Yolov51. 下载Yolov52. 安装Yolov5 在下载配置Yolov5前,先要安装好Anaconda环境,可参考之前博文:最新Anaconda3的安装配置及使用教程(详细过程) 1. 下载Yolov5 首先下载Yolov5源码: Yolov5 Github地址:https://github.com/ultralytics/yolov5 直接git clone到本地工作目录,等待下载完成: Yolov5代码目录架构: 2. 安装Yolov5 源码下完后,下面开始安装Yolov5所需模块,

HowieXue 薛永浩的博客 12万+

Jpivot + mondrian +xmla配置

实验环境: Tomcat 7.0.27 JDK 1.6.0_18 mondrian 3.5.0 前提是根据mondrian  doc目录下的install.html安装好mondrian 1> web.xml中设置 MondrianXmlaServlet mondrian.xmla.impl.DefaultXmlaServlet 注意要把下面的配置禁掉

fish的专栏 2641

MacBook Air老本重装系统

手里的这个本子型号是A1466,cpu i5,4G内存,硬盘ssd 120G。 重装系统可以在原系统上升级到更新版本,或者用U盘安装。 先确定,这个本子可以安装什么系统。 最权威的信息当然是apple的官网,地址:https://support.apple.com/zh-cn/HT211683 在“检查兼容性”中,可以依次检查每个系统兼容的硬件型号。Mojave是A1466能安装的最高版本。 确认兼容性后,下一步就是下载安装文件。还是这个页面稍下面一点可以找到。 这里告诉用户文件可以在什

bigwood99的博客 2万+

基于simulink的预测电流控制策略的三相逆变器仿真

本文详细介绍了在Simulink中实现基于预测电流控制策略的三相逆变器仿真方法。主要内容包括:准备工作(安装必要软件及工具箱)、构建三相逆变器基础模型、设计预测电流控制器(包含状态空间建模和控制器设计)、实现控制逻辑、添加示波器观察输出、配置仿真参数以及运行仿真分析结果。通过MATLAB代码示例和Simulink模块说明,展示了如何选择最优开关状态来最小化电流误差。该仿真方法为研究快速响应、高精度的逆变器控制提供了实用工具,但需注意实际应用中可能需要的调试工作。

amy_mhd的博客 278

Mondrian xmla Provider的配置

To will setup XMLA service, follow these steps. 1. Describe the data sources indatasources.xml In WEB-INF directory of your webapp, create a file calleddatasources.xml, with content like t...

weixin_30451709的博客 164

STC单片机使用FatFs文件系统读取SD卡指定文件内容

STC单片机使用FatFs文件系统读取SD卡指定文件内容

perseverance51博客 2748

配置mondrian支持XMLA和中文编码

在Web.xml中添加,添加其中黑体部分转换中文编码,否则显示为“?”...... MondrianXmlaServlet mondrian.xmla.impl.DefaultXmlaServlet...

291

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

Mondrian API

Mondrian API Created 星期一 24 十月 2016 http://mondrian.pentaho.com/api/index.htmlMondrian 是一个独立的引擎,一般都是通过嵌入到应用的方式来使用它,只需要在类路径加个类库就可以。实际上有多套BI 解决方案都是通过集成Mondrian 的方式来实现多维分析。本章介绍编程方式连接Mondrian,执行MDX 查询的

小小懒羊羊 3259

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

olap分析平台的设计与实现(三)--安装mondrian footmart例子做参考

遇到问题,想查看mondrian 带的 example,那就部署一个mondrian 带的footmart例子 olap4j包中有个: org.olap4j.query- Programmatic Query Model 我理解就是个简化mdx查询的工具,不过官方介绍说不支持全部mdx语句。 下面小试一把: // olap4j的mdx接口,是一个jdbc实现,推荐 ...

wh_xia_jun的专栏 1340

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

开源XMLA客户端访问组件介绍

XMLA已经成为访问OLAP多维数据的事实标准,几年前本人曾对SSAS的XMLA做过系统介绍。在定制开发的BI商业智能项目或使用部分OLAP特性的项目中,客户端通过XMLA访问OLAP多维数据是一种较为方便的做法,尤其当应用系统的技术架构与OLAP的技术环境差异较大时,比如:在J2EE的应用程序里访问微软SSAS。作为本博客里涉及XMLA的最后一篇文章,本文将介绍几种比较好用的开源XMLA客户端访

商业智能之路 2353

Mondrian in action第10章 翻译

第十章 这一章的内容包括: 商业分析(Business analysts) 数据架构(Data architects) 企业架构(Enterprise architects) 应用开发(Application developers)        在这一个章节里,你将学习在你自己的应用中使用Mondrian。这一个章节主要是写给软件开发人员阅读的。     Adventure Wo

wh_xia_jun的专栏 563

mondrian web app的 xmla 方式的问题 Unable to create envelope from given source

~~~~访问 http://localhost:8080/mondrian/testpage.jsp?query=xmla 异常问题的解决!!~~~~~~~~~------错误1com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source: org.w3c.dom...

java etl 1100

XMLA连接器--免费但不开源通过ODBO、XMLA

XMLA 连接器(驱动) :来自ARQUERY http://jaist.dl.sourceforge.net/project/xmlaconnect/XMLA_Provider_v1.0.0.103.exe ,支持SAP, Mondrian, Jedox. 驱动 ARQUERY主页关于 MDX,XMLA,ODBO等概念的阐述 转载于:https://www.cnblogs.com/q...

weixin_30629653的博客 199
上一篇: mondrian配置XMLA的例子
下一篇: C++内存详解
月貘苏
博客等级 码龄19年 213粉丝 52原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值