1. 前言
在上一篇中,介绍了在Windows上搭建Trino开发环境所需要的组件。本篇文章,主要介绍通过修改源码,让Trino在Idea中运行起来。
2. 步骤
1)配置文件
Trino的配置文件位于“testing/trino-server-dev/etc”目录下,这里面我们先重点关注config.properties文件里面的plugin.bundles参数,这个参数是用来配置Trino加载哪些插件的。这里我们不需要加载这么多的插件,因业务需求只保留“../../plugin/trino-mysql/pom.xml”即可。
注意: 其它的插件是否能够在windows上运行,需要具体用到哪个具体分析。本文重点是提供一个在windows上能对Trino进行二次开发的环境。
修改后的配置文件,这里只对plugin.bundles进行修改
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
node.environment=test
node.internal-address=localhost
http-server.http.port=8080
discovery-server.enabled=true
discovery.uri=http://localhost:8080
exchange.http-client.max-connections=1000