windows编译OpenLooKeng

OpenLooKeng 是华为开源的高性能数据虚拟化引擎,gitee:https://gitee.com/openlookeng/hetu-core

OpenLooKeng 基于 PrestoSql(现改名:Trino)开发的, OpenLooKeng 编译环境暂不支持windows

windows上运行需要进行一些修改,测试版本为:1.1.0

1、maven配置文件添加华为镜像地址

<mirror>
 <id>huaweicloud</id>
 <mirrorOf>*</mirrorOf>
 <url>http://mirrors.huaweicloud.com/repository/maven</url>
</mirror>

2、修改presto-main模块下PrestoSystemRequirements类

  1.  注释以下代码 ,方法:verifyOsArchitecture()

2. 修改方法:getMaxFileDescriptorCount()下代码

修改前:

修改后:固定返回10000

3、修改 presto-main 模块下 etc/config.properties

  • 删除或注释 plugin.bundles 节点属性配置
  • 新增节点(hetu-server-1.1.0-SNAPSHOT,1.1.0版本号和当前 openlookeng 版本保持一致):
    plugin.dir=../hetu-server/target/hetu-server-1.2.0-SNAPSHOT/plugin

  • 同时删除 presto-main 模块下 etc/catalog/hive.properties 配置文件(因为本地没有hadoop)

4、maven编译。在项目所在文件下打开 Git Bash Here(不要用 cmd 窗口运行mvn命令)

mvn clean install -Dair.check.skip-all=true -DskipTests

5、配置 eclipse 启动参数配置

  • Main class:
io.prestosql.server.PrestoServer

  • VM arguments:
-ea -XX:+UseG1GC -XX:G1HeapRegionSize=32M 
-XX:+UseGCOverheadLimit 
-XX:+ExplicitGCInvokesConcurrent 
-Xmx2G -Dconfig=etc/config.properties 
-Dlog.levels-file=etc/log.properties

6、运行

http://localhost:8080

启动完成

posted @ 2021-01-08 16:28  刷鱼不刷牙  阅读(616)  评论(1编辑  收藏  举报