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
相关推荐
Hello.Reader10 小时前
Flink Process Table Functions(PTF)实战详解:把 SQL 变成“可编程算子”,状态、时间、定时器一把梭
网络·sql·flink
FreeBuf_11 小时前
朝鲜黑客组织“传染性面试“瞄准macOS:新型“DriverFixer“窃密工具浮出水面
macos·面试·职场和发展
武昌库里写JAVA13 小时前
在iview中使用upload组件上传文件之前先做其他的处理
java·vue.js·spring boot·后端·sql
尋有緣14 小时前
力扣614-二级关注者
大数据·数据库·sql·oracle
l1t15 小时前
在postgres和duckdb中比较两个数组并只挑选不匹配的元素
数据库·sql·postgresql·数组·duckdb
宁小法16 小时前
SQL查询对比: select exists($sql) 跟 select * from `users` where `id` = 60000001的区别差异
数据库·sql·select exists
Zfox_17 小时前
无缝穿越系统边界:节点小宝4.0如何让我的Mac/iOS像访问本地盘一样操控Windows
windows·macos·ios·节点小宝
不剪发的Tony老师18 小时前
sqlectron:一款轻量级的SQL客户端
数据库·sql
MicJordan20 小时前
macos安装Claude提示command not found
macos
坠金20 小时前
mac电脑网络卡顿解决方法
macos