Presto对接PHONEIX

1 新建配置文件 根据自己的presto的安装目录(目前版本presto330,注意官方文档是否支持PHONEIX PHONEIX版本4.14.1)

vim /mnt/software/presto/etc/catalog

connector.name=phoenix
phoenix.connection-url=jdbc:phoenix:hdp:2181:/hbase
phoenix.config.resources=/mnt/software/presto/etc/cluster/hbase-site.xml

  

 
配置文件提前放在对应路径之下
/mnt/software/presto/etc/cluster/hbase-site.xml 
 
2 重启presto
/mnt/software/presto/bin/launcher restart
 
3 测试是否能够查询PHONEIX数据
/mnt/software/presto/bin/presto --server hdp:9088 --catalog phoenix --schema default
 
 
原文地址:https://www.cnblogs.com/QuestionsZhang/p/12502147.html