Mac M3 Pro 部署Trino-server-449

2024-06-16 14:28
文章标签 mac m3 pro trino server 449 部署

本文主要是介绍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、解压并设置配置参数

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/catalogvim ./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=rootvim ./etc/node.propertiesnode.environment=dev
node.id=sx01
node.data-dir=/opt/module/trino/datavim ./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=10000000vim ./etc/log.propertiesio.trino=INFOvim ./etc/catalog/hive.propertiesconnector.name=hive
hive.metastore.uri=thrift://127.0.0.1:9083

3、启动并验证

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客户端连接测试

./trino-cli --server http://127.0.0.1:8180 --catalog hive

这篇关于Mac M3 Pro 部署Trino-server-449的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1066693

相关文章

UnrealScriptIDE调试环境部署

先安装vs2010   再安装VSIsoShell.exe, 下载地址 https://pan.baidu.com/s/10kPNUuDGTbWXbz7Nos-1WA       fd3t   最后安装unside,下载地址 https://archive.codeplex.com/?p=uside  安装中间有一步选择Binary文件夹要选对路径。   安装好以后,启动 UDKDe

Mac excel 同时冻结首行和首列

1. 选择B2窗格 2. 选择视图 3. 选择冻结窗格 最后首行和首列的分割线加粗了就表示成功了

SQL Server中,查询数据库中有多少个表,以及数据库其余类型数据统计查询

sqlserver查询数据库中有多少个表 sql server 数表:select count(1) from sysobjects where xtype='U'数视图:select count(1) from sysobjects where xtype='V'数存储过程select count(1) from sysobjects where xtype='P' SE

SQL Server中,always on服务器的相关操作

在SQL Server中,建立了always on服务,可用于数据库的同步备份,当数据库出现问题后,always on服务会自动切换主从服务器。 例如192.168.1.10为主服务器,12为从服务器,当主服务器出现问题后,always on自动将主服务器切换为12,保证数据库正常访问。 对于always on服务器有如下操作: 1、切换主从服务器:假如需要手动切换主从服务器时(如果两个服务

SQL Server中,isnull()函数以及null的用法

SQL Serve中的isnull()函数:          isnull(value1,value2)         1、value1与value2的数据类型必须一致。         2、如果value1的值不为null,结果返回value1。         3、如果value1为null,结果返回vaule2的值。vaule2是你设定的值。        如

SQL Server中,添加数据库到AlwaysOn高可用性组条件

1、将数据添加到AlwaysOn高可用性组,需要满足以下条件: 2、更多具体AlwaysOn设置,参考:https://msdn.microsoft.com/zh-cn/library/windows/apps/ff878487(v=sql.120).aspx 注:上述资源来自MSDN。

SQL Server中,用Restore DataBase把数据库还原到指定的路径

restore database 数据库名 from disk='备份文件路径' with move '数据库文件名' to '数据库文件放置路径', move '日志文件名' to '日志文件存放置路径' Go 如: restore database EaseWe from disk='H:\EaseWe.bak' with move 'Ease

Linux和Mac分卷压缩

使用 zip 命令压缩文件 使用 zip 命令压缩文件,并结合 split 命令来分卷: zip - largefile | split -b 500k 举例: zip - ./tomcat.dmg |split -b 500k 上述命令将文件 largefile 压缩成 zip 包并分卷成不超过 500k 的文件,分解后文件名默认是 x* ,后缀为 2 位a-z 字母,如 aa、ab。

青龙面板部署通用教程,含服务器、路由器、X86等部署方法

1. 拉取镜像/更新镜像 docker pull whyour/qinglong:latest 2. 删除镜像 docker rmi whyour/qinglong:latest 3. 启动容器 普通服务器 docker run -dit \-v $PWD/ql/config:/ql/config \-v $PWD/ql/log:/ql/log \-v $PWD/ql/db: