yanagishima 使用 Windows 编译源码

yanagishima 20.0 是最后一个支持JDk 8的版本

已编译版本 CSDN 下载

1. 修改bulid.gradle

下载源码 GitHub yanagishima/yanagishima 20.0,用IDEA打开会自动下载Gradle。

原来的仓库慢,添加阿里云镜像。但是有的包可能阿里云仓库没有,就再用原来的仓库下。

repositories {
    maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
}

再修改 buildWeb

task buildWeb(type:Exec) {
    workingDir './web'
//    commandLine './deploy.sh'
    commandLine 'cmd', '/c','deploy.bat'
    standardOutput = new ByteArrayOutputStream()
    ext.output = {
        return standardOutput.toString()
    }
}

2. 创建批处理文件deploy.bat

打开目录web,创建批处理文件deploy.bat

npm install && ^
npm run build && ^
mkdir dist\share && ^
mkdir dist\error && ^
mkdir dist\diff && ^
copy dist\index.html dist\share && ^
copy dist\index.html dist\error && ^
copy dist\index.html dist\diff

3. 编译

在cmd中执行

gradlew distZip

编译好的压缩包在 build/distributions 下。

4. 运行

解压后,修改conf/yanagishima.properties
这里只配置Presto。yanagishima也支持Hive,这里未配置。

# yanagishima web port
jetty.port=8400
# 自定义指定presto数据源名称
# 以下属性名需要相同 presto.coordinator.server.XXX and presto.redirect.server.XXX and catalog.XXX and schema.XXX
presto.datasources=presto-server-1
auth.presto-server-1=false
# presto coordinator url
presto.coordinator.server.presto-server-1=http://192.168.4.23:18080
# 未指定代理,和presto coordinator url一致
presto.redirect.server.presto-server-1=http://192.168.4.23:18080
# presto catalog name,可不修改,页面可切换catalog
catalog.presto-server-1=mysql4_23
# presto schema name,可不修改
schema.presto-server-1=test

将上传到Linux,添加执行权限chmod -R u+x bin/*

运行

nohup bin/yanagishima-start.sh >y.log 2>&1 &

yanagishima
停止

./bin/yanagishima-shutdown.sh

参考:

presto web ui 查询页面 yanagishima 安装 windows编译 linux运行

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值