Repository: kylin Updated Branches: refs/heads/document a314c2252 -> 110843520
docs about how to build binary package Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/11084352 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/11084352 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/11084352 Branch: refs/heads/document Commit: 110843520c6ac07a44b8ae52296b09ea2ca73908 Parents: a314c22 Author: lidongsjtu <lid...@apache.org> Authored: Mon Feb 6 18:50:28 2017 +0800 Committer: lidongsjtu <lid...@apache.org> Committed: Mon Feb 6 18:50:28 2017 +0800 ---------------------------------------------------------------------- website/_dev/howto_package.md | 41 +++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/11084352/website/_dev/howto_package.md ---------------------------------------------------------------------- diff --git a/website/_dev/howto_package.md b/website/_dev/howto_package.md index f0f044f..8d66dbe 100644 --- a/website/_dev/howto_package.md +++ b/website/_dev/howto_package.md @@ -6,17 +6,44 @@ permalink: /development/howto_package.html --- ### Generate Binary Package -{% highlight bash %} +This document talks about how to build binary package from source code. + +#### Download source code +You can download Apache Kylin source code from github repository. + +``` git clone https://github.com/apache/kylin kylin -cd kylin -./build/script/package.sh -{% endhighlight %} +``` + +#### Build Binary Package In order to generate binary package, **maven** and **npm** are pre-requisites. -If you're behind a proxy server, both npm and bower need be told with the proxy info before running ./script/package.sh: +**(Optional)** If you're behind a proxy server, both npm and bower need be told with the proxy info before running ./script/package.sh: -{% highlight bash %} +``` export http_proxy=http://your-proxy-host:port npm config set proxy http://your-proxy-host:port -{% endhighlight %} \ No newline at end of file +``` + +##### Build Package for HBase 1.x +``` +cd kylin +build/script/package.sh +``` + +##### Build Package for CDH 5.7 +``` +cd kylin +build/script/package.sh -P cdh 5.7 +``` + +##### Build Package for HBase 0.98.x + +Source code for HBase 0.98.x is in another branch named master-hbase0.98, and you need to switch to this branch before build the package. + +``` +cd kylin +git checkout master-hbase0.98 +build/script/package.sh +``` \ No newline at end of file