You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/08/13 12:14:36 UTC

[GitHub] [pulsar] dionjansen commented on pull request #7194: Upgrade Presto version to 332

dionjansen commented on pull request #7194:
URL: https://github.com/apache/pulsar/pull/7194#issuecomment-673441779


   @enriched I kind of let this go and postponed using prestosql for now. I was using the 2.6.0 release (I'm not sure this PR was included in that though). This is the Dockerfile I was using to test this out:
   
   ```Dockerfile
   ARG PRESTO_VERSION=336
   FROM prestosql/presto:$PRESTO_VERSION
   ARG PULSAR_MIRROR="https://archive.apache.org/dist/pulsar"
   ARG PULSAR_VERSION="2.6.0"
   ARG PULSAR_BIN="${PULSAR_MIRROR}/pulsar-${PULSAR_VERSION}/apache-pulsar-${PULSAR_VERSION}-bin.tar.gz"
   ARG PULSAR_OFFLOADERS_BIN="${PULSAR_MIRROR}/pulsar-${PULSAR_VERSION}/apache-pulsar-offloaders-${PULSAR_VERSION}-bin.tar.gz"
   ARG PRESTO_HOME="/usr/lib/presto"
   USER root
   RUN yum -y -q update \
       && yum -y -q install wget \
       # Install pulsar presto connector
       && wget --quiet $PULSAR_BIN \
       && tar xzf apache-pulsar-${PULSAR_VERSION}-bin.tar.gz \
       && rm -rf apache-pulsar-${PULSAR_VERSION}-bin.tar.gz \
       && mv apache-pulsar-${PULSAR_VERSION}/lib/presto/plugin/pulsar-presto-connector $PRESTO_HOME/plugin \
       && rm -rf apache-pulsar-${PULSAR_VERSION} \
       # Install offloaders
       && wget --quiet $PULSAR_OFFLOADERS_BIN \
       && tar xzf apache-pulsar-offloaders-${PULSAR_VERSION}-bin.tar.gz \
       && rm -rf apache-pulsar-offloaders-${PULSAR_VERSION}-bin.tar.gz \
       && mv apache-pulsar-offloaders-${PULSAR_VERSION}/offloaders $PRESTO_HOME/offloaders \
       && rm -rf apache-pulsar-offloaders-${PULSAR_VERSION} \
       # Cleanup
       && yum -q clean all
   EXPOSE 8080
   USER presto:presto
   ENV LANG en_US.UTF-8
   CMD ["/usr/lib/presto/bin/run-presto"]
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org