kylin-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <playboy...@gmail.com>
Subject 回复: 回复: Re: how to create cube or model with RESTful API
Date Fri, 11 Oct 2019 03:38:30 GMT
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html;
charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if
!mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Microsoft YaHei";
	panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"Microsoft YaHei";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
span.apple-converted-space
	{mso-style-name:apple-converted-space;}
.MsoChpDefault
	{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div
class=WordSection1><p class=MsoNormal>Hi Yaqian,</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>I have got the details by browser’s debug,</p><p class=MsoNormal>I
found your UI also call restful api. I think this can help me. Is right?</p><p class=MsoNormal><img
width=605 height=334 style='width:6.302in;height:3.4791in' id="图片_x0020_3" src="cid:image002.png@01D58028.678E8BE0"></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,</p><p
class=MsoNormal>Qiuyu</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal><span lang=ZH-CN style='font-family:DengXian'>发送自</span>
Windows 10 <span lang=ZH-CN style='font-family:DengXian'>版</span><a href="https://go.microsoft.com/fwlink/?LinkId=550986"><span
lang=ZH-CN style='font-family:DengXian'>邮件</span></a><span lang=ZH-CN
style='font-family:DengXian'>应用</span></p><p class=MsoNormal><span
style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><div
style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt
0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b><span
lang=ZH-CN style='font-family:DengXian'>发件人</span>: </b><a href="mailto:playboymqy@gmail.com">playboymqy@gmail.com</a><br><b><span
lang=ZH-CN style='font-family:DengXian'>发送时间</span>: </b>Friday, October
11, 2019 11:04 AM<br><b><span lang=ZH-CN style='font-family:DengXian'>收件人</span>:
</b><a href="mailto:user@kylin.apache.org">user@kylin.apache.org</a><br><b><span
lang=ZH-CN style='font-family:DengXian'>主题</span>: </b><span lang=ZH-CN
style='font-family:DengXian'>回复</span>: Re: how to create cube or model with
RESTful API</p></div><p class=MsoNormal><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p
class=MsoNormal>Hi Yaqian,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>Thanks for your reply.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>Could you provide more details for post request body?<o:p></o:p></p><p
class=MsoNormal><span style='font-size:11.0pt'>Because I need post 100 aggregation
groups, &nbsp;I don’t want to do it on UI. <o:p></o:p></span></p><p
class=MsoNormal><span style='font-size:11.0pt'>For example : how to post “dimensions,
measures, aggregation groups, mandatory dimensions and so on… ”,<o:p></o:p></span></p><p
class=MsoNormal><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p
class=MsoNormal><span style='font-size:11.0pt'>Thanks,<o:p></o:p></span></p><p
class=MsoNormal><span style='font-size:11.0pt'>Qiuyu<o:p></o:p></span></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span
lang=ZH-CN style='font-family:DengXian'>发送自</span> Windows 10 <span lang=ZH-CN
style='font-family:DengXian'>版</span><a href="https://go.microsoft.com/fwlink/?LinkId=550986"><span
lang=ZH-CN style='font-family:DengXian'>邮件</span></a><span lang=ZH-CN
style='font-family:DengXian'>应用</span><o:p></o:p></p><p
class=MsoNormal><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><div
style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span
lang=ZH-CN style='font-family:DengXian'>发件人</span></b><b>: </b><a
href="mailto:Yaqian_Zhang@126.com">Yaqian Zhang</a><br><b><span lang=ZH-CN
style='font-family:DengXian'>发送时间</span></b><b>: </b>Thursday,
October 10, 2019 8:41 PM<br><b><span lang=ZH-CN style='font-family:DengXian'>收件人</span></b><b>:
</b><a href="mailto:user@kylin.apache.org">user@kylin.apache.org</a><br><b><span
lang=ZH-CN style='font-family:DengXian'>主题</span></b><b>: </b>Re:
how to create cube or model with RESTful API<o:p></o:p></p></div><p
class=MsoNormal><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p
class=MsoNormal align=left style='text-align:left'>Hi<span lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>:</span><span
style='font-size:11.0pt'><o:p></o:p></span></p><div><p
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Sorry
for the&nbsp;<a href="http://kylin.apache.org/">Kylin.apache.org</a>&nbsp;web
didn’t provide how&nbsp;to create cube or model&nbsp;with RESTful API.<o:p></o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Actually,
you can create model and cube with RESTful API as follow:<o:p></o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>1<span
lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>、</span>Create a cube
with RESTful API:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp;POST&nbsp;&nbsp;<a href="http://host:port/kylin/api/cubes">http://host:port/kylin/api/cubes</a><o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp;<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp;Request Body:{“cubeDescData”:<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “cubeName”:<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;“projectName”:}<o:p></o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>2<span
lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>、</span>Create a model
with RESTful API:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp;&nbsp;POST&nbsp;&nbsp;<a
href="http://host:port/kylin/api/">http://host:port/kylin/api/</a>models<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp;<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp; Request Body:{“modelDescData”:<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “modelName”:<o:p></o:p></p><p
class=MsoNormal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;“projectName”:}<o:p></o:p></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal
align=left style='margin-bottom:12.0pt;text-align:left'><o:p>&nbsp;</o:p></p><blockquote
style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span
lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>在</span> 2019<span
lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>年</span>10<span lang=ZH-CN
style='font-family:"微软雅黑",sans-serif'>月</span>10<span lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>日,</span>19:58<span
lang=ZH-CN style='font-family:"微软雅黑",sans-serif'>,</span>&lt;<a
href="mailto:playboymqy@gmail.com">playboymqy@gmail.com</a>&gt; &lt;<a
href="mailto:playboymqy@gmail.com">playboymqy@gmail.com</a>&gt; <span lang=ZH-CN
style='font-family:"微软雅黑",sans-serif'>写道:</span><o:p></o:p></p></div><p
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Hi
folks,<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p
class=MsoNormal>In<span class=apple-converted-space>&nbsp;</span><a
href="http://kylin.apache.org/">Kylin.apache.org</a><span class=apple-converted-space>&nbsp;</span>web,
I can’t find any RESTful Api to create cube or model, only found “List cubes, build cube,
disable cube …”.<o:p></o:p></p><p class=MsoNormal>So, how to create
cube with Restful API, or other workarounds? Could you give me some documents as detailed
as possible?<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p
class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Qiuyu<o:p></o:p></p><p
class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal><span
lang=ZH-CN style='font-family:DengXian'>发送自</span><span class=apple-converted-space>&nbsp;</span>Windows
10<span class=apple-converted-space>&nbsp;</span><span lang=ZH-CN style='font-family:DengXian'>版</span><a
href="https://go.microsoft.com/fwlink/?LinkId=550986"><span lang=ZH-CN style='font-family:DengXian'>邮件</span></a><span
lang=ZH-CN style='font-family:DengXian'>应用</span><o:p></o:p></p></div></blockquote></div></div></div><p
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span
style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p
class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
Mime
View raw message