zoukankan      html  css  js  c++  java
  • 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

    启动完成

  • 相关阅读:
    mysql 主从复制
    通过git-bash 批量管理VMware虚拟机
    MySQL基础
    lnmp架构
    搭建yum仓库服务器
    什什么是集群?么是分布式?
    nginx介绍1
    网络抓包工具 wireshark 入门教程
    DNS原理总结及其解析过程详解
    PetaPoco中使用Exists
  • 原文地址:https://www.cnblogs.com/dayuss/p/14252087.html
Copyright © 2011-2022 走看看