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
相关推荐
失心疯_202338 分钟前
006.MySQL_查询数据
数据库·sql·mysql·关系型数据库·sqlyog·mysql教程·查询语句
黑果魏叔41 分钟前
macOS Sequoia 正式版(24A335)黑苹果/Mac/虚拟机系统镜像
macos
环能jvav大师1 小时前
基于R语言的统计分析基础:使用SQL语句操作数据集
开发语言·数据库·sql·数据分析·r语言·sqlite
天地风雷水火山泽1 小时前
二百六十六、Hive——Hive的DWD层数据清洗、清洗记录、数据修复、数据补全
数据仓库·hive·hadoop
tekin2 小时前
macos macport软件包管理工具 sudo port install xxx 安装的软件的路径 与 brew install xxx 软件安装路径总结
macos·brew·port·macport·port install·port软件包安装路径·brew软件包安装路径
hayhead2 小时前
高频 SQL 50 题(基础版)| 626. 换座位
sql·力扣
大数据深度洞察3 小时前
Hive企业级调优[2]—— 测试用表
数据仓库·hive·hadoop
lzhlizihang3 小时前
使用sqoop将mysql数据导入到hive报错ClassNotFoundException、Zero date value prohibited等错误
hive·报错·sqoop
goTsHgo3 小时前
Hive自定义函数——简单使用
大数据·hive·hadoop
Darling_004 小时前
LeetCode_sql_day28(1767.寻找没有被执行的任务对)
sql·算法·leetcode