当前位置:网站首页>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
参照文档:
边栏推荐
- Flink状态
- 常见荧光染料修饰多种基团及其激发和发射波长数据一览数据
- MySQL 删除表数据,重置自增 id 为 0 的两个方式
- typescript46-函数之间的类型兼容性
- 接口测试 Mock 实战(二) | 结合 jq 完成批量化的手工 Mock
- Technology Sharing | How to do assertion verification for xml format in interface automation testing?
- [Developers must see] [push kit] Collection of typical problems of push service service 2
- [Harmony OS] [ARK UI] ETS context basic operations
- 如何利用 Flutter 实现炫酷的 3D 卡片和帅气的 360° 展示效果
- 9.新闻分类:多分类问题
猜你喜欢

Kotlin-Flow常用封装类:StateFlow的使用

IO进程线程->线程->day5

三丁基-巯基膦烷「tBuBrettPhos Pd(allyl)」OTf),1798782-17-8

Live | StarRocks technology insider: low base dictionary global optimization

How many moments have you experienced the collapse of electronic engineers?

常见荧光染料修饰多种基团及其激发和发射波长数据一览数据

WinForm的控件二次开发

超好用的画图工具推荐

私域流量引流方法?分享购火爆的商业模式,你值得拥有

接口测试如何准备测试数据
随机推荐
Redis连接不上的报错解决方案汇总
JS bottom handwriting
IO进程线程->线程->day5
Test drive: project management module - curd development project
Super handy drawing tool is recommended
MCM box model modeling method and source analysis of atmospheric O3
typescript47-函数之间的类型兼容性
Shell条件语句判断
js的垃圾回收机制
WebSocket的实际应用
Jmeter 模拟多用户登录的两种方法
社交电商:流量红利已尽,裂变营销是最低成本的获客之道
超好用的画图工具推荐
CobalStrike(CS)基础超级详细版
Create a tree structure
How many moments have you experienced the collapse of electronic engineers?
【Harmony OS】【ArkUI】ets开发 图形与动画绘制
typescript41-class类的私有修饰符
建立树形结构
普乐蛙VR台风体验馆厂家VR防震减灾模拟VR沉浸式体验设备