mondrian4 kylin saiku 整合踩坑記錄

先說了版本:

Mondrian 4 、kylin2.2 亡笑、saiku 3.15

saiku 3.15

使用的xml是基于 mondrian4 的schema的xml侣夷。網(wǎng)上大多數(shù)文章是介紹mondrian3的schema語法的

Mondrian4 :

官方地址:

https://github.com/pentaho/mondrian > 打包出來的mondrian-8.1版本

網(wǎng)上很多文章的mondrian schema的xml 是基于Mondrian3 的。

mondrian 4 與mondrian3 的schema的對比:

  1. 判斷是不是mondrian4:
  • schema 標簽 從mondrian4 開始加入了metamodelVersion仑乌,mondrian4.0 的標簽如下:
  • 多了PhysicalSchema百拓、Attributes標簽
  1. mondrian4 的schema.xml語法:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Schema SYSTEM "mondrian.dtd" >
<Schema metamodelVersion="4.0">
 <!-- Define how the DB tables are set up -->
 <PhysicalSchema>
  <!-- Specify source tables -->
  <Table/>
  <!-- Define relationships between snowflake or alias tables, not direct dim tables! -->
  <Link/>
 </PhysicalSchema>
 <!-- Create your cube definition and reference back to the physical schema -->
 <Cube>
  <!-- Define dimensions and attributes -->
  <Dimensions>
   <Dimension>
    <Attribute/>
   </Dimension>
   <Hierarchies>
    <Hierarchy>
     <Level/>
    </Hierarchy>
   </Hierarchies>
  </Dimensions>
  <!-- Define Measures -->
  <MeasureGroups>
   <MeasureGroup>
    <Measures>
     <Measure/>
    </Measures>
    <DimensionLinks>
     <ForeignKeyLink/>
     <FactLink/>
    </DimensionLinks>
   </MeasureGroup>
  </MeasureGroups>
  <!-- Define Calculated Members and Names Sets -->
  <CalculatedMembers/>
  <NamedSets/>
 </Cube>
 <!-- If you have conformed dimensions, specify them globally.-->
 <Dimension>
 <!-- Define roles below to restrict access to the cube(s). -->
 <Role>
</Schema>
  1. mondrian3 的schema.xml語法:
<Schema>
    <Cube name="Sales">
        <Table name="sales_fact_1997"/>
        <Dimension name="Gender" foreignKey="customer_id">
            <Hierarchy hasAll="true" allMemberName="All Genders" primaryKey="customer_id">
                <Table name="customer"/>
                <Level name="Gender" column="gender" uniqueMembers="true"/>
            </Hierarchy>
        </Dimension>
        <Dimension name="Time" foreignKey="time_id">
            <Hierarchy hasAll="false" primaryKey="time_id">
                <Table name="time_by_day"/>
                <Level name="Year" column="the_year" type="Numeric" uniqueMembers="true"/>
                <Level name="Quarter" column="quarter" uniqueMembers="false"/>
                <Level name="Month" column="month_of_year" type="Numeric" uniqueMembers="false"/>
            </Hierarchy>
        </Dimension>
        <Measure name="Unit Sales" column="unit_sales" aggregator="sum" formatString="#,###"/>
        <Measure name="Store Sales" column="store_sales" aggregator="sum" formatString="#,###.##"/>
        <Measure name="Store Cost" column="store_cost" aggregator="sum" formatString="#,###.00"/>
        <CalculatedMember name="Profit" dimension="Measures" formula="[Measures].[Store Sales] - [Measures].[Store Cost]">
            <CalculatedMemberProperty name="FORMAT_STRING" value="$#,##0.00"/>
        </CalculatedMember>
    </Cube>
</Schema>

官方文檔:

  1. mondrian 4 官方(多了head):https://mondrian.pentaho.com/head/documentation/schema.php 注意:頁面里面的左側菜單是沒有head的,可能是沒有head的最新內容

百度Google搜索到的都是mondrian3版本的晰甚。

  1. mondrian 3官方:https://mondrian.pentaho.com/documentation/schema.php

參考資料

mondrian4:

  1. https://diethardsteiner.blogspot.com/2013/01/mondrian-4-get-ready.html
  2. mondrian 官方schema.xml 文檔 https://mondrian.pentaho.com/head/documentation/schema.php
  3. 《Mondrian in Action》 是基于mondrian4

