Mac M3 Pro 部署Trino-server-449

目录

1、下载安装包

2、解压并设置配置参数

3、启动并验证

4、使用cli客户端连接测试

1、下载安装包

官方:trino-server-449 CLI

网盘:

server https://pan.baidu.com/s/16IH-H39iF8Fb-Vd14f7JPA?pwd=3vjp 提取码: 3vjp

cli https://pan.baidu.com/s/1G1sOmh1u5IfcPhO-blotyg?pwd=cv6y 提取码: cv6y

2、解压并设置配置参数

bash 复制代码
mv ~/Download/trino-server-449.tar.gz /opt/module
cd /opt/module
tar -zxvf trino-server-449.tar.gz
mv trino-server-449 trino
cd trino

# 将命令行客户端连接jar移动过来
mv ~/Download/trino-cli-449-executable.jar .
mv trino-cli-449-executable.jar trino-cli

# 创建日志存放目录
mkdir data

# 创建配置存放目录
mkdir etc
mkdir etc/catalog

vim ./etc/config.properties

# 粘贴一下内容,这里的配置为单机配置(当前机器既做Mater又做Work)

coordinator=true
node-scheduler.include-coordinator=true
# 因默认的8080端口被spark的webui端口占用了,这里改为8180
http-server.http.port=8180
discovery.uri=http://127.0.0.1:8180
# webui 免登录配置
web-ui.authentication.type=FIXED
web-ui.user=root

vim ./etc/node.properties

node.environment=dev
node.id=sx01
node.data-dir=/opt/module/trino/data

vim ./etc/jvm.config

-server
-Xmx12G
-XX:MaxRAMPercentage=80
-XX:G1HeapRegionSize=32M
-XX:+ExplicitGCInvokesConcurrent
-XX:+ExitOnOutOfMemoryError
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:ReservedCodeCacheSize=512M
-XX:PerMethodRecompilationCutoff=10000
-XX:PerBytecodeRecompilationCutoff=10000
-Djdk.attach.allowAttachSelf=true
-Djdk.nio.maxCachedBufferSize=2000000
-Dfile.encoding=UTF-8
-XX:+EnableDynamicAgentLoading
-XX:+UnlockDiagnosticVMOptions
-XX:G1NumCollectionsKeepPinned=10000000

vim ./etc/log.properties

io.trino=INFO

vim ./etc/catalog/hive.properties

connector.name=hive
hive.metastore.uri=thrift://127.0.0.1:9083

3、启动并验证

bash 复制代码
cd /opt/module/trino

./bin/launcher start

# 查看服务状态
./bin/launcher status

# 停止服务
./bin/launcher stop

# 查看日志
tail -999f ./data/var/log/server.log

# 查看webui,浏览器中输入
http://127.0.0.1:8180

4、使用cli客户端连接测试

bash 复制代码
./trino-cli --server http://127.0.0.1:8180 --catalog hive
相关推荐
吃汤圆的抹香鲸1 小时前
GoLand 安装包 绿色版 Win,Mac,Linux 包含IntelliJ全家桶 专为Go语言设计的集成开发环境(IDE)
linux·windows·macos·go·intellij-idea·go1.19
Habibei2 小时前
Mybatis的分页插件
sql·mybatis
吃汤圆的抹香鲸2 小时前
Rider 安装包 绿色版 Win/Mac/Linux 适合.NET和游戏开发者使用 2025全栈开发终极指南:从零配置到企业级实战
linux·运维·windows·sql·游戏·macos·.net
霍小毛4 小时前
Hive 与 TiDB 在大数据解析场景中的对比分析
大数据·hive·tidb
甜于酸13 小时前
MuMu模拟器Pro for Mac 安卓手机平板模拟器
android·macos·智能手机
渔夫阿布13 小时前
在MAC上面通过HomeBrew安装node和npm@指定版本
前端·macos·npm
waicsdn_haha14 小时前
TeX Live 2025 最新版安装与中文环境配置全教程(Windows/Mac/Linux)
linux·windows·macos·论文笔记·sublime text·mdk·嵌入式开发工具
火云牌神16 小时前
本地大模型编程实战(25)用langgraph实现基于SQL数据构建的问答系统(4)
sql·llm·qwen·langgraph·deepseek
追寻光16 小时前
MySQL 中如何查看 SQL 的执行计划?
数据库·sql·mysql
是懒羊羊吖~17 小时前
SQL------搭建sql靶场和打开sql靶场及报错解决
数据库·笔记·sql·mysql·phpstudy·sqli-labs