CINXE.COM
<!doctype html> <html lang="en" dir="ltr" class="blog-wrapper blog-post-page plugin-blog plugin-id-default" data-has-hydrated="false"> <head> <meta charset="UTF-8"> <meta name="generator" content="Docusaurus v3.5.2"> <title data-rh="true">Roadmap of Kylin 5.0(CN) | 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/blog/roadmap_of_kylin_50_cn"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_tag" content="default"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docsearch:docusaurus_tag" content="default"><meta data-rh="true" property="og:title" content="Roadmap of Kylin 5.0(CN) | Apache Kylin"><meta data-rh="true" name="description" content="Target Audience"><meta data-rh="true" property="og:description" content="Target Audience"><meta data-rh="true" property="og:type" content="article"><meta data-rh="true" property="article:published_time" content="2022-12-09T10:00:00.000Z"><meta data-rh="true" property="article:author" content="https://github.com/hit-lacus"><meta data-rh="true" property="article:tag" content="apachecon,roadmap,kylin5"><link data-rh="true" rel="icon" href="/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://kylin.apache.org/blog/roadmap_of_kylin_50_cn"><link data-rh="true" rel="alternate" href="https://kylin.apache.org/blog/roadmap_of_kylin_50_cn" hreflang="en"><link data-rh="true" rel="alternate" href="https://kylin.apache.org/blog/roadmap_of_kylin_50_cn" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://kylin.apache.org/blog/roadmap_of_kylin_50_cn","mainEntityOfPage":"https://kylin.apache.org/blog/roadmap_of_kylin_50_cn","url":"https://kylin.apache.org/blog/roadmap_of_kylin_50_cn","headline":"Roadmap of Kylin 5.0(CN)","name":"Roadmap of Kylin 5.0(CN)","description":"Target Audience","datePublished":"2022-12-09T10:00:00.000Z","author":{"@type":"Person","name":"Xiaoxiang Yu","description":"PMC member and Release Manager of Apache Kylin","url":"https://github.com/hit-lacus","image":"https://github.com/hit-lacus.png"},"keywords":[],"isPartOf":{"@type":"Blog","@id":"https://kylin.apache.org/blog","name":"Blog"}}</script><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 class="navbar__item navbar__link" href="/docs/development/intro">Development</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" 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/overview">5.0.0</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/docs/overview">5.0.0</a></li><li><a class="dropdown__link" href="/docs/4.0.4/overview">4.0.4</a></li><li><a class="dropdown__link" href="/docs/3.1.3/overview">3.1.3</a></li><li><a class="dropdown__link" href="/docs/2.4.0/overview">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="container margin-vert--lg"><div class="row"><aside class="col col--3"><nav class="sidebar_re4s thin-scrollbar" aria-label="Blog recent posts navigation"><div class="sidebarItemTitle_pO2u margin-bottom--md">Technical Blogs</div><div role="group"><h3 class="yearGroupHeading_rMGB">2023</h3><ul class="sidebarItemList_Yudw clean-list"><li class="sidebarItem__DBe"><a class="sidebarItemLink_mo7H" href="/blog/introduction_of_metastore_cn">Introduction of Metastore(CN)</a></li></ul></div><div role="group"><h3 class="yearGroupHeading_rMGB">2022</h3><ul class="sidebarItemList_Yudw clean-list"><li class="sidebarItem__DBe"><a class="sidebarItemLink_mo7H" href="/blog/introduction_of_metadata_cn">Introduction of Metadata(CN)</a></li><li class="sidebarItem__DBe"><a aria-current="page" class="sidebarItemLink_mo7H sidebarItemLinkActive_I1ZP" href="/blog/roadmap_of_kylin_50_cn">Roadmap of Kylin 5.0(CN)</a></li></ul></div></nav></aside><main class="col col--7"><article><header><h1 class="title_f1Hy">Roadmap of Kylin 5.0(CN)</h1><div class="container_mt6G margin-vert--md"><time datetime="2022-12-09T10:00:00.000Z">December 9, 2022</time> · <!-- -->36 min read</div><div class="margin-top--md margin-bottom--sm row"><div class="col col--12 authorCol_Hf19"><div class="avatar margin-bottom--sm"><a href="https://github.com/hit-lacus" target="_blank" rel="noopener noreferrer" class="avatar__photo-link"><img class="avatar__photo authorImage_XqGP" src="https://github.com/hit-lacus.png" alt="Xiaoxiang Yu"></a><div class="avatar__intro authorDetails_lV9A"><div class="avatar__name"><a href="https://github.com/hit-lacus" target="_blank" rel="noopener noreferrer"><span class="authorName_yefp">Xiaoxiang Yu</span></a></div><small class="authorTitle_nd0D" title="PMC member and Release Manager of Apache Kylin">PMC member and Release Manager of Apache Kylin</small><div class="authorSocials_rSDt"></div></div></div></div></div></header><div id="__blog-post-container" class="markdown"><div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>Before your read</div><div class="admonitionContent_BuS1"><p><strong>Target Audience</strong></p><ul> <li>对新一代 Kylin 感兴趣的开发者和用户</li> <li>对 OLAP 技术有兴趣的大数据爱好者</li> </ul><p><strong>What will you learn</strong></p><ul> <li>了解最新版本的 Kylin 的设计思路</li> <li>了解最新版本的 Kylin 的开发路线和发布计划</li> </ul><p>💬 Kylin 5.0 相对于上个版本有了更长足的进步,尤其是在使用场景的扩充和构建查询的性能提升上。 这篇 Kylin 5.0 社区路线图,将帮助大家了解社区开发者在面对 Kylin 4 尚未解决的问题,是如何在 Kylin 5 上进行全面的重新设计并且实现新功能,并且会分析这些新功能,诸如“Native Engine”、“Schem Change”、“可计算列”、“明细索引”给用户带来的全新体验。</p></div></div> <h2 class="anchor anchorWithStickyNavbar_LWe7" id="今天的-apache-kylin">今天的 Apache Kylin<a href="#今天的-apache-kylin" class="hash-link" aria-label="Direct link to 今天的 Apache Kylin" title="Direct link to 今天的 Apache Kylin"></a></h2> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="apache-kylin-是什么">Apache Kylin 是什么?<a href="#apache-kylin-是什么" class="hash-link" aria-label="Direct link to Apache Kylin 是什么?" title="Direct link to Apache Kylin 是什么?"></a></h3> <p>Apache Kylin™ 是一个开源的分析型数据仓库,为 Hadoop 等大型分布式分析平台之上的超大规模数据集(PB级)通过标准 SQL 查询及多维分析 ( OLAP ) 功能,提供亚秒级的交互式分析能力。</p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="apache-kylin-的基本原理">Apache Kylin 的基本原理<a href="#apache-kylin-的基本原理" class="hash-link" aria-label="Direct link to Apache Kylin 的基本原理" title="Direct link to Apache Kylin 的基本原理"></a></h3> <p>Cube 是 OLAP ( Online Analytical Processing ) 的核心数据结构,把维度和度量抽象为一个多维模型,赋予了OLAP 新的数据组织和存储形式,并可以快速、高效地完成 OLAP 的多维分析操作。</p> <p>我们可以想象有一个三个维度的 Cube,它包含了商品种类、时间和地点。在存储中我们可以把某一个具体的小方块想象成一个特定维度组合的度量,左下角的小方块存储了(浙江,2010 第一季度,书籍)这个组合下我们关心的业务指标, s这可能是成交总量、平均价格等等。基于这样的数据结构,我们可以完成钻取、上卷、切片、切块和旋转的操作,这样就可以进行一些数据分析、数据探索,帮我们去解答这些业务的问题。并且由于不需要现场进行扫描和聚合,所以查询响应一般很快。</p> <p><img decoding="async" loading="lazy" src="/assets/images/1-f0e9f3bbe2b50c62daf89fde6190c53e.png" width="534" height="436" class="img_ev3q"></p> <p>Apache Kylin 通过构建引擎和查询引擎来分别生成和查询预计算数据文件,并且基于分布式计算引擎如 Apache Spark 来扩展构建引擎和查询引擎的计算能力。对于用户,Kylin 提供不同的接口如 SQL/HTTP/BI/Excel 等方式来进行数据分析,可以使得用户可以对 PB 级数据集实现秒级查询。</p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="当前版本的限制">当前版本的限制<a href="#当前版本的限制" class="hash-link" aria-label="Direct link to 当前版本的限制" title="Direct link to 当前版本的限制"></a></h3> <ul> <li>模型修改的使用方式有限制,对于建好的 Model/Cube,不能随意添加维度和度量,需要先清理现有的预计算索引(Cuboid)才能添加;为了增加新的度量和维度,用 户需要创建新的 Cube,增加了管理成本,并且浪费了计算和存储资源。</li> <li>预计算索引的构建不够灵活,用户只能选择构建全部的预计算索引,一旦构建完成用户无法自主选择添加和删除部分预计算索引(只能通过 Cube Planner 的算法进行筛选)。</li> <li>构建和查询性能仍有提升空间,Kylin 使用 Apache Spark 作为执行/计算引擎,没有利用到向量加速、指令级优化等技术。</li> <li>维度数量有上限,最多支持 63 个维度。这是由于元数据存储中是用 Long 型来保存的 Cuboid ID 而造成的。</li> <li>长期使用后元数据存储膨胀,非核心元数据(任务历史等)会占用大量的空间,造成元数据读取写入性能下降,从而引起 Kylin 整体服务性能不佳。</li> </ul> <h2 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-5-的设计思考">Kylin 5 的设计思考<a href="#kylin-5-的设计思考" class="hash-link" aria-label="Direct link to Kylin 5 的设计思考" title="Direct link to Kylin 5 的设计思考"></a></h2> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-5-的整体目标">Kylin 5 的整体目标<a href="#kylin-5-的整体目标" class="hash-link" aria-label="Direct link to Kylin 5 的整体目标" title="Direct link to Kylin 5 的整体目标"></a></h3> <p>我们希望 Kylin 5 是一个统一、灵活、高性能、可扩展、云原生的大数据分析平台,可以做到在一个平台上完成很多的数据分析工作,能够对接各种数据源,支持多种查询接口,也可以可插拔地替换各种计算引擎,包括支持性能有明显提升的 Native Engine,可以为现代企业的海量数据上的数据分析和指标管理提供一个坚实可靠的底座。</p> <p>同时我们也希望未来 Kylin 5 可以支持在 K8S 上部署,Kylin 5 将以微服务的方式进行拆分和部署,应对不同的负载可以支持灵活快捷地进行扩缩容。</p> <p><img decoding="async" loading="lazy" src="/assets/images/2-9bdb555baa79a1ca21a4d715805d9913.png" width="1280" height="682" class="img_ev3q"></p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-5-的设计方向">Kylin 5 的设计方向<a href="#kylin-5-的设计方向" class="hash-link" aria-label="Direct link to Kylin 5 的设计方向" title="Direct link to Kylin 5 的设计方向"></a></h3> <h4 class="anchor anchorWithStickyNavbar_LWe7" id="no1-重新设计核心元数据">No.1 重新设计核心元数据<a href="#no1-重新设计核心元数据" class="hash-link" aria-label="Direct link to No.1 重新设计核心元数据" title="Direct link to No.1 重新设计核心元数据"></a></h4> <p>这里涉及到元数据 Schema 和元数据存储的升级,通过对元数据进行重构使得 Kylin 的使用限制得以消除;元数据的存储会把元数据进行结构化(而不是现在的键值存储形式),以提升元数据读写性能。</p> <h4 class="anchor anchorWithStickyNavbar_LWe7" id="no2-核心功能升级改造">No.2 核心功能升级改造<a href="#no2-核心功能升级改造" class="hash-link" aria-label="Direct link to No.2 核心功能升级改造" title="Direct link to No.2 核心功能升级改造"></a></h4> <p>基于新的元数据的设计,我们进一步去改造构建引擎和查询引擎,使我们能够更加灵活的创建和刷新索引,在添加新的度量和维度时,可以不用清空现有的所有的预计算索引,给 Kylin 带来使用灵活性的提升。</p> <p>Kylin 5 抽象了索引的类型以提供索引类型的可扩展性,Kylin 5 可以同时支持聚合查询和明细查询。</p> <p>除此以外,还计划会支持更多类型的连接关系(例如多对多)、支持索引的多级分区、支持拉链表、支持(自动适应)表元数据变更等生产场景。</p> <h4 class="anchor anchorWithStickyNavbar_LWe7" id="no3-计算引擎性能提升">No.3 计算引擎性能提升<a href="#no3-计算引擎性能提升" class="hash-link" aria-label="Direct link to No.3 计算引擎性能提升" title="Direct link to No.3 计算引擎性能提升"></a></h4> <p>Kylin 需要使用分布式计算引擎来构建和扫描预计算索引文件,计算引擎的速度快慢很大程度上影响用户的体验。对于 Kylin 5.0,Kylin 5 将继续使用 Apache Spark 作为基础的计算引擎,除此以外,社区开发者正在尝试使用一些 Native Engine 来扩展(或者代替) Spark,包括 Gluten + Clickhouse 或者 Datafusion。 <img decoding="async" loading="lazy" src="/assets/images/3-ff29d31921f21dc0945636b7fad33647.png" width="1280" height="564" class="img_ev3q"></p> <h2 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-5-开发路线图">Kylin 5 开发路线图<a href="#kylin-5-开发路线图" class="hash-link" aria-label="Direct link to Kylin 5 开发路线图" title="Direct link to Kylin 5 开发路线图"></a></h2> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="元数据-schema-升级">元数据 Schema 升级<a href="#元数据-schema-升级" class="hash-link" aria-label="Direct link to 元数据 Schema 升级" title="Direct link to 元数据 Schema 升级"></a></h3> <ol> <li>将 Model 和 Cube 二者合并为新的 Model ,Cube 将从元数据和界面中被舍弃;在 Kylin 5 中,用户不再需要先创建模型(Join Relationship),再定义 Cube(维度和指标),而是将两个步骤合并为了一个步骤(即创建 Model),简化了流程,方便了用户。</li> <li>新增元数据 Index 和 Layout 。其中新增的 Index 可以提升 Kylin 的扩展性,除聚合索引外还添加了明细索引;而 Layout 可以使得对于指定 Index 可以具有不同的数据特征(Shard Key 和 Sort Key),这样可以在查询时使用最合适的 Layout 来进行查询加速。并且新的 Index 没有 63 个维度的数量限制。</li> <li>引入 IndexPlan,IndexPlan 根据用户的模型设计和静态规则生成索引(RuleBasedIndex),并且这些 IndexPlan 也可以用来适应各 种因素(内置策略、外部修改)引起的索引增减:一方面 IndexPlan 的引入使得应对模型变更或者表元数据的变更变得简单,另一方面 IndexPlan 也为基于代价的索引优化器提供了设计上的支持。</li> <li>将 CubeInstance 改为 DataFlow。</li> <li>新增元数据审计日志,可以用于实现元数据操作审计、开发者调试和元数据缓存的节点间同步机制。</li> </ol> <p><img decoding="async" loading="lazy" src="/assets/images/4-dc4fabb839160f67fbd0f80f4f14626d.png" width="1280" height="618" class="img_ev3q"></p> <h4 class="anchor anchorWithStickyNavbar_LWe7" id="元数据同步机制升级">元数据同步机制升级<a href="#元数据同步机制升级" class="hash-link" aria-label="Direct link to 元数据同步机制升级" title="Direct link to 元数据同步机制升级"></a></h4> <p>和之前的基于广播的元数据同步机制不同的是,在新的元数据同步机制下,每个节点会基于元数据变化信息进行主动同步,让元数据缓存同步的可靠性得到提升。(相关技术细节请期待后续的系列技术文章)</p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="灵活的索引管理和支持-schema-change">灵活的索引管理和支持 Schema Change<a href="#灵活的索引管理和支持-schema-change" class="hash-link" aria-label="Direct link to 灵活的索引管理和支持 Schema Change" title="Direct link to 灵活的索引管理和支持 Schema Change"></a></h3> <p>相比之前的版本(Kylin 4.X),Kylin 5 提供了灵活的索引管理能力,支持对部分索引进行构建刷新和删除等。</p> <ul> <li> <p>场景一:随着数据分析师的查询 Pattern 变化,用户的大量新增查询无法被 Excatly Match,故只能被 base cuboid 所回答,所以用户可能希望手动增加(或者减少)某一些索引,来适配新的查询。</p> <p>在 Kylin 4 中,用户只能选择克隆了一个新的 Cube(在 Kylin 5 上 用户创建的) ,然后在新的 Cube 上进行编辑然后触发任务重头构建。但是在 Kylin 5 上,用户可以选择在现有的 Model 上面直接创建新的 Index,使用十分快捷。</p> </li> <li> <p>场景二:随着数据分析师关注业务方式的变化,用户要求在 Cube 上增加新的维度和度量,从而增加对商业行为的洞见。</p> <p>在 Kylin 4 中,用户同样也不能在原有的 Model/Cube 上进行编辑以增删维度和度量;但是在 Kylin 5 上,借助新的元数据设计(Model & IndexPlan),直接编辑以增删维度和度量这种行为变得轻而易举,任何随着模型编辑而失效的 Index 会自动变为无效,并且会在下次垃圾清理作业中被清除,任何随着模型编辑而需要构建的 Index 可以通过一键提交任务构建出来。</p> </li> <li> <p>场景三:随着公司业务演进,数仓事实表和维度表的 Schema 也很有可能随之变化,Kylin 管理员希望 Kylin 的 Table/Model 能够平滑地同步来自数仓的元数据变更,并且尽可能减少 Schema Change 带来的手动修复工作。</p> <p>在 Kylin 4 中,大部分 Schema Change 场景同样不能很好地被处理,Kylin 管理员可能被迫选择重新操作整个建模流程以同步新的表元数据。对于 Kylin 5,大部分 Schema Change 场景(包含增加删除列、重命名列、修改列的数据类型等)都能被很好地识别并且尽可能地自动化处理冲突。</p> </li> </ul> <p><img decoding="async" loading="lazy" src="/assets/images/5-09b4f99ce67f5c295e54ee68a3bd33e6.png" width="930" height="353" class="img_ev3q"></p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="明细查询">明细查询<a href="#明细查询" class="hash-link" aria-label="Direct link to 明细查询" title="Direct link to 明细查询"></a></h3> <p>明细查询一直是 Kylin 的短板,最新的 Kylin 通过物化(部分)平表来加速明细查询,同时可以根据查询语句特征来设置 ShardKey 和 SortKey 来优化性能,从而可以提升高基数列过滤查询的性能。这个功能在 Kylin 5 初步称为 Table Index。</p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="可计算列">可计算列<a href="#可计算列" class="hash-link" aria-label="Direct link to 可计算列" title="Direct link to 可计算列"></a></h3> <p>通过在模型上定义表达式,Kylin 支持了轻量 ETL,用户可以把新的表达式当做普通的列,基于它们定义新的维度和度量,使得这部分的计算工作也被预计算引擎所加速。</p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="计算引擎-native-化">计算引擎 Native 化<a href="#计算引擎-native-化" class="hash-link" aria-label="Direct link to 计算引擎 Native 化" title="Direct link to 计算引擎 Native 化"></a></h3> <p>Kylin 4 依赖 Spark 作为构建和查询引擎,而 Spark 的基本算子如 HashAgg、TableScan 等,近年来性能提升改变不大。为了进一步加强 Kylin 的构建和查询性能,Kylin 5 计划引入了全新的 Native Engine。</p> <p>在 Native Engine,社区有不同的选择,其中选择之一是 Gluten,在内部测试中,对于 TPC-H 查询集,Gluten + CH 的组合相对于 Apache Spark 有一倍以上的性能提升。</p> <p><img decoding="async" loading="lazy" src="/assets/images/6-7ccb3c549797a508ea114eb654122d3e.png" width="1280" height="640" class="img_ev3q"></p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="全新的界面交互">全新的界面交互<a href="#全新的界面交互" class="hash-link" aria-label="Direct link to 全新的界面交互" title="Direct link to 全新的界面交互"></a></h3> <p>前端界面全新升级,优化用户操作,通过更直观的画布建模方式,让用户一目了然,降低了使用门槛。</p> <p>在下面的截图中,我们能看到建模的主要工作都集中在一个画布里完成,包括了定义 Join Relationship、Dimension、Measure、Computed Column、Partition Column 等。</p> <p><img decoding="async" loading="lazy" src="/assets/images/7-9ec7293ca7925f99c805d5190371f044.png" width="1280" height="719" class="img_ev3q"></p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-on-k8s">Kylin on K8S<a href="#kylin-on-k8s" class="hash-link" aria-label="Direct link to Kylin on K8S" title="Direct link to Kylin on K8S"></a></h3> <p>Kylin 5 会进行微服务化、容器化改造,Kylin 现有的 Job/Query Node 会拆分为 DataLoading,Query,Metadata 等多个服务模块,使得每个模块可以单独扩容以适应实际需求。</p> <p>此外,计算引擎会依赖于 K8S,数据存储会依赖于对象存储如 S3,元数据服务可以依赖于元数据服务(例如 AWS Glue)。相信基于新的 Kylin on K8S 方案,未来在公有云上部署 Kylin 服务将变得部署快速、低成本和低门槛。</p> <p><img decoding="async" loading="lazy" src="/assets/images/8-bcfb489b9a96f90ce61ed50978da9fa7.png" width="748" height="686" class="img_ev3q"></p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="详细的查询历史">详细的查询历史<a href="#详细的查询历史" class="hash-link" aria-label="Direct link to 详细的查询历史" title="Direct link to 详细的查询历史"></a></h3> <p>Kylin 5 新增了详尽的查询历史信息,为每个查询存储了 Kylin 和 Spark 和查询相关的详尽的 Metrics,这些数据作为索引优化/剪枝策略的输入,为社区未来开发 Cube Planner(Cost based Index Optimizer) 提供了支持。</p> <h2 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-5-发布时间表">Kylin 5 发布时间表<a href="#kylin-5-发布时间表" class="hash-link" aria-label="Direct link to Kylin 5 发布时间表" title="Direct link to Kylin 5 发布时间表"></a></h2> <ol> <li>✅核心功能开发完毕:2022/09,完成</li> <li>✅代码正式开源到 Github:2022/09 - 2022/10,完成</li> <li>⌛基于代价的索引优化器:2022/10,开发中</li> <li>✅用户手册和开发者文档:2022/10 - 2022/12,基本完成</li> <li>✅核心功能测试:2022/10 - 2022/12,基本完成</li> <li>⌛技术预览版发布:2023/01,进行中,期待您的试用~</li> <li>Kylin 5 正式发布:2023(依赖试用反馈和问题修复速度)</li> <li>Kylin 5 集成 Native Compute Engine:2023(依赖 Gluten 项目和 Datafusion 项目的进展)</li> </ol> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="kylin-5-官网和试用链接">Kylin 5 官网和试用链接<a href="#kylin-5-官网和试用链接" class="hash-link" aria-label="Direct link to Kylin 5 官网和试用链接" title="Direct link to Kylin 5 官网和试用链接"></a></h3> <ul> <li>初版 Kylin 5.0 用户文档:<a href="https://kylin.apache.org/5.0" target="_blank" rel="noopener noreferrer">https://kylin.apache.org/5.0</a></li> <li>Kylin 5.0 预览版 Standalone Docker Image:<a href="https://kylin.apache.org/5.0/docs/quickstart/intro" target="_blank" rel="noopener noreferrer">https://kylin.apache.org/5.0/docs/quickstart/intro</a></li> </ul> <h2 class="anchor anchorWithStickyNavbar_LWe7" id="社区未来展望">社区未来展望<a href="#社区未来展望" class="hash-link" aria-label="Direct link to 社区未来展望" title="Direct link to 社区未来展望"></a></h2> <p>我们在上面介绍了很多 Kylin 5 的新特性,但是希望读者了解有更多的特性由于篇幅原因没有介绍到,还有更多的特性在设计和开发中。</p> <p>我们希望随着 Kylin 5 的正式发布,Kylin 5 将是一个性能有大幅提升,用户使用体验得到显著改善,支持的业务场景得到广泛扩充的 OLAP 平台。在这些基本目标完成后,Native Engine 和 Kylin 的云上部署都会在 Kylin 社区的开发计划上,直到 Kylin 5 成为一个统一、灵活、高性能、可扩展、云原生的大数据分析平台。</p> <p>期待大家对 Kylin 5 技术预览版的试用和反馈,一起帮助 Kylin 变得越来越好。</p></div><footer class="docusaurus-mt-lg"><div class="row margin-top--sm theme-blog-footer-edit-meta-row"><div class="col"><b>Tags:</b><ul class="tags_jXut padding--none margin-left--sm"><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/blog/tags/apachecon">apachecon</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/blog/tags/roadmap">roadmap</a></li><li class="tag_QGVx"><a class="tag_zVej tagRegular_sFm0" href="/blog/tags/kylin-5">kylin5</a></li></ul></div></div><div class="row margin-top--sm theme-blog-footer-edit-meta-row"><div class="col"><a href="https://github.com/apache/kylin/tree/doc5.0/website/blog/2022-07-29-RoadMap_of_ApacheCon/index.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"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Blog post page navigation"><a class="pagination-nav__link pagination-nav__link--prev" href="/blog/introduction_of_metadata_cn"><div class="pagination-nav__sublabel">Newer post</div><div class="pagination-nav__label">Introduction of Metadata(CN)</div></a></nav></main><div class="col col--2"><div class="tableOfContents_bqdL thin-scrollbar"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#今天的-apache-kylin" class="table-of-contents__link toc-highlight">今天的 Apache Kylin</a><ul><li><a href="#apache-kylin-是什么" class="table-of-contents__link toc-highlight">Apache Kylin 是什么?</a></li><li><a href="#apache-kylin-的基本原理" class="table-of-contents__link toc-highlight">Apache Kylin 的基本原理</a></li><li><a href="#当前版本的限制" class="table-of-contents__link toc-highlight">当前版本的限制</a></li></ul></li><li><a href="#kylin-5-的设计思考" class="table-of-contents__link toc-highlight">Kylin 5 的设计思考</a><ul><li><a href="#kylin-5-的整体目标" class="table-of-contents__link toc-highlight">Kylin 5 的整体目标</a></li><li><a href="#kylin-5-的设计方向" class="table-of-contents__link toc-highlight">Kylin 5 的设计方向</a></li></ul></li><li><a href="#kylin-5-开发路线图" class="table-of-contents__link toc-highlight">Kylin 5 开发路线图</a><ul><li><a href="#元数据-schema-升级" class="table-of-contents__link toc-highlight">元数据 Schema 升级</a></li><li><a href="#灵活的索引管理和支持-schema-change" class="table-of-contents__link toc-highlight">灵活的索引管理和支持 Schema Change</a></li><li><a href="#明细查询" class="table-of-contents__link toc-highlight">明细查询</a></li><li><a href="#可计算列" class="table-of-contents__link toc-highlight">可计算列</a></li><li><a href="#计算引擎-native-化" class="table-of-contents__link toc-highlight">计算引擎 Native 化</a></li><li><a href="#全新的界面交互" class="table-of-contents__link toc-highlight">全新的界面交互</a></li><li><a href="#kylin-on-k8s" class="table-of-contents__link toc-highlight">Kylin on K8S</a></li><li><a href="#详细的查询历史" class="table-of-contents__link toc-highlight">详细的查询历史</a></li></ul></li><li><a href="#kylin-5-发布时间表" class="table-of-contents__link toc-highlight">Kylin 5 发布时间表</a><ul><li><a href="#kylin-5-官网和试用链接" class="table-of-contents__link toc-highlight">Kylin 5 官网和试用链接</a></li></ul></li><li><a href="#社区未来展望" class="table-of-contents__link toc-highlight">社区未来展望</a></li></ul></div></div></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>