当前位置:网站首页>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:+ExitOnOutOfMemoryError
4.配置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/catalog
cat 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=true
presto安装问题(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 presto
presto连接hive查询
./presto --server localhost:8080 --catalog hive --schema default
参照文档:
边栏推荐
- 接口测试如何准备测试数据
- [Developers must see] [push kit] Collection of typical problems of push service service 2
- BIOTIN ALKYNE CAS:773888-45-2价格,供应商
- Flink state
- 【Harmony OS】【ARK UI】Date 基本操作
- Fluorescent marker peptides FITC/AMC/FAM/Rhodamine TAMRA/Cy3 / Cy5 / Cy7 - Peptide
- typescript43-类型兼容性说明
- JS bottom handwriting
- 【HMS core】【Ads Kit】Huawei Advertising——Overseas applications are tested in China. Official advertisements cannot be displayed
- 修饰生物素DIAZO-生物素-PEG3-DBCO|重氮-生物素-三聚乙二醇-二苯基环辛炔
猜你喜欢
【 Harmony OS 】 【 ano UI 】 lightweight data storage
Kotlin-Flow common encapsulation class: the use of StateFlow
Harmony OS Date ano UI 】 【 】 the basic operation
redis键值出现 xacxedx00x05tx00&的解决方法
【生物素叠氮化物|cas:908007-17-0】价格_厂家
BIOTIN ALKYNE CAS: 773888-45-2 Price, Supplier
Test drive: project management module - curd development project
三丁基-巯基膦烷「tBuBrettPhos Pd(allyl)」OTf),1798782-17-8
How to prepare for the test interface test data
UV decomposition of biotin - PEG2 - azide | CAS: 1192802-98-4 biotin connectors
随机推荐
Test drive: project management module - curd development project
Concepts and Methods of Exploratory Testing
unity2D横板游戏教程6-敌人AI以及受击动画
excerpt from compilation book
接口测试实战| GET/POST 请求区别详解
typescript44-对象之间的类兼容器
11.机器学习基础:机器学习的四个分支
用户密码加密工具
How to prepare for the test interface test data
Coordinate knowledge in digital twin campus scenarios
Harmony OS Date ano UI 】 【 】 the basic operation
User password verification
BIOTIN ALKYNE CAS:773888-45-2价格,供应商
I ported GuiLite to STM32F4 board
shell脚本循环语句
传统企业如何转型社交电商,泰山众筹的玩法有哪些?
数据库基本概述与SQL概述
Peptides mediated PEG DSPE of phospholipids, targeted functional materials - PEG - RGD/TAT/NGR/APRPG
索引创建、删除与使用
Get the Ip tool class