mondrian3

  1. mondrian 官方schema:https://mondrian.pentaho.com/documentation/schema.php
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末衙传,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子厕九,更是在濱河造成了極大的恐慌蓖捶,老刑警劉巖,帶你破解...
    沈念sama閱讀 218,204評論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件扁远,死亡現(xiàn)場離奇詭異俊鱼,居然都是意外死亡,警方通過查閱死者的電腦和手機畅买,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,091評論 3 395
  • 文/潘曉璐 我一進店門并闲,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人谷羞,你說我怎么就攤上這事焙蚓。” “怎么了?”我有些...
    開封第一講書人閱讀 164,548評論 0 354
  • 文/不壞的土叔 我叫張陵购公,是天一觀的道長萌京。 經(jīng)常有香客問我,道長宏浩,這世上最難降的妖魔是什么知残? 我笑而不...
    開封第一講書人閱讀 58,657評論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮比庄,結果婚禮上求妹,老公的妹妹穿的比我還像新娘。我一直安慰自己佳窑,他們只是感情好制恍,可當我...
    茶點故事閱讀 67,689評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著神凑,像睡著了一般净神。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上溉委,一...
    開封第一講書人閱讀 51,554評論 1 305
  • 那天鹃唯,我揣著相機與錄音,去河邊找鬼瓣喊。 笑死坡慌,一個胖子當著我的面吹牛,可吹牛的內容都是我干的藻三。 我是一名探鬼主播洪橘,決...
    沈念sama閱讀 40,302評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼棵帽!你這毒婦竟也來了梨树?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 39,216評論 0 276
  • 序言:老撾萬榮一對情侶失蹤岖寞,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后柜蜈,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體仗谆,經(jīng)...
    沈念sama閱讀 45,661評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 37,851評論 3 336
  • 正文 我和宋清朗相戀三年淑履,在試婚紗的時候發(fā)現(xiàn)自己被綠了隶垮。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 39,977評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡秘噪,死狀恐怖狸吞,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤蹋偏,帶...
    沈念sama閱讀 35,697評論 5 347
  • 正文 年R本政府宣布便斥,位于F島的核電站,受9級特大地震影響威始,放射性物質發(fā)生泄漏枢纠。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,306評論 3 330
  • 文/蒙蒙 一黎棠、第九天 我趴在偏房一處隱蔽的房頂上張望晋渺。 院中可真熱鬧,春花似錦脓斩、人聲如沸木西。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,898評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽八千。三九已至,卻和暖如春挪挤,著一層夾襖步出監(jiān)牢的瞬間叼丑,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,019評論 1 270
  • 我被黑心中介騙來泰國打工扛门, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留鸠信,地道東北人。 一個月前我還...
    沈念sama閱讀 48,138評論 3 370
  • 正文 我出身青樓论寨,卻偏偏與公主長得像星立,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子葬凳,可洞房花燭夜當晚...
    茶點故事閱讀 44,927評論 2 355

推薦閱讀更多精彩內容

  • Spring Cloud為開發(fā)人員提供了快速構建分布式系統(tǒng)中一些常見模式的工具(例如配置管理绰垂,服務發(fā)現(xiàn),斷路器火焰,智...
    卡卡羅2017閱讀 134,657評論 18 139
  • # Python 資源大全中文版 我想很多程序員應該記得 GitHub 上有一個 Awesome - XXX 系列...
    aimaile閱讀 26,482評論 6 427
  • 太長了劲装,還是轉載吧...今天在看博客的時候,無意中發(fā)現(xiàn)了@Trinea在GitHub上的一個項目Android開源...
    龐哈哈哈12138閱讀 20,186評論 3 283
  • 今天上數(shù)學課的時候老師問我昌简,我的周末小卷在哪占业?我跟老師說忘帶了后,老師就說明天再交纯赎。下完了數(shù)學課之后谦疾,我們都看到...
    小狐貍的麻麻閱讀 341評論 0 1
  • 一七令 .荷 荷, 倚碧犬金,凌波念恍。 羞楊柳六剥,勝嬌娥。 邀蝶飛舞峰伙,引蜂唱歌疗疟。 出污泥直正,搖綠水婆娑词爬。 粉蕊櫛風繾綣秃嗜,...
    不語不問閱讀 450評論 5 11