CINXE.COM
<!doctype html> <html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-development/how_to_package" data-has-hydrated="false"> <head> <meta charset="UTF-8"> <meta name="generator" content="Docusaurus v3.5.2"> <title data-rh="true">How to package | Apache Kylin</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://kylin.apache.org/docs/development/how_to_package"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="How to package | Apache Kylin"><meta data-rh="true" name="description" content="Software Requirement"><meta data-rh="true" property="og:description" content="Software Requirement"><meta data-rh="true" name="keywords" content="package"><link data-rh="true" rel="icon" href="/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://kylin.apache.org/docs/development/how_to_package"><link data-rh="true" rel="alternate" href="https://kylin.apache.org/docs/development/how_to_package" hreflang="en"><link data-rh="true" rel="alternate" href="https://kylin.apache.org/docs/development/how_to_package" hreflang="x-default"><link rel="alternate" type="application/rss+xml" href="/blog/rss.xml" title="Apache Kylin RSS Feed"> <link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="Apache Kylin Atom Feed"> <script src="https://buttons.github.io/buttons.js" async defer="defer"></script><link rel="stylesheet" href="/assets/css/styles.4d07efe4.css"> <script src="/assets/js/runtime~main.0330b745.js" defer="defer"></script> <script src="/assets/js/main.dc934ad4.js" defer="defer"></script> </head> <body class="navigation-with-keyboard" data-theme="light"> <script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();t(null!==e?e:"light")}(),function(){try{const a=new URLSearchParams(window.location.search).entries();for(var[t,e]of a)if(t.startsWith("docusaurus-data-")){var n=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(n,e)}}catch(t){}}(),document.documentElement.setAttribute("data-announcement-bar-initially-dismissed",function(){try{return"true"===localStorage.getItem("docusaurus.announcement.dismiss")}catch(t){}return!1}())</script><div id="__docusaurus"><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><div class="announcementBar_mb4j" style="background-color:#153E7B;color:#FFFFFF" role="banner"><div class="announcementBarPlaceholder_vyr4"></div><div class="content_knG7 announcementBarContent_xLdY">⭐️ <b><a target="_blank" href="http://kylin.apache.org/docs/release_notes">Apache Kylin 5.0</a> is released! 🎉 If you like Kylin, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/apache/kylin">GitHub</a>!</b> ❤️</div><button type="button" aria-label="Close" class="clean-btn close closeButton_CVFx announcementBarClose_gvF7"><svg viewBox="0 0 15 15" width="14" height="14"><g stroke="currentColor" stroke-width="3.1"><path d="M.75.75l13.5 13.5M14.25.75L.75 14.25"></path></g></svg></button></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/kylin/SVG/Apache-Kylin-blue.svg" alt="Kylin Logo" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/img/kylin/SVG/Apache-Kylin-blue.svg" alt="Kylin Logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><b class="navbar__title text--truncate">Apache Kylin</b></a><a class="navbar__item navbar__link" href="/docs/overview">Documentation</a><a class="navbar__item navbar__link" href="/docs/community">Community</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/docs/development/intro">Development</a><a class="navbar__item navbar__link" href="/blog">Blogs</a></div><div class="navbar__items navbar__items--right"><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link" aria-haspopup="true" aria-expanded="false" role="button" href="/docs/development/how_to_package">5.0.0</a><ul class="dropdown__menu"><li><a aria-current="page" class="dropdown__link dropdown__link--active" href="/docs/development/how_to_package">5.0.0</a></li><li><a class="dropdown__link" href="/docs/4.0.4/development/how_to_package">4.0.4</a></li><li><a class="dropdown__link" href="/docs/3.1.3/development/how_to_package">3.1.3</a></li><li><a class="dropdown__link" href="/docs/2.4.0/development/how_to_package">2.4.0</a></li><li><hr class="dropdown-separator"></li><li><a href="https://kylin.apache.org/archive/" target="_blank" rel="noopener noreferrer" class="dropdown__link">Archived<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li><hr class="dropdown-separator"></li><li><a class="dropdown__link" href="/docs/release_notes">Release Notes</a></li></ul></div><a class="navbar__item navbar__link" href="/docs/download">Download</a><a href="https://github.com/apache/kylin" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link header-github-link" aria-label="GitHub repository"></a><div class="navbarSearchContainer_Bca1"><div class="dsla-search-wrapper"><div class="dsla-search-field" data-tags="default,docs-default-current"></div></div></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_z2l0"><div class="docsWrapper_hBAB"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docRoot_UBD9"><aside class="theme-doc-sidebar-container docSidebarContainer_YfHR"><div class="sidebarViewport_aRkj"><div class="sidebar_njMd"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG menuWithAnnouncementBar_GW3s"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--active" href="/docs/development/intro">Development Guide</a><button aria-label="Collapse sidebar category 'Development Guide'" aria-expanded="true" type="button" class="clean-btn menu__caret"></button></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/coding_convention">Coding and Naming Convention</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_contribute">How to contribute</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_write_doc">How to write a document</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_debug_kylin_in_local">How to debug in IDEA without Hadoop</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_debug_kylin_in_ide">How to debug in IDEA with Hadoop</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_test">How to test</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/development/how_to_package">How to package</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_subscribe_mailing_list">How to subscribe and unsubscribe mailing list</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/development/how_to_understand_kylin_design">Overall Design of Kylin 5</a></li></ul></li></ul></nav></div></div></aside><main class="docMainContainer_TBSr"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_VOVn"><div class="docItemContainer_Djhp"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_YNFT"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item"><a class="breadcrumbs__link" itemprop="item" href="/docs/development/intro"><span itemprop="name">Development Guide</span></a><meta itemprop="position" content="1"></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">How to package</span><meta itemprop="position" content="2"></li></ul></nav><span class="theme-doc-version-badge badge badge--secondary">Version: 5.0.0</span><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type="button" class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>How to package</h1></header> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="software-requirement"><span id="software_reqiurement">Software Requirement</span><a href="#software-requirement" class="hash-link" aria-label="Direct link to software-requirement" title="Direct link to software-requirement"></a></h3> <table><thead><tr><th>Software</th><th>Comment</th><th>Version</th><th>Download Link</th></tr></thead><tbody><tr><td>Git</td><td>Fetch branch name and hash of latest commit</td><td>latest</td><td><a href="https://git-scm.com/book/en/v2/Getting-Started-Installing-Git" target="_blank" rel="noopener noreferrer">https://git-scm.com/book/en/v2/Getting-Started-Installing-Git</a></td></tr><tr><td>Apache Maven</td><td>Build Java and Scala source code</td><td>3.8.2 or latest</td><td><a href="https://maven.apache.org/download.cgi" target="_blank" rel="noopener noreferrer">https://maven.apache.org/download.cgi</a></td></tr><tr><td>Node.js</td><td>Build front end</td><td>12.14.0 is recommended ( or 12.x ~ 14.x)</td><td><a href="/docs/development/how_to_package#install_older_node">How to switch to older node.js</a></td></tr><tr><td>JDK</td><td>Java Compiler and Development Tools</td><td>JDK 1.8.x</td><td><a href="https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html" target="_blank" rel="noopener noreferrer">https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html</a></td></tr></tbody></table> <p>After installing the above software, please verify <strong>software requirements</strong> by following commands:</p> <div class="language-shell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-shell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">$ java -version</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">java version "1.8.0_301"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Java(TM) SE Runtime Environment (build 1.8.0_301-b09)</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">$ mvn -v</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Maven home: /Users/xiaoxiang.yu/LacusDir/lib/apache-maven-3.8.2</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Java version: 1.8.0_301, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home/jre</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">Default locale: en_CN, platform encoding: UTF-8</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">$ node -v</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">v12.14.0</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">$ git version</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">git version 2.30.1 (Apple Git-130)</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="options-for-packaging-script">Options for Packaging Script<a href="#options-for-packaging-script" class="hash-link" aria-label="Direct link to Options for Packaging Script" title="Direct link to Options for Packaging Script"></a></h3> <table><thead><tr><th>Option</th><th>Comment</th></tr></thead><tbody><tr><td>-official</td><td>If adding this option, the package name won't contain the timestamp</td></tr><tr><td>-noThirdParty</td><td>If adding this option, third-party binary won't be packaged into binary, current they are influxdb,grafana and PostgreSQL</td></tr><tr><td>-noSpark</td><td>If adding this option, spark won't be packaged into the Kylin binary</td></tr><tr><td>-noHive1</td><td>By default Kylin 5.0 will support Hive 1.2, if add this option, this binary will support Hive 2.3+</td></tr><tr><td>-skipFront</td><td>If add this option, the front-end won't be built and packaged</td></tr><tr><td>-skipCompile</td><td>Add this option will assume java source code no need to be compiled again</td></tr></tbody></table> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="other-options-for-packaging-script">Other Options for Packaging Script<a href="#other-options-for-packaging-script" class="hash-link" aria-label="Direct link to Other Options for Packaging Script" title="Direct link to Other Options for Packaging Script"></a></h3> <table><thead><tr><th>Option</th><th>Comment</th></tr></thead><tbody><tr><td>-P hadoop3</td><td>Packaging a Kylin 5.0 software package for running on Hadoop 3.0 + platform.</td></tr></tbody></table> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="package-content">Package Content<a href="#package-content" class="hash-link" aria-label="Direct link to Package Content" title="Direct link to Package Content"></a></h3> <table><thead><tr><th>Option</th><th>Comment</th></tr></thead><tbody><tr><td>VERSION</td><td><code>Apache Kylin ${release_version}</code></td></tr><tr><td>commit_SHA1</td><td><code>${HASH_COMMIT}@${BRANCH_NAME}</code></td></tr></tbody></table> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="package-name-convention">Package Name convention<a href="#package-name-convention" class="hash-link" aria-label="Direct link to Package Name convention" title="Direct link to Package Name convention"></a></h3> <p>Package name is <code>apache-kylin-${release_version}.tar.gz</code>, while <code>${release_version}</code> is <code>{project.version}.YYYYmmDDHHMMSS</code> by default. For example, an unofficial package could be <code>apache-kylin-5.0.0-SNAPSHOT.20220812161045.tar.gz</code> while an official package could be <code>apache-kylin-5.0.0.tar.gz</code></p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="example-for-developer-and-release-manager">Example for developer and release manager<a href="#example-for-developer-and-release-manager" class="hash-link" aria-label="Direct link to Example for developer and release manager" title="Direct link to Example for developer and release manager"></a></h3> <div class="language-shell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-shell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">## Case 1: For the developer who wants to package for testing purposes</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">./build/release/release.sh </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">## Case 2: Official apache release, Kylin binary for deployment on Hadoop3+ and Hive2.3+, </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"># and the third party cannot be distributed because of apache distribution policy(size and license)</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">./build/release/release.sh -noSpark -official </span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">## Case 3: A package for Apache Hadoop 3 platform</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">./build/release/release.sh -P hadoop3</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-install-older-nodejs"><span id="install_older_node">How to install older node.js</span><a href="#how-to-install-older-nodejs" class="hash-link" aria-label="Direct link to how-to-install-older-nodejs" title="Direct link to how-to-install-older-nodejs"></a></h3> <ol> <li>Please visit <a href="https://nodejs.org/en/download/" target="_blank" rel="noopener noreferrer">https://nodejs.org/en/download/</a> to download and install the latest node.js. After installed, you may use the following command to verify if the latest node.js is in use:</li> </ol> <div class="language-shell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-shell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">$ node -v</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">v16.17.0</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <ol start="2"> <li>Use some tools like <a href="https://github.com/nvm-sh/nvm" target="_blank" rel="noopener noreferrer">https://github.com/nvm-sh/nvm</a> to install a specific version of node.js</li> </ol> <div class="language-shell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-shell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">## Switch to specific version using nvm</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">nvm install 12.14.0</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">## Before packaging, please switch to a specific version</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">nvm use 12.14.0</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <p>You may use the following command to verify if older node.js is in use:</p> <div class="language-shell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-shell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">$ node -v</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">v12.14.0</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div> <ol start="3"> <li>Switch to the latest node.js</li> </ol> <div class="language-shell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-shell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">## switch to the original version</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">nvm use system</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="row margin-top--sm theme-doc-footer-edit-meta-row"><div class="col"><a href="https://github.com/apache/kylin/tree/doc5.0/website/docs/development/how_to_package.md" target="_blank" rel="noopener noreferrer" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_JAkA"><span class="theme-last-updated">Last updated<!-- --> on <b><time datetime="2022-08-21T16:00:00.000Z" itemprop="dateModified">Aug 21, 2022</time></b></span></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/docs/development/how_to_test"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">How to test</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#software-requirement" class="table-of-contents__link toc-highlight"><span>Software Requirement</span></a></li><li><a href="#options-for-packaging-script" class="table-of-contents__link toc-highlight">Options for Packaging Script</a></li><li><a href="#other-options-for-packaging-script" class="table-of-contents__link toc-highlight">Other Options for Packaging Script</a></li><li><a href="#package-content" class="table-of-contents__link toc-highlight">Package Content</a></li><li><a href="#package-name-convention" class="table-of-contents__link toc-highlight">Package Name convention</a></li><li><a href="#example-for-developer-and-release-manager" class="table-of-contents__link toc-highlight">Example for developer and release manager</a></li><li><a href="#how-to-install-older-nodejs" class="table-of-contents__link toc-highlight"><span>How to install older node.js</span></a></li></ul></div></div></div></div></main></div></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Docs</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/docs/quickstart/tutorial">Quick Start</a></li><li class="footer__item"><a class="footer__link-item" href="/docs/development/how_to_contribute">How to contribute</a></li><li class="footer__item"><a class="footer__link-item" href="/blog/roadmap_of_kylin_50_cn">Roadmap</a></li></ul></div><div class="col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://issues.apache.org/jira/projects/KYLIN/issues" target="_blank" rel="noopener noreferrer" class="footer__link-item">JIRA<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://lists.apache.org/list.html?user@kylin.apache.org" target="_blank" rel="noopener noreferrer" class="footer__link-item">Mailing List Archives<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://cwiki.apache.org/confluence/display/KYLIN/" target="_blank" rel="noopener noreferrer" class="footer__link-item">Wiki<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://stackoverflow.com/questions/tagged/kylin" target="_blank" rel="noopener noreferrer" class="footer__link-item">Stack Overflow<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/blog">Blogs</a></li><li class="footer__item"><a href="https://github.com/apache/kylin" target="_blank" rel="noopener noreferrer" class="footer__link-item">Source Code<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_nPIU"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div></div><div class="footer__bottom text--center"><div class="margin-bottom--sm"><a href="https://apache.org" rel="noopener noreferrer" class="footerLogoLink_BH7S"><img src="/img/asf_logo.svg" alt="Apache" class="footer__logo themedComponent_mlkZ themedComponent--light_NVdE" width="160" height="51"><img src="/img/asf_logo.svg" alt="Apache" class="footer__logo themedComponent_mlkZ themedComponent--dark_xIcU" width="160" height="51"></a></div><div class="footer__copyright">Copyright © 2024 Apache Software Foundation under the terms of the Apache License v2. <br>Apache Kylin and its logo are trademarks of the Apache Software Foundation.</div></div></div></footer></div> </body> </html>