当前位置:网站首页>presto安装部署教程
presto安装部署教程
2022-08-03 04:50:00 【ZhaoYingChao88】
1.下载安装包
并解压到安装目录 ,进入安装目录,创建配置etc目录
2.配置config.properties
进入安装目录,增加配置文件config.properties
vi config.properties
coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
query.max-memory=1GB
query.max-memory-per-node=512MB
query.max-total-memory-per-node=512MB
discovery-server.enabled=true
discovery.uri=http://localhost:8080
3.配置 jvm.config
vi jvm.config
-server
-Xmx8G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError4.配置node.properties
vi node.properties
node.environment=production
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff
node.data-dir=/var/presto/data创建数据目录/var/presto/data并赋权
5.连接hive 在etc下创建配置目录catalog,增加hive.properties 配置
mkdir etc/catalogcat catalog/hive.properties
connector.name=hive-hadoop2
hive.metastore.uri=thrift://hive-master:9083
hive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml,/etc/hadoop/conf/mapred-site.xml
hive.allow-add-column=true
hive.allow-drop-column=true
hive.allow-drop-table=true
hive.allow-rename-table=true
hive.allow-rename-column=true
hive.parquet.use-column-names=truepresto安装问题(java.net.UnknownHostException)
解决方案:在hive.properties 增加如下配置
hive.config.resources=/etc/hadoop/hdfs-site.xml,/etc/hadoop/core-site.xml
注意:路径是hadoop配置文件hdfs-site.xml和core-site.xml的路径
6.启动
./bin/launcher run 可以控制台直接查看日志
./bin/launcher start 后台启动7.连接查询
下载启动client包,https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.273.3/presto-cli-0.273.3-executable.jar
重命名并赋权
mv presto-cli-0.273.3-executable.jar presto
chmod 755 prestopresto连接hive查询
./presto --server localhost:8080 --catalog hive --schema default
参照文档:
边栏推荐
- IO process thread -> thread -> day5
- MySQL 入门:Case 语句很好用
- install ambari
- UV 裂解的生物素-PEG2-叠氮|CAS:1192802-98-4生物素接头
- Interface testing framework combat (3) | JSON request and response assertion
- CobalStrike(CS)基础超级详细版
- redis键值出现 xacxedx00x05tx00&的解决方法
- 多肽介导PEG磷脂——靶向功能材料之DSPE-PEG-RGD/TAT/NGR/APRPG
- BIOTIN ALKYNE CAS: 773888-45-2 Price, Supplier
- Online password generator tool recommendation
猜你喜欢

DDL操作数据库、表、列

GIS数据漫谈(六)— 投影坐标系统

【Biotin Azide|cas:908007-17-0】Price_Manufacturer

typescript40-class类的保护修饰符

Peptides mediated PEG DSPE of phospholipids, targeted functional materials - PEG - RGD/TAT/NGR/APRPG

在线密码生成工具推荐

多肽介导PEG磷脂——靶向功能材料之DSPE-PEG-RGD/TAT/NGR/APRPG

Secondary development of WinForm controls

typescript45-接口之间的兼容性

How to use the interface management tool YApi?Beautiful, easy to manage, super easy to use
随机推荐
【Harmony OS】【ARK UI】轻量级数据存储
11.机器学习基础:机器学习的四个分支
MySQL 删除表数据,重置自增 id 为 0 的两个方式
Interface test Mock combat (2) | Combined with jq to complete batch manual Mock
内部类、static关键字、final
软件开发的最大的区别是什么?
2022 the first of the new league henan (4) : zhengzhou university of light industry G - maze
1.一个神经网络示例
Live | StarRocks technology insider: low base dictionary global optimization
接口测试框架实战(一) | Requests 与接口请求构造
技术分享 | 接口自动化测试中如何对xml 格式做断言验证?
shell脚本循环语句
Get the Ip tool class
c语言结构体中的冒泡排序
接口测试框架实战(二)| 接口请求断言
js garbage collection mechanism
数字孪生园区场景中的坐标知识
Jmeter 模拟多用户登录的两种方法
WebSocket的实际应用
【Biotin Azide|cas:908007-17-0】Price_Manufacturer