You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/05/27 13:40:15 UTC
svn commit: r1681991 [1/8] - in /incubator/kylin/site: api/ api/2014/
api/2014/12/ api/2014/12/31/ api/2014/12/31/Build-Cube-with-Restful-API/
api/2015/ api/2015/03/ api/2015/03/18/ api/2015/03/18/Restful-Service-Doc/
howto/ howto/2014/ howto/2014/10/ ...
Author: lukehan
Date: Wed May 27 11:40:12 2015
New Revision: 1681991
URL: http://svn.apache.org/r1681991
Log:
KYLIN-789 update website docs structure and migrate wiki pages
Added:
incubator/kylin/site/api/
incubator/kylin/site/api/2014/
incubator/kylin/site/api/2014/12/
incubator/kylin/site/api/2014/12/31/
incubator/kylin/site/api/2014/12/31/Build-Cube-with-Restful-API/
incubator/kylin/site/api/2014/12/31/Build-Cube-with-Restful-API/index.html
incubator/kylin/site/api/2015/
incubator/kylin/site/api/2015/03/
incubator/kylin/site/api/2015/03/18/
incubator/kylin/site/api/2015/03/18/Restful-Service-Doc/
incubator/kylin/site/api/2015/03/18/Restful-Service-Doc/index.html
incubator/kylin/site/howto/
incubator/kylin/site/howto/2014/
incubator/kylin/site/howto/2014/10/
incubator/kylin/site/howto/2014/10/23/
incubator/kylin/site/howto/2014/10/23/Kylin-web-front-end-summary/
incubator/kylin/site/howto/2014/10/23/Kylin-web-front-end-summary/index.html
incubator/kylin/site/howto/2014/10/24/
incubator/kylin/site/howto/2014/10/24/How-to-Contribute/
incubator/kylin/site/howto/2014/10/24/How-to-Contribute/index.html
incubator/kylin/site/howto/2014/11/
incubator/kylin/site/howto/2014/11/14/
incubator/kylin/site/howto/2014/11/14/How to install kylin in your Hadoop cluster/
incubator/kylin/site/howto/2014/11/14/How to install kylin in your Hadoop cluster/index.html
incubator/kylin/site/howto/2014/12/
incubator/kylin/site/howto/2014/12/09/
incubator/kylin/site/howto/2014/12/09/New-meta-data-model-structure/
incubator/kylin/site/howto/2014/12/09/New-meta-data-model-structure/index.html
incubator/kylin/site/howto/2015/
incubator/kylin/site/howto/2015/01/
incubator/kylin/site/howto/2015/01/04/
incubator/kylin/site/howto/2015/01/04/Run-Kylin-test-case-with-HBase-Mini-Cluster/
incubator/kylin/site/howto/2015/01/04/Run-Kylin-test-case-with-HBase-Mini-Cluster/index.html
incubator/kylin/site/howto/2015/03/
incubator/kylin/site/howto/2015/03/03/
incubator/kylin/site/howto/2015/03/03/How-to-consume-Kylin-REST-API-in-javascript/
incubator/kylin/site/howto/2015/03/03/How-to-consume-Kylin-REST-API-in-javascript/index.html
incubator/kylin/site/howto/2015/03/05/
incubator/kylin/site/howto/2015/03/05/Kylin-Metadata-Store/
incubator/kylin/site/howto/2015/03/05/Kylin-Metadata-Store/index.html
incubator/kylin/site/howto/2015/03/18/
incubator/kylin/site/howto/2015/03/18/How-to-use-kylin-remote-jdbc-driver/
incubator/kylin/site/howto/2015/03/18/How-to-use-kylin-remote-jdbc-driver/index.html
incubator/kylin/site/howto/2015/05/
incubator/kylin/site/howto/2015/05/18/
incubator/kylin/site/howto/2015/05/18/Export-Kylin-HBase-data/
incubator/kylin/site/howto/2015/05/18/Export-Kylin-HBase-data/index.html
incubator/kylin/site/images/
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/1 action-build.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/2 pop-up.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/3 end-date.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/4 submit.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/4.1 success.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/5 jobs-page.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/6 discard.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/7 job-steps.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/8 hover-step.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/9 log-d.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/9 log.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/9 mrjob-d.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/9 mrjob.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/9 parameters-d.png (with props)
incubator/kylin/site/images/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/9 parameters.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/1 manage-prject.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/10 filter.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/11 refresh-setting1.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/11 refresh-setting2.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/12 advanced.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/13 overview.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/2 +project.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/3 new-project.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/3.1 pj-created.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/4 +table.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/5 hive-table.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/6 +cube.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/7 cube-info.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-+dim.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-edit.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-factable.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-typeA.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-typeB-1.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-typeB-2.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-typeC.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/8 dim-typeD.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/9 meas-+meas.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/9 meas-count.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/9 meas-distinct.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/9 meas-max.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/9 meas-min.png (with props)
incubator/kylin/site/images/Kylin-Cube-Creation-Tutorial/9 meas-sum.png (with props)
incubator/kylin/site/images/Kylin-Cube-Permission-Grant-Tutorial/
incubator/kylin/site/images/Kylin-Cube-Permission-Grant-Tutorial/14 +grant.png (with props)
incubator/kylin/site/images/Kylin-Cube-Permission-Grant-Tutorial/15 grantInfo.png (with props)
incubator/kylin/site/images/Kylin-Cube-Permission-Grant-Tutorial/16 grant-user.png (with props)
incubator/kylin/site/images/Kylin-Cube-Permission-Grant-Tutorial/16 user-update.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/
incubator/kylin/site/images/Kylin-Web-Tutorial/1 login.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/10 query-result.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/11 save-query-2.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/11 save-query.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/12 general.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/13 results.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/14 drag.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/15 bar-chart.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/16 pie-chart.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/17 line-chart.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/2 tables.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/3 cubes.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/4 form-view.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/5 sql-view.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/6 visualization.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/7 access.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/7 job-steps.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/8 query.png (with props)
incubator/kylin/site/images/Kylin-Web-Tutorial/9 query-table.png (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/1 odbc.png (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/10 connectLive.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/11 analysis.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/12 edit tables.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/13 visual.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/14 publish.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/16 prepare-publish.png (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/17 embedded-pwd.png (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/18 groupby-folder.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/19 custom.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/2 serverhost.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/3 project.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/4 done.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/5 multipleTable.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/6 facttable.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/6 facttable2.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/7 lkptable.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/8 join.jpg (with props)
incubator/kylin/site/images/Kylin-and-Tableau-Tutorial/9 connName.jpg (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/
incubator/kylin/site/images/On-Hadoop-CLI-installation/Picture1.png (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/Picture2.png (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/cube.png (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/installation.pptx (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/job.png (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/query.png (with props)
incubator/kylin/site/images/On-Hadoop-CLI-installation/starthbase.png (with props)
incubator/kylin/site/installation/
incubator/kylin/site/installation/2014/
incubator/kylin/site/installation/2014/12/
incubator/kylin/site/installation/2014/12/05/
incubator/kylin/site/installation/2014/12/05/On-Hadoop-Kylin-installation-using-Docker/
incubator/kylin/site/installation/2014/12/05/On-Hadoop-Kylin-installation-using-Docker/index.html
incubator/kylin/site/installation/2015/
incubator/kylin/site/installation/2015/01/
incubator/kylin/site/installation/2015/01/22/
incubator/kylin/site/installation/2015/01/22/Advance-settings-of-Kylin-environment/
incubator/kylin/site/installation/2015/01/22/Advance-settings-of-Kylin-environment/index.html
incubator/kylin/site/installation/2015/01/22/Kylin-Manual-Installation-Guide/
incubator/kylin/site/installation/2015/01/22/Kylin-Manual-Installation-Guide/index.html
incubator/kylin/site/installation/2015/02/
incubator/kylin/site/installation/2015/02/15/
incubator/kylin/site/installation/2015/02/15/Off-Hadoop-CLI-Installation-(Dev-Env-Setup)/
incubator/kylin/site/installation/2015/02/15/Off-Hadoop-CLI-Installation-(Dev-Env-Setup)/index.html
incubator/kylin/site/installation/2015/03/
incubator/kylin/site/installation/2015/03/13/
incubator/kylin/site/installation/2015/03/13/On-Hadoop-CLI-installation/
incubator/kylin/site/installation/2015/03/13/On-Hadoop-CLI-installation/index.html
incubator/kylin/site/tutorial/
incubator/kylin/site/tutorial/2014/
incubator/kylin/site/tutorial/2014/11/
incubator/kylin/site/tutorial/2014/11/05/
incubator/kylin/site/tutorial/2014/11/05/Kylin-ODBC-Driver-Tutorial/
incubator/kylin/site/tutorial/2014/11/05/Kylin-ODBC-Driver-Tutorial/index.html
incubator/kylin/site/tutorial/2014/11/06/
incubator/kylin/site/tutorial/2014/11/06/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/
incubator/kylin/site/tutorial/2014/11/06/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/index.html
incubator/kylin/site/tutorial/2014/11/11/
incubator/kylin/site/tutorial/2014/11/11/Kylin-Cube-Permission-Grant-Tutorial/
incubator/kylin/site/tutorial/2014/11/11/Kylin-Cube-Permission-Grant-Tutorial/index.html
incubator/kylin/site/tutorial/2014/11/15/
incubator/kylin/site/tutorial/2014/11/15/Kylin-Cube-Creation-Tutorial/
incubator/kylin/site/tutorial/2014/11/15/Kylin-Cube-Creation-Tutorial/index.html
incubator/kylin/site/tutorial/2015/
incubator/kylin/site/tutorial/2015/04/
incubator/kylin/site/tutorial/2015/04/17/
incubator/kylin/site/tutorial/2015/04/17/Kylin-Web-Tutorial/
incubator/kylin/site/tutorial/2015/04/17/Kylin-Web-Tutorial/index.html
incubator/kylin/site/tutorial/2015/04/17/Kylin-and-Tableau-Tutorial/
incubator/kylin/site/tutorial/2015/04/17/Kylin-and-Tableau-Tutorial/index.html
Added: incubator/kylin/site/api/2014/12/31/Build-Cube-with-Restful-API/index.html
URL: http://svn.apache.org/viewvc/incubator/kylin/site/api/2014/12/31/Build-Cube-with-Restful-API/index.html?rev=1681991&view=auto
==============================================================================
--- incubator/kylin/site/api/2014/12/31/Build-Cube-with-Restful-API/index.html (added)
+++ incubator/kylin/site/api/2014/12/31/Build-Cube-with-Restful-API/index.html Wed May 27 11:40:12 2015
@@ -0,0 +1,519 @@
+<!--
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+-->
+
+<!doctype html>
+<html>
+ <!--
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+-->
+
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <title>Apache Kylin | Build Cube with Restful API</title>
+ <meta name="description" content="1. Authentication Currently, Kylin uses basic authentication. Add Authorization header to first request for authentication Or you can do a specific reques...">
+ <meta name="author" content="Apache Kylin">
+ <link rel="shortcut icon" href="fav.png" type="image/png">
+
+
+
+<link rel="stylesheet" href="/assets/css/animate.css">
+<!-- Bootstrap -->
+<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
+
+<!-- Fonts -->
+<!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Alice|Open+Sans:400,300,700"> -->
+
+<!-- Icons -->
+<link rel="stylesheet" href="/assets/css/font-awesome.min.css">
+
+ <!-- Custom styles -->
+ <link rel="stylesheet" href="/assets/css/styles.css">
+ <link rel="stylesheet" href="/assets/css/docs.css">
+ <link rel="stylesheet" href="/assets/css/pygments.css">
+
+ <link rel="canonical" href="http://kyli.io/api/2014/12/31/Build-Cube-with-Restful-API/">
+ <link rel="alternate" type="application/rss+xml" title="kylin.io" href="http://kyli.io/feed.xml" />
+
+<!--[if lt IE 9]> <script src="assets/js/html5shiv.js"></script> <![endif]-->
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ //oringal tracker for kylin.io
+ ga('create', 'UA-55534813-1', 'auto');
+ //new tracker for kylin.incubator.apache.org
+ ga('create', 'UA-55534813-2', 'auto', {'name':'incubator'});
+
+ ga('send', 'pageview');
+ ga('incubator.send', 'pageview');
+
+
+</script>
+
+</head>
+
+ <body>
+ <!--
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+-->
+
+<header id="header" >
+
+ <div id="head" class="parallax" parallax-speed="3" >
+ <div id="logo" class="text-center"> <img class="img-circle" id="circlelogo" src="/assets/images/kylin_logo.jpg"> <span class="title" >Apache Kylin</span> <span class="tagline">Extreme OLAP Engine for Big Data</span>
+ </div>
+ </div>
+
+
+ <!-- Main Menu -->
+ <nav class="navbar navbar-default" role="navigation" id="nav-wrapper">
+ <div class="container-fluid" id="nav">
+ <!--
+ <img class="img-circle" width="40px" height="40px" id="circlelogo" src="/assets/images/kylin_logo.jpg">
+ -->
+ <!-- Brand and toggle get grouped for better mobile display -->
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+
+ </div>
+
+ <!-- Collect the nav links, forms, and other content for toggling -->
+ <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+ <ul class="nav navbar-nav">
+ <li><a href="/"><b>Home</b></a></li>
+ <li><a href="/docs" >Docs</a></li>
+ <li><a href="/community" >Community</a></li>
+ <li><a href="/blog">Blog</li>
+ <li><a href="/download">Download</li>
+ <li><a href="/about" >About</a></li>
+ <li><a href="/cn" >ä¸æç</a></li>
+ <li><a href="https://twitter.com/apachekylin" target="_blank" class="fa fa-twitter fa-lg" title="Twitter: @ApacheKylin" ></a></li>
+ <li><a href="https://github.com/apache/incubator-kylin" target="_blank" class="fa fa-github-alt fa-lg" title="Github: apache/incubator-kylin" ></a></li>
+ <li><a href="https://www.facebook.com/kylinio" target="_blank" class="fa fa-facebook fa-lg" title="Facebook: kylin.io" ></a></li>
+ </ul>
+ </div><!-- /.navbar-collapse -->
+ </div><!-- /.container-fluid -->
+</nav>
+ </header>
+
+ <div class="page-content">
+ <header style=" padding:2em 0 0 0">
+ <div class="container" >
+ <h4 class="section-title"><span>Kylin Docs</span></h4>
+ </div>
+ </div>
+ <div class="container">
+ <div class="row">
+ <!--
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+-->
+
+<div class="col-md-3 col-lg-3 col-xs-4 aside1 visible-md visible-lg">
+ <ul class="nav nav-pills nav-stacked">
+ <!-- categories -->
+
+ <!-- categories -->
+
+ <!-- categories -->
+
+ <li><a href="#installation" data-toggle="collapse" >Installation</a></li>
+ <div class="collapse in" id="installation">
+ <div class="list-group">
+ <ul style="list-style-type:disc">
+
+ <li><a href="/installation/2015/03/13/On-Hadoop-CLI-installation/" class="list-group-item-lay pjaxlink">On Hadoop CLI installation</a></li>
+
+ <li><a href="/installation/2015/02/15/Off-Hadoop-CLI-Installation-(Dev-Env-Setup)/" class="list-group-item-lay pjaxlink">Off Hadoop CLI Installation (Dev Env Setup)</a></li>
+
+ <li><a href="/installation/2015/01/22/Kylin-Manual-Installation-Guide/" class="list-group-item-lay pjaxlink">Kylin Manual Installation Guide</a></li>
+
+ <li><a href="/installation/2015/01/22/Advance-settings-of-Kylin-environment/" class="list-group-item-lay pjaxlink">Advance settings of Kylin environment</a></li>
+
+ <li><a href="/installation/2014/12/05/On-Hadoop-Kylin-installation-using-Docker/" class="list-group-item-lay pjaxlink">On Hadoop Kylin installation using Docker</a></li>
+
+ <ul>
+ </div>
+ </div>
+
+ <!-- categories -->
+
+ <!-- categories -->
+
+ <!-- categories -->
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="#howto" data-toggle="collapse" >How to</a></li>
+ <div class="collapse in" id="howto">
+ <div class="list-group">
+ <ul style="list-style-type:disc">
+
+ <li><a href="/howto/2015/05/18/Export-Kylin-HBase-data/" class="list-group-item-lay pjaxlink">Export Kylin HBase data</a></li>
+
+ <li><a href="/howto/2015/03/18/How-to-use-kylin-remote-jdbc-driver/" class="list-group-item-lay pjaxlink">How to use kylin remote jdbc driver</a></li>
+
+ <li><a href="/howto/2015/03/05/Kylin-Metadata-Store/" class="list-group-item-lay pjaxlink">Kylin Metadata Store</a></li>
+
+ <li><a href="/howto/2015/03/03/How-to-consume-Kylin-REST-API-in-javascript/" class="list-group-item-lay pjaxlink">How to consume Kylin REST API in javascript</a></li>
+
+ <li><a href="/howto/2015/01/04/Run-Kylin-test-case-with-HBase-Mini-Cluster/" class="list-group-item-lay pjaxlink">Run Kylin test case with HBase Mini Cluster</a></li>
+
+ <li><a href="/howto/2014/12/09/New-meta-data-model-structure/" class="list-group-item-lay pjaxlink">New meta data model structure</a></li>
+
+ <li><a href="/howto/2014/11/14/How%20to%20install%20kylin%20in%20your%20Hadoop%20cluster/" class="list-group-item-lay pjaxlink">How to install kylin in your Hadoop cluster</a></li>
+
+ <li><a href="/howto/2014/10/24/How-to-Contribute/" class="list-group-item-lay pjaxlink">How to Contribute</a></li>
+
+ <li><a href="/howto/2014/10/23/Kylin-web-front-end-summary/" class="list-group-item-lay pjaxlink">Kylin web front end summary</a></li>
+
+ <ul>
+ </div>
+ </div>
+
+
+
+ <li><a href="#tutorial" data-toggle="collapse" >Tutorial</a></li>
+ <div class="collapse in" id="tutorial">
+ <div class="list-group">
+ <ul style="list-style-type:disc">
+
+ <li><a href="/tutorial/2015/04/17/Kylin-and-Tableau-Tutorial/" class="list-group-item-lay pjaxlink">Kylin and Tableau Tutorial</a></li>
+
+ <li><a href="/tutorial/2015/04/17/Kylin-Web-Tutorial/" class="list-group-item-lay pjaxlink">Kylin Web Tutorial</a></li>
+
+ <li><a href="/tutorial/2014/11/15/Kylin-Cube-Creation-Tutorial/" class="list-group-item-lay pjaxlink">Kylin Cube Creation Tutorial</a></li>
+
+ <li><a href="/tutorial/2014/11/11/Kylin-Cube-Permission-Grant-Tutorial/" class="list-group-item-lay pjaxlink">Kylin Cube Permission Grant Tutorial</a></li>
+
+ <li><a href="/tutorial/2014/11/06/Kylin-Cube-Build-and-Job-Monitoring-Tutorial/" class="list-group-item-lay pjaxlink">Kylin Cube Build and Job Monitoring Tutorial</a></li>
+
+ <li><a href="/tutorial/2014/11/05/Kylin-ODBC-Driver-Tutorial/" class="list-group-item-lay pjaxlink">Kylin ODBC Driver Tutorial</a></li>
+
+ <ul>
+ </div>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="#api" data-toggle="collapse" >API</a></li>
+ <div class="collapse in" id="api">
+ <div class="list-group">
+ <ul style="list-style-type:disc">
+
+ <li><a href="/api/2015/03/18/Restful-Service-Doc/" class="list-group-item-lay pjaxlink">Restful Service Doc</a></li>
+
+ <li><a href="/api/2014/12/31/Build-Cube-with-Restful-API/" class="list-group-item-lay pjaxlink">Build Cube with Restful API</a></li>
+
+ <ul>
+ </div>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li><a href="#faq" data-toggle="collapse" >FAQ</a></li>
+ <div class="collapse in" id="faq">
+ <div class="list-group">
+ <ul style="list-style-type:disc">
+
+ <li><a href="/faq/2015/05/18/FAQ-on-Kylin-Installation-and-Usage/" class="list-group-item-lay pjaxlink">FAQ on Kylin Installation and Usage</a></li>
+
+ <ul>
+ </div>
+ </div>
+
+
+ </ul>
+</div>
+
+ <div class="col-md-9 col-lg-9 col-xs-14 aside2">
+ <div id="container">
+ <div id="pjax">
+ <!--
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+-->
+
+<div class="post" style=" padding:2em 4em 4em 4em">
+
+ <header class="post-header">
+ <h1 class="post-title">Build Cube with Restful API</h1>
+ <p class="post-meta" >Dec 31, 2014 ⢠liyang-gmt8</p>
+ </header>
+
+ <article class="post-content" >
+ <h3 id="authentication">1. Authentication</h3>
+<ul>
+ <li>Currently, Kylin uses <a href="http://en.wikipedia.org/wiki/Basic_access_authentication">basic authentication</a>.</li>
+ <li>Add <code>Authorization</code> header to first request for authentication</li>
+ <li>Or you can do a specific request by <code>POST http://localhost:7070/kylin/api/user/authentication</code></li>
+ <li>Once authenticated, client can go subsequent requests with cookies.</li>
+ <li>Example</li>
+</ul>
+
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">POST http://localhost:7070/kylin/api/user/authentication
+
+ Authorization:Basic xxxxJD124xxxGFxxxSDF
+ Content-Type: application/json;charset=UTF-8</code></pre></div>
+
+<h3 id="get-details-of-cube">2. Get details of cube.</h3>
+<ul>
+ <li><code>GET http://localhost:7070/kylin/api/cubes?cubeName={cube_name}&limit=15&offset=0</code></li>
+ <li>Client can find cube segment date ranges in returned cube detail.</li>
+ <li>Example</li>
+</ul>
+
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">GET http://localhost:7070/kylin/api/cubes?cubeName=test_kylin_cube_with_slr&limit=15&offset=0
+
+ Authorization:Basic xxxxJD124xxxGFxxxSDF
+ Content-Type: application/json;charset=UTF-8</code></pre></div>
+
+<h3 id="then-submit-a-build-job-of-the-cube">3. Then submit a build job of the cube.</h3>
+<ul>
+ <li><code>PUT http://localhost:7070/kylin/api/cubes/{cube_name}/rebuild</code></li>
+ <li>For put request body detail please refer to <a href="https://github.com/KylinOLAP/Kylin/wiki/Restful-Service-Doc">service doc</a>.
+ <ul>
+ <li><code>startTime</code> and <code>endTime</code> should be utc timestamp.</li>
+ <li><code>buildType</code> can be <code>BUILD</code> or <code>MERGE</code>. <code>BUILD</code> is for building a new segment or refreshing an existing segment. <code>MERGE</code> is for merging multiple existing segments into one bigger segment.</li>
+ </ul>
+ </li>
+ <li>This method will return a newly created job instance, in which the uuid is the identity of job to track job status.</li>
+ <li>Example</li>
+</ul>
+
+<div class="highlight"><pre><code class="language-groff" data-lang="groff">PUT http://localhost:7070/kylin/api/cubes/test_kylin_cube_with_slr/rebuild
+
+ Authorization:Basic xxxxJD124xxxGFxxxSDF
+ Content-Type: application/json;charset=UTF-8
+
+ {
+ "startTime": 0,
+ "endTime": 1388563200000,
+ "buildType": "BUILD"
+ }</code></pre></div>
+
+<h3 id="track-job-status">4. Track job status.</h3>
+<ul>
+ <li><code>GET http://localhost:7070/kylin/api/jobs/{job_uuid}</code></li>
+ <li>Returned <code>job_status</code> represents current status of job.</li>
+</ul>
+
+<h3 id="if-the-job-failed-you-can-resume-the-job">5. If the job failed, you can resume the job.</h3>
+<ul>
+ <li><code>PUT http://localhost:7070/kylin/api/jobs/{job_uuid}/resume</code></li>
+</ul>
+
+ </article>
+
+</div>
+
+
+
+
+
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+-->
+
+<footer id="underfooter">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-12 widget" >
+ <div class="widget-body" style="text-align:center">
+ <div>
+ Apache Kylin is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </div>
+ <p style="text-align:center" > Apache Kylin is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0. </a>
+ </p>
+ </div>
+ </div>
+ </div>
+ <!-- /row of widgets -->
+
+ </div>
+ <div></div>
+
+</footer>
+
+ <script src="/assets/js/jquery-1.9.1.min.js"></script>
+ <script src="/assets/js/bootstrap.min.js"></script>
+ <script src="/assets/js/main.js"></script>
+ </body>
+</html>