Skip to content

Commit

Permalink
Upgrade Presto version to 332 (apache#7194)
Browse files Browse the repository at this point in the history
* Upgrade Presto version to 332

* Update LICENSE file in pulsar-sql module

* Wrap ClassLoaderSafeConnectorMetadata around PulsarMetadata

* Update LICENSE file in pulsar-sql module
  • Loading branch information
ebyhr authored and huangdx0726 committed Aug 24, 2020
1 parent 215ba06 commit 1b86a31
Show file tree
Hide file tree
Showing 37 changed files with 276 additions and 251 deletions.
2 changes: 1 addition & 1 deletion bin/pulsar
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ elif [ $COMMAND == "compact-topic" ]; then
exec $JAVA $OPTS org.apache.pulsar.compaction.CompactorTool --broker-conf $PULSAR_BROKER_CONF $@
elif [ $COMMAND == "sql" ]; then
check_presto_libraries
exec $JAVA -cp "${PRESTO_HOME}/lib/*" com.facebook.presto.cli.Presto --server localhost:8081 "${@}"
exec $JAVA -cp "${PRESTO_HOME}/lib/*" io.prestosql.cli.Presto --server localhost:8081 "${@}"
elif [ $COMMAND == "sql-worker" ]; then
check_presto_libraries
exec ${PRESTO_HOME}/bin/launcher --etc-dir ${PULSAR_PRESTO_CONF} "${@}"
Expand Down
4 changes: 2 additions & 2 deletions conf/presto/log.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

com.facebook.presto=INFO
io.prestosql=INFO
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory=WARN
com.ning.http.client=WARN
com.facebook.presto.server.PluginManager=DEBUG
io.prestosql.server.PluginManager=DEBUG
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ flexible messaging model and an intuitive client API.</description>
<org.eclipse.jetty-hdfs-offload>9.3.24.v20180605</org.eclipse.jetty-hdfs-offload>
<test-hdfs-offload-jetty>9.3.24.v20180605</test-hdfs-offload-jetty>
<elasticsearch.version>6.3.2</elasticsearch.version>
<presto.version>0.206</presto.version>
<presto.version>332</presto.version>
<flink.version>1.6.0</flink.version>
<scala.binary.version>2.11</scala.binary.version>
<debezium.version>1.0.0.Final</debezium.version>
Expand Down Expand Up @@ -1402,7 +1402,7 @@ flexible messaging model and an intuitive client API.</description>

<!-- This is a text property file that contains just a class name -->
<exclude>**/META-INF/services/com.scurrilous.circe.HashProvider</exclude>
<exclude>**/META-INF/services/com.facebook.presto.spi.Plugin</exclude>
<exclude>**/META-INF/services/io.prestosql.spi.Plugin</exclude>

<!-- Django generated code -->
<exclude>**/django/stats/migrations/*.py</exclude>
Expand Down
143 changes: 79 additions & 64 deletions pulsar-sql/presto-distribution/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ The Apache Software License, Version 2.0
- guava-25.1-jre.jar
* Google Guice
- guice-4.2.0.jar
- guice-4.2.3.jar
- guice-multibindings-4.2.0.jar
* Apache Commons
- commons-math3-3.6.1.jar
- commons-beanutils-core-1.8.3.jar
- commons-compress-1.19.jar
- commons-lang3-3.3.2.jar
- commons-lang3-3.6.jar
* Netty
- netty-3.10.6.Final.jar
Expand All @@ -246,86 +246,92 @@ The Apache Software License, Version 2.0
- netty-transport-4.1.48.Final.jar
- netty-transport-native-epoll-4.1.48.Final.jar
- netty-transport-native-epoll-4.1.48.Final-linux-x86_64.jar
- netty-transport-native-kqueue-4.1.48.Final-osx-x86_64.jar
- netty-transport-native-unix-common-4.1.48.Final.jar
- netty-transport-native-unix-common-4.1.48.Final-linux-x86_64.jar
- netty-transport-native-kqueue-4.1.48.Final-osx-x86_64.jar
* Joda Time
- joda-time-2.9.9.jar
- joda-time-2.10.5.jar
- joda-time-2.10.1.jar
* Jetty
- http2-client-9.4.11.v20180605.jar
- http2-common-9.4.11.v20180605.jar
- http2-hpack-9.4.11.v20180605.jar
- http2-http-client-transport-9.4.11.v20180605.jar
- http2-server-9.4.11.v20180605.jar
- jetty-alpn-client-9.4.11.v20180605.jar
- jetty-client-9.4.11.v20180605.jar
- jetty-http-9.4.11.v20180605.jar
- jetty-io-9.4.11.v20180605.jar
- jetty-jmx-9.4.11.v20180605.jar
- jetty-security-9.4.11.v20180605.jar
- jetty-server-9.4.11.v20180605.jar
- jetty-servlet-9.4.11.v20180605.jar
- jetty-util-9.4.11.v20180605.jar
- http2-client-9.4.27.v20200227.jar
- http2-common-9.4.27.v20200227.jar
- http2-hpack-9.4.27.v20200227.jar
- http2-http-client-transport-9.4.27.v20200227.jar
- http2-server-9.4.27.v20200227.jar
- jetty-alpn-client-9.4.27.v20200227.jar
- jetty-client-9.4.27.v20200227.jar
- jetty-http-9.4.27.v20200227.jar
- jetty-io-9.4.27.v20200227.jar
- jetty-jmx-9.4.27.v20200227.jar
- jetty-security-9.4.27.v20200227.jar
- jetty-server-9.4.27.v20200227.jar
- jetty-servlet-9.4.27.v20200227.jar
- jetty-util-9.4.27.v20200227.jar
* Asynchronous Http Client
- async-http-client-1.9.40.jar
* Apache BVal
- bval-core-1.1.1.jar
- bval-jsr-1.1.1.jar
- bval-jsr-2.0.0.jar
* Bytecode
- bytecode-1.0.jar
- bytecode-1.2.jar
* CGLIB Nodep
- cglib-nodep-3.2.5.jar
- cglib-nodep-3.3.0.jar
* Airlift
- aircompressor-0.11.jar
- aircompressor-0.16.jar
- airline-0.8.jar
- bootstrap-0.170.jar
- bootstrap-0.171.jar
- concurrent-0.171.jar
- configuration-0.171.jar
- bootstrap-0.195.jar
- concurrent-0.195.jar
- configuration-0.170.jar
- discovery-0.171.jar
- configuration-0.195.jar
- discovery-0.195.jar
- discovery-server-1.29.jar
- event-0.171.jar
- http-client-0.171.jar
- http-server-0.171.jar
- jmx-0.171.jar
- jmx-http-0.171.jar
- event-0.195.jar
- http-client-0.195.jar
- http-server-0.195.jar
- jmx-0.195.jar
- jmx-http-0.195.jar
- jmx-http-rpc-0.159.jar
- joni-2.1.5.1.jar
- joni-2.1.5.3.jar
- json-0.170.jar
- json-0.171.jar
- json-0.195.jar
- log-0.170.jar
- log-0.171.jar
- log-0.195.jar
- log-manager-0.170.jar
- log-manager-0.171.jar
- node-0.171.jar
- resolver-1.4.jar
- security-0.171.jar
- slice-0.35.jar
- stats-0.171.jar
- trace-token-0.171.jar
- units-1.0.jar
- log-manager-0.195.jar
- node-0.195.jar
- parameternames-1.4.jar
- resolver-1.5.jar
- security-0.195.jar
- slice-0.38.jar
- stats-0.195.jar
- trace-token-0.195.jar
- units-1.6.jar
* Error Prone Annotations
- error_prone_annotations-2.1.3.jar
* Esri Geometry API For Java
- esri-geometry-api-2.1.0.jar
- esri-geometry-api-2.2.2.jar
* Failsafe
- failsafe-2.0.1.jar
* Fastutil
- fastutil-6.5.9.jar
- fastutil-8.3.0.jar
* J2ObjC Annotations
- j2objc-annotations-1.1.jar
* JSON Web Token Support For The JVM
- jjwt-0.9.0.jar
* Jmxutils
- jmxutils-1.19.jar
- jmxutils-1.21.jar
* LevelDB
- leveldb-0.10.jar
- leveldb-api-0.10.jar
* Log4j implemented over SLF4J
- log4j-over-slf4j-1.7.25.jar
- log4j-over-slf4j-1.7.29.jar
* Lucene Common Analyzers
- lucene-analyzers-common-7.2.1.jar
- lucene-analyzers-common-8.4.1.jar
- lucene-core-8.4.1.jar
* Maven
- maven-aether-provider-3.0.5.jar
- maven-artifact-3.0.5.jar
Expand Down Expand Up @@ -363,6 +369,7 @@ The Apache Software License, Version 2.0
- javax.inject-1.jar
- javax.inject-1.jar
- javax.servlet-api-3.1.0.jar
- javax.servlet-api-4.0.1.jar
- javax.ws.rs-api-2.1.jar
* JCommander
- jcommander-1.48.jar
Expand All @@ -373,21 +380,22 @@ The Apache Software License, Version 2.0
* Okio
- okio-1.13.0.jar
* Presto
- presto-array-0.206.jar
- presto-cli-0.206.jar
- presto-client-0.206.jar
- presto-geospatial-toolkit-0.206.jar
- presto-main-0.206.jar
- presto-matching-0.206.jar
- presto-memory-context-0.206.jar
- presto-parser-0.206.jar
- presto-spi-0.206.jar
- presto-array-332.jar
- presto-cli-332.jar
- presto-client-332.jar
- presto-geospatial-toolkit-332.jar
- presto-main-332.jar
- presto-matching-332.jar
- presto-memory-context-332.jar
- presto-parser-332.jar
- presto-plugin-toolkit-332.jar
- presto-spi-332.jar
* RocksDB JNI
- rocksdbjni-5.13.3.jar
* SnakeYAML
- snakeyaml-1.17.jar
* Bean Validation API
- validation-api-1.1.0.Final.jar
- validation-api-2.0.1.Final.jar
* Objectsize
- objectsize-0.0.12.jar
* Dropwizard Metrics
Expand Down Expand Up @@ -431,6 +439,7 @@ The Apache Software License, Version 2.0
- jackson-jaxrs-json-provider-2.8.11.jar
- jackson-module-jaxb-annotations-2.8.11.jar
- jackson-module-jsonSchema-2.8.11.jar
- jackson-module-parameter-names-2.10.0.jar
* Java Assist
- javassist-3.25.0-GA.jar
* Jetty
Expand All @@ -442,6 +451,9 @@ The Apache Software License, Version 2.0
- jetty-util-9.4.20.v20190813.jar
* Java Native Access
- jna-4.2.0.jar
- jna-5.3.1.jar
* Java Object Layout: Core
- jol-core-0.2.jar
* Yahoo Datasketches
- memory-0.8.3.jar
- sketches-core-0.8.3.jar
Expand All @@ -465,14 +477,16 @@ BSD 3-clause "New" or "Revised" License
- dsl-json-1.8.4.jar

BSD License
* ANTLR 4 Runtime -- antlr4-runtime-4.6.jar
* ANTLR 4 Runtime -- antlr4-runtime-4.7.1.jar
* ASM, a very small and fast Java bytecode manipulation framework
- asm-6.1.1.jar
- asm-analysis-6.0.jar
- asm-tree-6.0.jar
- asm-util-6.0.jar
- asm-6.2.1.jar
- asm-analysis-6.2.1.jar
- asm-tree-6.2.1.jar
- asm-util-6.2.1.jar
* JLine
- jline-2.14.6.jar
- jline-reader-3.12.1.jar
- jline-terminal-3.12.1.jar
- jline-terminal-jna-3.12.1.jar

MIT License
* Animal Sniffer Annotations
Expand All @@ -481,10 +495,11 @@ MIT License
- pcollections-2.1.2.jar
* SLF4J
- slf4j-jdk14-1.7.25.jar
- slf4j-api-1.7.12.jar
- slf4j-jdk14-1.7.29.jar
- slf4j-api-1.7.25.jar
* JCL 1.2 Implemented Over SLF4J
- jcl-over-slf4j-1.7.25.jar
- jcl-over-slf4j-1.7.29.jar
* JUL to SLF4J Bridge
- jul-to-slf4j-1.7.25.jar
* Checker Qual
Expand All @@ -497,14 +512,15 @@ CDDL - 1.0
CDDL-1.1 -- licenses/LICENSE-CDDL-1.1.txt
* Java Annotations API
- javax.annotation-api-1.2.jar
- javax.annotation-api-1.3.1.jar
- javax.annotation-api-1.3.2.jar
- javax.activation-1.2.0.jar
- javax.activation-api-1.2.0.jar
* HK2 - Dependency Injection Kernel
- hk2-api-2.5.0-b42.jar
- hk2-locator-2.5.0-b42.jar
- hk2-utils-2.5.0-b42.jar
* Jersey
- jaxrs-0.171.jar
- jaxrs-0.195.jar
- jersey-client-2.26.jar
- jersey-container-servlet-2.26.jar
- jersey-container-servlet-core-2.26.jar
Expand All @@ -513,7 +529,6 @@ CDDL-1.1 -- licenses/LICENSE-CDDL-1.1.txt
- jersey-server-2.26.jar
- jersey-common-2.26.jar
* JAXB
- jaxb-api-2.2.6.jar
- jaxb-api-2.3.1.jar
- jaxb-impl-2.2.6.jar

Expand All @@ -526,7 +541,7 @@ CDDL-1.1 -- licenses/LICENSE-CDDL-1.1.txt
- aether-spi-1.13.1.jar
- aether-util-1.13.1.jar
* JTS Core
- jts-core-1.15.0.jar
- jts-core-1.16.1.jar
*JGraphT Core
- jgrapht-core-0.9.0.jar
* Logback Core Module
Expand Down
8 changes: 4 additions & 4 deletions pulsar-sql/presto-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
<version>2.7.0-SNAPSHOT</version>

<properties>
<presto.version>0.206</presto.version>
<presto.version>332</presto.version>
<airlift.version>0.170</airlift.version>
<objenesis.version>2.6</objenesis.version>
<objectsize.version>0.0.12</objectsize.version>
<guice.version>4.2.0</guice.version>
<!-- Launcher properties -->
<main-class>com.facebook.presto.server.PrestoServer</main-class>
<main-class>io.prestosql.server.PrestoServer</main-class>
<process-name>${project.artifactId}</process-name>
<jackson.version>2.8.11</jackson.version>
<!--fix Security Vulnerabilities-->
Expand All @@ -54,7 +54,7 @@
<dependencies>

<dependency>
<groupId>com.facebook.presto</groupId>
<groupId>io.prestosql</groupId>
<artifactId>presto-main</artifactId>
<version>${presto.version}</version>
<exclusions>
Expand All @@ -75,7 +75,7 @@
</dependency>

<dependency>
<groupId>com.facebook.presto</groupId>
<groupId>io.prestosql</groupId>
<artifactId>presto-cli</artifactId>
<version>${presto.version}</version>
</dependency>
Expand Down
10 changes: 8 additions & 2 deletions pulsar-sql/presto-pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,15 @@
<version>${dslJson.verson}</version>
</dependency>

<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-plugin-toolkit</artifactId>
<version>${presto.version}</version>
</dependency>

<!-- Presto SPI -->
<dependency>
<groupId>com.facebook.presto</groupId>
<groupId>io.prestosql</groupId>
<artifactId>presto-spi</artifactId>
<version>${presto.version}</version>
<scope>provided</scope>
Expand Down Expand Up @@ -169,4 +175,4 @@
</plugins>
</build>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
package org.apache.pulsar.sql.presto;

import com.dslplatform.json.DslJson;
import com.facebook.presto.spi.type.Type;
import io.airlift.log.Logger;
import io.netty.buffer.ByteBuf;
import io.netty.util.concurrent.FastThreadLocal;
import io.prestosql.spi.type.Type;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;
Expand Down
Loading

0 comments on commit 1b86a31

Please sign in to comment.