问题标签 [olap4j]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Olap4j/mysql,如何生成或创建 Cube?
我不知道如何使用 Olap4j/Olap 连接生成或创建 Cube,当我有 Cube 时,我可以加载它并使用它,但是我有数据库,我想从代码生成 Cube 并将其保存为 xml。那么我们有多少种方法呢?
java - 无法在 Linux 上使用 olap4j 连接到 SSAS
我希望使用 Java 连接到 SSAS 2012 并尝试过 olap4j 驱动程序。我在 Linux (Ubuntu 14.04) 平台上工作。
我读过 Olap4j 适用于 Windows,但它适用于 Linux 吗?
我写了一些 Java 代码,它给出了运行时错误。此错误是因为 Linux 机器无法连接到 SSAS。
我已经设置了http
访问和 IIS 服务器并使用 msmdpump.dll 进行连接。
以下是Java代码和错误:
代码
错误
如果我评论包含'OlapConnection'的语句,此代码将运行。任何帮助,将不胜感激。
olap - 无法从 Essbase 获取数据
我是 OLAP 服务的新手。我想使用 olap4j 从 Essbase 获取数据。我正在发送这个请求:
并得到一个数据库 Basic 不存在的错误:
实际上这个数据库存在并且有效(http://grab.by/AqKU)。我的代码也适用于其他 OLAP 服务(例如 Mondrian)。
你能帮我解决这个问题吗?谢谢!
mondrian - olap4J - 成员分组的计算
我正在尝试编写一个 olap4j (Mondrian) 查询,该查询将按范围对行进行分组。假设我们计算了每个孩子的卡片数量和孩子的年龄。我想按年龄范围对卡的金额求和,所以我将计算 0-5,5-10,10-15 等年龄段的人数。这可以用 olap4j 完成吗?
analytics - 空间 mdx 日期聚合函数不适用于 01/01/2014 等日期
这是我mdx
发出的错误:
我正在 geomondrian 工作台上对其进行测试,该工作台显示如下错误:
`Mondrian 错误:无法解析查询'与成员 [Measures].[incident_type] 作为 '[incident].CurrentMember.Properties("incident_type")' 成员 [Measures].[incident_desc] 作为 '[incident].CurrentMember.Properties ("incident_desc")' 成员 [Measures].[incident_class] as '[incident].CurrentMember.Properties("incident_class")' 成员 [Measures].[incident_image] as '[incident].CurrentMember.Properties("incident_image" )' 成员 [Measures].[modus_operandi] 作为 '[incident].CurrentMember.Properties("modus_operandi")' 成员 [Measures].[fir_status] 作为 '[incident].CurrentMember.Properties("fir_status")' 成员 [措施].[fir_id] 为 '[incident].CurrentMember.Properties("fir_id")'成员 [Measures].[date_start_time] 作为 '[incident].CurrentMember.Properties("date_start_time")' 成员 [Measures].[the_geom] 作为 '[incident].CurrentMember.Properties("the_geom")' 成员 [Measures] .[date_end_time] as '[incident].CurrentMember.Properties("date_end_time")' 成员 [time].[newtime] as 'Aggregate({([time].[2012].[12].[19]] : [时间].[2012].[12].[31]),([时间].[2013]),([时间].[2014].[1].[1] : [时间].[2014] .[1].[8])})' 选择 {[Measures].[incident_type], [Measures].[incident_desc], [Measures].[incident_class], [Measures].[incident_image], [Measures]。 [modus_operandi]、[Measures].[fir_status]、[Measures].[fir_id]、[Measures].[the_geom]、[Measures].[date_start_time]、[Measures].[date_end_time]、[Measures].[incident_count ]} 在列上,非空过滤器([事件].[incident_id].Members,ST_Contains([district].[district_id].[13221].Properties(“the_geom”),[incident].CurrentMember.Properties(“the_geom”)))开ROWS 来自 [pin_mapping] where ([time].[newtime])'
`Mondrian 错误:解析 MDX 语句时出错,成员 [Measures].[incident_type] 作为 '[incident].CurrentMember.Properties("incident_type")' 成员 [Measures].[incident_desc] 作为 '[incident].CurrentMember。 Properties("incident_desc")' 成员 [Measures].[incident_class] as '[incident].CurrentMember.Properties("incident_class")' 成员 [Measures].[incident_image] as '[incident].CurrentMember.Properties("incident_image ")' 成员 [Measures].[modus_operandi] 作为 '[incident].CurrentMember.Properties("modus_operandi")' 成员 [Measures].[fir_status] 作为 '[incident].CurrentMember.Properties("fir_status")' 成员[措施].[fir_id] as '[incident].CurrentMember.Properties("fir_id")'成员 [Measures].[date_start_time] 作为 '[incident].CurrentMember.Properties("date_start_time")' 成员 [Measures].[the_geom] 作为 '[incident].CurrentMember.Properties("the_geom")' 成员 [Measures] .[date_end_time] as '[incident].CurrentMember.Properties("date_end_time")' 成员 [time].[newtime] as 'Aggregate({([time].[2012].[12].[19]] : [时间].[2012].[12].[31]),([时间].[2013]),([时间].[2014].[1].[1] : [时间].[2014] .[1].[8])})' 选择 {[Measures].[incident_type], [Measures].[incident_desc], [Measures].[incident_class], [Measures].[incident_image], [Measures]。 [modus_operandi]、[Measures].[fir_status]、[Measures].[fir_id]、[Measures].[the_geom]、[Measures].[date_start_time]、[Measures].[date_end_time]、[Measures].[incident_count ]} 在列上,非空过滤器([事件].[incident_id].Members,ST_Contains([district].[district_id].[13221].Properties(“the_geom”),[incident].CurrentMember.Properties(“the_geom”)))开ROWS 来自 [pin_mapping] where ([time].[newtime])'
蒙德里安错误:在多维数据集 'pin_mapping' 中找不到 MDX 对象'[time].[2014].[1].[1]']`
这个错误的原因是什么?
java - 在 pentaho 5.2 中获取 olap4j 连接的异常
我有两个 Pentaho 插件。在 GWT 中制造的一个在 5.0-5.2 中工作并返回我需要的所有尺寸。现在我需要在没有 gwt 的情况下进行重构。我将连接代码放在我的新 REST 服务中,代码在 pentaho 5.0 中运行良好,但在 5.2 中失败。我相信问题不在代码中,但我试图理解如果 gwt 服务运行良好,它为什么会失败。
两者以前的代码是相同的,但是 Pentaho 5.2 中的新服务行
OlapConnection 连接 = (OlapConnection) DriverManager.getConnection ...
使用此 url 失败并引发以下异常
jdbc:mondrian:Catalog=mondrian:/SampleData;Datasource=SampleData;Provider:mondrian;EnableXmla:false
jdbc:mondrian:Catalog=mondrian:/SampleData;数据源=SampleData
这两个插件都是相同的 pentaho 并且具有相同的 mondrian 属性,所以我不明白它为什么会发生。
olap - 蒙德里安:似乎无法使用聚合表
我一直在努力让聚合表工作。这是我的事实表的样子:
我将折叠employment_date_id
年份、季度和月份以仅包括年份,但包括所有其他列。这是我的聚合表的样子:
我只是折叠日期的年份部分。其余字段保持原样。这是我的配置:
我大部分是从文档中复制聚合表的第二个示例。我的大多数列都没有折叠到表中,并且是维度表的外键。
我试图执行的查询类似于:
问题是,当我调试它并打开日志记录时,我会看到如下所示的位键:
我的查询的位模式是:
所以我的聚合表被跳过了。但是,这些是折叠到表中的确切列。但是查询和聚合表之间的位位置是关闭的。我觉得奇怪的另一件事是,一部分列被折叠到表中,但所有列AggForeignKeys
都没有包含在位中,所以如果我用这些列进行查询,这个聚合表会被跳过吗?这与我的计划相反。我的计划是,只要您对年份边界进行查询,就使用此聚合表。
我不明白为什么这不起作用以及为什么无法正确构建位密钥。我试过调试蒙德里安代码,但弄清楚哪一列映射到位键中的哪个位置并不明显。我觉得这不应该这么难,但那里的一切并不能很好地解释这一点。而且这种聚合表架构真的要打破了。
我究竟做错了什么?为什么我的解决方案不起作用?
更新这是我的 mondrian.properties 文件:
java - 带有 SSAS 2012 的 Olap4j 上的 AssertionError
我们正在尝试使用 olap4j 针对 SSAS 运行 OLAP 查询。我设法设置了 XML/A 端点,SSMS 正确连接到端点并且工作正常。
但是,每次我尝试从 JAVA 运行查询时都会失败。
异常/堆栈跟踪:
mdx - 如何在 MDX 查询交叉联接中包含具有特定子项的成员?
我是 MDX 新手,我有以下情况。我必须计算特定部门(产品维度)、特定商店(位置维度)和特定时间范围内的收入。
我的立方体级别如下。
Product <- Department <- Item
Location <- Region <- Store
Time <- Year <- Month <-Day
说我是否有以下成员
然后我应该得到结果,因为 Product 中应该只包含 GV 而 location 应该只包含 CA
任何帮助,将不胜感激。
olap - Pivot4j/Olap4j 将条件添加到生成查询的 where 子句
我有一个 ROLAP 多维数据集 - Pivot4j 0.9、Olap4j 1.1.0、MySQL。
当我运行以下 MDX 时,我可以在 where 子句中看到一个附加条件,它导致结果语句不返回任何行。
生成的 SQL...
Olap4j 添加了这个子句...
...这与初始 MDX 中的任何内容都无关。date_day 的这个特定值没有数据,因此查询不返回任何数据。
这可能是什么原因造成的?