Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Property Name Description
``coordinator-sidecar-enabled`` Enables sidecar in the coordinator true
``native-execution-enabled`` Enables native execution true
``presto.default-namespace`` Sets the default function namespace `native.default`
``plugin.dir`` Specifies which directory under installation root `{root-directory}/native-plugins/`
to scan for plugins at startup.
============================================ ===================================================================== ==============================

.. _sidecar-worker-properties:
Expand Down
10 changes: 0 additions & 10 deletions presto-product-tests/conf/docker/common/compose-commons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ if [[ -z "${PRESTO_SERVER_DIR:-}" ]]; then
source "${PRODUCT_TESTS_ROOT}/target/classes/presto.env"
PRESTO_SERVER_DIR="${PROJECT_ROOT}/presto-server/target/presto-server-${PRESTO_VERSION}/"
fi

# The following plugin results in a function signature conflict when loaded in Java/ sidecar disabled native clusters.
# This plugin is only meant for sidecar enabled native clusters, hence exclude it.
PLUGIN_TO_EXCLUDE="native-sql-invoked-functions-plugin"

if [[ -d "${PRESTO_SERVER_DIR}/plugin/${PLUGIN_TO_EXCLUDE}" ]]; then
echo "Excluding plugin: $PLUGIN_TO_EXCLUDE"
rm -rf "${PRESTO_SERVER_DIR}/plugin/${PLUGIN_TO_EXCLUDE}"
fi

export_canonical_path PRESTO_SERVER_DIR

if [[ -z "${PRESTO_CLI_JAR:-}" ]]; then
Expand Down
85 changes: 79 additions & 6 deletions presto-server/src/main/provisio/presto.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<artifact id="${project.groupId}:presto-main:${project.version}" />
</artifactSet>

<!-- Plugins -->
<!-- Java Plugins -->
<artifactSet to="plugin/resource-group-managers">
<artifact id="${project.groupId}:presto-resource-group-managers:zip:${project.version}">
<unpack />
Expand Down Expand Up @@ -281,19 +281,92 @@
</artifact>
</artifactSet>

<artifactSet to="plugin/native-sidecar-plugin">
<artifact id="${project.groupId}:presto-native-sidecar-plugin:zip:${project.version}">
<artifactSet to="plugin/sql-invoked-functions-plugin">
<artifact id="${project.groupId}:presto-sql-invoked-functions-plugin:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/sql-invoked-functions-plugin">
<artifact id="${project.groupId}:presto-sql-invoked-functions-plugin:zip:${project.version}">
<!-- Native Plugins -->
<artifactSet to="native-plugin/resource-group-managers">
<artifact id="${project.groupId}:presto-resource-group-managers:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/password-authenticators">
<artifact id="${project.groupId}:presto-password-authenticators:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/file-session-property-manager">
<artifact id="${project.groupId}:presto-file-session-property-manager:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/db-session-property-manager">
<artifact id="${project.groupId}:presto-db-session-property-manager:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/function-namespace-managers">
<artifact id="${project.groupId}:presto-function-namespace-managers:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/jmx">
<artifact id="${project.groupId}:presto-jmx:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/hive-hadoop2">
<artifact id="${project.groupId}:presto-hive-hadoop2:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/ml">
<artifact id="${project.groupId}:presto-ml:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/prometheus">
<artifact id="${project.groupId}:presto-prometheus:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/tpch">
<artifact id="${project.groupId}:presto-tpch:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/tpcds">
<artifact id="${project.groupId}:presto-tpcds:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/iceberg">
<artifact id="${project.groupId}:presto-iceberg:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="native-plugin/native-sidecar-plugin">
<artifact id="${project.groupId}:presto-native-sidecar-plugin:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/native-sql-invoked-functions-plugin">
<artifactSet to="native-plugin/native-sql-invoked-functions-plugin">
<artifact id="${project.groupId}:presto-native-sql-invoked-functions-plugin:zip:${project.version}">
<unpack />
</artifact>
Expand Down
Loading