Presto集成到Ambari

 

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

 

1.下载

wget https://github.com/prestodb/ambari-presto-service/releases/download/v1.2/ambari-presto-1.2.tar.gz

 

 

  • Assuming HDP 2.3 was installed with Ambari, create the following directory on the node where the ambari-server is running:

    $ mkdir /var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO
    $ cd /var/lib/ambari-server/resources/stacks/HDP/2.6/services/PRESTO
    
  • Place the integration files within the newly created PRESTO directory. Download the integration package that installs Teradata’s version from here or download the integration package that installs 0.148 from the releases section of this project. Upload the integration archive to your cluster and extract it like so:

    $ 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
    
  • Finally, make all integration files executable and restart the Ambari server:

    $ 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

    [download]
    presto_rpm_url = http://192.168.1.200/HDP-UTILS-1.1.0.21/presto-server-rpm-0.161.rpm
    presto_cli_url = http://192.168.1.200/presto-cli-0.161-executable.jar

    您可以选择一种方式赞助本站