Skip to content

Commit

Permalink
update related refs
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Aug 11, 2022
1 parent 60d8579 commit a3454a6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/pulsar
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ PY_INSTANCE_FILE=${PULSAR_PY_INSTANCE_FILE:-"${DEFAULT_PY_INSTANCE_FILE}"}
DEFAULT_FUNCTIONS_EXTRA_DEPS_DIR=$PULSAR_HOME/instances/deps
FUNCTIONS_EXTRA_DEPS_DIR=${PULSAR_FUNCTIONS_EXTRA_DEPS_DIR:-"${DEFAULT_FUNCTIONS_EXTRA_DEPS_DIR}"}
SQL_HOME=$PULSAR_HOME/pulsar-sql
PRESTO_HOME=${PULSAR_HOME}/lib/trino
PRESTO_HOME=${PULSAR_HOME}/lib/presto
DEFAULT_PULSAR_PRESTO_CONF=${PRESTO_HOME}/conf

pulsar_help() {
Expand Down
4 changes: 2 additions & 2 deletions distribution/server/src/assemble/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@
</fileSet>
<fileSet>
<directory>${basedir}/../../pulsar-sql/presto-distribution/target/pulsar-presto-distribution</directory>
<outputDirectory>lib/trino</outputDirectory>
<outputDirectory>lib/presto</outputDirectory>
<excludes>
<exclude>bin</exclude>
<exclude>bin/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${basedir}/../../pulsar-sql/presto-distribution/target/pulsar-presto-distribution</directory>
<outputDirectory>lib/trino</outputDirectory>
<outputDirectory>lib/presto</outputDirectory>
<includes>
<include>bin/**</include>
</includes>
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/kitchen-sink/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ services:
image: apachepulsar/pulsar-all:latest
restart: on-failure
command: >
bash -c "bin/apply-config-from-env-with-prefix.py SQL_PREFIX_ conf/presto/catalog/pulsar.properties && \
bash -c "bin/apply-config-from-env-with-prefix.py SQL_PREFIX_ lib/presto/conf/catalog/pulsar.properties && \
bin/apply-config-from-env.py conf/pulsar_env.sh && \
bin/watch-znode.py -z $$zookeeperServers -p /initialized-$$clusterName -w && \
exec bin/pulsar sql-worker run"
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-images/latest-version-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ COPY scripts/init-cluster.sh scripts/run-global-zk.sh scripts/run-local-zk.sh \
scripts/run-standalone.sh \
/pulsar/bin/

COPY conf/presto/jvm.config /pulsar/conf/presto/
COPY pulsar-sql/presto-distribution/src/main/resources/conf/jvm.config /pulsar/lib/presto/conf

# copy python test examples
RUN mkdir -p /pulsar/instances/deps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# under the License.
#

bin/apply-config-from-env-with-prefix.py SQL_PREFIX_ conf/presto/catalog/pulsar.properties && \
bin/apply-config-from-env-with-prefix.py SQL_PREFIX_ lib/presto/conf/catalog/pulsar.properties && \
bin/apply-config-from-env.py conf/pulsar_env.sh

if [ -z "$NO_AUTOSTART" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ private PrestoWorkerContainer buildPrestoWorkerContainer(String hostName, boolea
.withEnv("pulsar.web-service-url", "http://pulsar-broker-0:8080")
.withEnv("SQL_PREFIX_pulsar.max-message-size", "" + spec.maxMessageSize)
.withClasspathResourceMapping(
resourcePath, "/pulsar/conf/presto/config.properties", BindMode.READ_WRITE);
resourcePath, "/pulsar/lib/presto/conf/config.properties", BindMode.READ_WRITE);
if (spec.queryLastMessage) {
container.withEnv("pulsar.bookkeeper-use-v2-protocol", "false")
.withEnv("pulsar.bookkeeper-explicit-interval", "10");
Expand Down

0 comments on commit a3454a6

Please sign in to comment.