问题导读
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参数:
参考内容(目前配了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']}
最新经典文章,欢迎关注公众号
|