about云开发

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 953|回复: 2

[实操演练] Presto最新版集成到Ambari

[复制链接]

507

主题

390

听众

217

收听

版主

Rank: 7Rank: 7Rank: 7

积分
5745
发表于 2019-1-9 16:29:32 | 显示全部楼层 |阅读模式
问题导读

1.将Presto集成到Ambari包含哪些步骤?
2.安装过程中需要注意什么问题?
3.presto 服务组件成功后,需要配置什么参数?

https://github.com/prestodb/ambari-presto-service/releases

1.下载
$mkdir /var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO
$cd /var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO
$tar -xvf /path/to/integration/package/ambari-presto-1.2.tar.gz -C/var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO
$mv /var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO/ambari-presto-1.2/*/var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO
$rm -rf/var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO/ambari-presto-1.2
$chmod -R +x /var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO/*
$ambari-server restart
在线安装会超时,换成离线安装
vi/var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO/package/scripts/download.ini

<dependency>
   <groupId>com.facebook.presto</groupId>
   <artifactId>presto-cli</artifactId>
   <version>0.190</version>
</dependency>



# yum clean all (清除缓存)
# yum makecache (建立新缓存)
# ambari-server restart
重启Ambari server后,在浏览器UI界面,点击Add Service,根据指示安装Presto。

分布式模式运行,在一个节点上安装Presto coordinator,在其他若干节点(非coordinator节点)上安装Presto worker(不要将worker放置在与coordinator相同的节点上

可在安装服务presto 服务组件成功后,再配置Connectors参数:

1.png

参考内容(目前配了hive和kafka):
{'hive':['connector.name=hive-hadoop2','hive.metastore.uri=thrift://c2bde55:9083'],'kafka': ['connector.name=kafka','kafka.table-names=ATLAS_ENTITIES,ATLAS_HOOK,ambari_kafka_service_check,testTopic','kafka.nodes=c2bde02:2181,c2bde03:2181,c2bde55:2181']}

最新经典文章,欢迎关注公众号

欢迎加入about云群425860289432264021 ,云计算爱好者群,关注about云腾讯认证空间
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /3 下一条

QQ|小黑屋|about云开发-学问论坛|社区 ( 京ICP备12023829号

GMT+8, 2019-6-17 08:48 , Processed in 0.417953 second(s), 41 queries , Gzip On.

Powered by Discuz! X3.2 Licensed

快速回复 返回顶部 返回列表