Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Closed
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
4 changes: 2 additions & 2 deletions .kokoro/trampoline_v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# To run this script, first download few files from gcs to /dev/shm.
# (/dev/shm is passed into the container as KOKORO_GFILE_DIR).
#
# gsutil cp gs://cloud-devrel-kokoro-resources/python-docs-samples/secrets_viewer_service_account.json /dev/shm
# gsutil cp gs://cloud-devrel-kokoro-resources/python-docs-samples/automl_secrets.txt /dev/shm
# gcloud storage cp gs://cloud-devrel-kokoro-resources/python-docs-samples/secrets_viewer_service_account.json /dev/shm
# gcloud storage cp gs://cloud-devrel-kokoro-resources/python-docs-samples/automl_secrets.txt /dev/shm
#
# Then run the script.
# .kokoro/trampoline_v2.sh
Expand Down
24 changes: 15 additions & 9 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,33 @@ steps:
- '--output=${_BINARY_PREFIX}.egg'
dir: '${_REPO}/python'
id: build-python-egg
- name: gcr.io/cloud-builders/gsutil
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args:
- '-c'
- |
gsutil cp ${_REPO}/python/main.py gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/python/
gcloud storage cp ${_REPO}/python/main.py gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/python/
id: cp-python-main-to-gcs-tag-folder
- name: gcr.io/cloud-builders/gsutil
- name: gcr.io/cloud-builders/gcloud
entrypoint: gcloud
args:
- storage
- cp
- main.py
- 'gs://${_PUBLIC_BUCKET}/latest/python/'
dir: '${_REPO}/python'
id: cp-python-main-to-gcs-latest-folder
- name: gcr.io/cloud-builders/gsutil
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args:
- '-c'
- |
gsutil cp ${_REPO}/python/${_BINARY_PREFIX}.egg gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/python/
gcloud storage cp ${_REPO}/python/${_BINARY_PREFIX}.egg gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/python/
id: cp-python-egg-to-gcs-tag-folder
- name: gcr.io/cloud-builders/gsutil
- name: gcr.io/cloud-builders/gcloud
entrypoint: gcloud
args:
- storage
- cp
- '${_BINARY_PREFIX}.egg'
- 'gs://${_PUBLIC_BUCKET}/latest/python/'
Expand All @@ -61,15 +65,17 @@ steps:
dir: '${_REPO}/java'
id: build-java-jar
entrypoint: mvn
- name: gcr.io/cloud-builders/gsutil
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args:
- '-c'
- |
gsutil cp ${_REPO}/java/target/dataproc-templates-1.0-SNAPSHOT.jar gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/java/
gcloud storage cp ${_REPO}/java/target/dataproc-templates-1.0-SNAPSHOT.jar gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/java/
id: cp-java-egg-to-gcs-tag-folder
- name: gcr.io/cloud-builders/gsutil
- name: gcr.io/cloud-builders/gcloud
entrypoint: gcloud
args:
- storage
- cp
- dataproc-templates-1.0-SNAPSHOT.jar
- 'gs://${_PUBLIC_BUCKET}/latest/java/${_BINARY_PREFIX}.jar'
Expand Down
10 changes: 5 additions & 5 deletions java/.ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ pipeline {
steps {
catchError {
sh '''
gsutil rm -r gs://dataproc-templates/integration-testing/checkpoint/KAFKATOBQ 2> /dev/null || true
gsutil rm -r gs://dataproc-templates/integration-testing/output/KAFKATOGCS 2> /dev/null || true
gsutil rm -r gs://dataproc-templates/integration-testing/output/KAFKATOGCS_DStream 2> /dev/null || true
gcloud storage rm --recursive gs://dataproc-templates/integration-testing/checkpoint/KAFKATOBQ 2> /dev/null || true
gcloud storage rm --recursive gs://dataproc-templates/integration-testing/output/KAFKATOGCS 2> /dev/null || true
gcloud storage rm --recursive gs://dataproc-templates/integration-testing/output/KAFKATOGCS_DStream 2> /dev/null || true

cat > /tmp/employeecatalog.json << EOF
{
Expand All @@ -86,7 +86,7 @@ cat > /tmp/employeecatalog.json << EOF
EOF

cat /tmp/employeecatalog.json
gsutil cp /tmp/employeecatalog.json gs://dataproc-templates/conf/
gcloud storage cp /tmp/employeecatalog.json gs://dataproc-templates/conf/

'''
}
Expand Down Expand Up @@ -193,7 +193,7 @@ EOF
catchError {
sh '''
if [ $GIT_BRANCH_LOCAL != "main" ];then
gsutil rm -r $GCS_STAGING_LOCATION 2> /dev/null || true
gcloud storage rm --recursive $GCS_STAGING_LOCATION 2> /dev/null || true
fi
'''
}
Expand Down
4 changes: 2 additions & 2 deletions java/.ci/UiJenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pipeline {

LOCAL_JAR_Path=./target/${JAR_FILE}

gsutil cp ${LOCAL_JAR_Path} ${jarPath}
gcloud storage cp ${LOCAL_JAR_Path} ${jarPath}
'''

}
Expand All @@ -121,7 +121,7 @@ pipeline {
catchError {
sh '''
if [ $GIT_BRANCH_LOCAL != "main" ];then
gsutil rm -r $jarPath 2> /dev/null || true
gcloud storage rm --recursive $jarPath 2> /dev/null || true
fi
'''
}
Expand Down
4 changes: 2 additions & 2 deletions java/.ci/dataproc-serverless-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ steps:
cd java
mvn install spotless:check
echo "copying the build into staging location:" ${_GCS_STAGING_LOCATION}
gsutil cp target/$_JAR_FILE ${_GCS_STAGING_LOCATION}/$_JAR_FILE
gcloud storage cp target/$_JAR_FILE ${_GCS_STAGING_LOCATION}/$_JAR_FILE

cat > /tmp/employeecatalog.json << EOF
{
Expand All @@ -64,7 +64,7 @@ steps:
}
EOF
cat /tmp/employeecatalog.json
gsutil cp /tmp/employeecatalog.json gs://dataproc-templates_cloudbuild/integration-testing/bigtable/employeecatalog.json
gcloud storage cp /tmp/employeecatalog.json gs://dataproc-templates_cloudbuild/integration-testing/bigtable/employeecatalog.json


- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
Expand Down
7 changes: 3 additions & 4 deletions java/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if [ -z "$SKIP_BUILD" ]; then

#Copy jar file to GCS bucket Staging folder
echo_formatted "Copying ${PROJECT_ROOT_DIR}/target/${JAR_FILE} to staging bucket: ${GCS_STAGING_LOCATION}/${JAR_FILE}"
gsutil cp ${PROJECT_ROOT_DIR}/target/${JAR_FILE} ${GCS_STAGING_LOCATION}/${JAR_FILE}
gcloud storage cp ${PROJECT_ROOT_DIR}/target/${JAR_FILE} ${GCS_STAGING_LOCATION}/${JAR_FILE}
check_status $? "\n Commands to copy the project jar file to GCS Staging location went fine, thus we are good to go \n" "\n It seems like there is some issue in copying the project jar file to GCS Staging location \n"


Expand Down Expand Up @@ -122,8 +122,8 @@ if [ -n "${CATALOG}" ]; then
echo "Downloading Hbase jar dependency"
wget https://repo1.maven.org/maven2/org/apache/hbase/hbase-client/2.4.12/hbase-client-2.4.12.jar
wget https://repo1.maven.org/maven2/org/apache/hbase/hbase-shaded-mapreduce/2.4.12/hbase-shaded-mapreduce-2.4.12.jar
gsutil copy hbase-client-2.4.12.jar ${GCS_STAGING_LOCATION}/hbase-client-2.4.12.jar
gsutil copy hbase-shaded-mapreduce-2.4.12.jar ${GCS_STAGING_LOCATION}/hbase-shaded-mapreduce-2.4.12.jar
gcloud storage cp hbase-client-2.4.12.jar ${GCS_STAGING_LOCATION}/hbase-client-2.4.12.jar
gcloud storage cp hbase-shaded-mapreduce-2.4.12.jar ${GCS_STAGING_LOCATION}/hbase-shaded-mapreduce-2.4.12.jar
echo "Passing downloaded dependency jars"
OPT_JARS="${OPT_JARS},${GCS_STAGING_LOCATION}/hbase-client-2.4.12.jar,${GCS_STAGING_LOCATION}/hbase-shaded-mapreduce-2.4.12.jar"
rm hbase-client-2.4.12.jar
Expand Down Expand Up @@ -186,4 +186,3 @@ check_status $spark_status "\n Spark Command ran successful \n" "\n It seems lik

echo "We will love to hear your feedback at: https://forms.gle/XXCJeWeCJJ9fNLQS6"
echo "Email us at: dataproc-templates-support-external@googlegroups.com"

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ from Cloud Storage and the target BQ table will be overwritten.
Download jar and properties file
```
export GCS_STAGING_LOCATION=gs://bucket/path/to/staging/folder/
gsutil -u <billing-project-id> cp gs://dataplex-dataproc-templates-artifacts/dataproc-templates-1.0-SNAPSHOT.jar ${GCS_STAGING_LOCATION}
gsutil -u <billing-project-id> cp gs://dataplex-dataproc-templates-artifacts/log4j-spark-driver-template.properties ${GCS_STAGING_LOCATION}
gcloud storage cp gs://dataplex-dataproc-templates-artifacts/dataproc-templates-1.0-SNAPSHOT.jar ${GCS_STAGING_LOCATION} --billing-project=<billing-project-id>
gcloud storage cp gs://dataplex-dataproc-templates-artifacts/log4j-spark-driver-template.properties ${GCS_STAGING_LOCATION} --billing-project=<billing-project-id>
```

Create Dataplex Task
Expand Down Expand Up @@ -101,4 +101,4 @@ FROM
__table__
WHERE
id > 100
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export SUBNET=projects/<project id>/regions/<region name>/subnetworks/<subnetwor
Create a config file and upload it to Cloud Storage:

```
gsutil cp config.yaml gs://bucket/path/config.yaml
gcloud storage cp config.yaml gs://bucket/path/config.yaml
```

Start the template, and provide the "submit spark" option `--files` so that it will be made locally
Expand Down Expand Up @@ -174,4 +174,3 @@ output:
mode: Overwrite
```


4 changes: 2 additions & 2 deletions notebooks/generic_notebook/vertex_pipeline_pyspark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@
},
"outputs": [],
"source": [
"! gsutil cp main.py $GCS_STAGING_LOCATION/\n",
"! gsutil cp -r $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/dist/"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp --recursive $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/dist/"
]
},
{
Expand Down
10 changes: 5 additions & 5 deletions notebooks/hive2bq/HiveToBigquery_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@
},
"outputs": [],
"source": [
"!gsutil cp main.py $GCS_STAGING_LOCATION/\n",
"!gsutil cp $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/dist/"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/dist/"
]
},
{
Expand Down Expand Up @@ -474,7 +474,7 @@
},
"outputs": [],
"source": [
"result=subprocess.run(f\"gsutil ls {DDL_INPUT_PATH}/{INPUT_HIVE_DATABASE} | sed '$!d'\", capture_output=True, shell=True, encoding=\"utf-8\")\n",
"result=subprocess.run(f\"gcloud storage ls {DDL_INPUT_PATH}/{INPUT_HIVE_DATABASE} | sed '$!d'\", capture_output=True, shell=True, encoding=\"utf-8\")\n",
"latest_ddl_path=str(result.stdout)[:-1]\n",
"print(latest_ddl_path)"
]
Expand All @@ -500,7 +500,7 @@
},
"outputs": [],
"source": [
"!gsutil cp ../notebooks/util/global_typeconvert.config.yaml \"$latest_ddl_path\""
"! gcloud storage cp ../notebooks/util/global_typeconvert.config.yaml \"$latest_ddl_path\""
]
},
{
Expand Down Expand Up @@ -604,7 +604,7 @@
"outputs": [],
"source": [
"from google.cloud import storage\n",
"result=subprocess.run(f\"gsutil ls {gcs_output_path} \", capture_output=True, shell=True, encoding=\"utf-8\")\n",
"result=subprocess.run(f\"gcloud storage ls {gcs_output_path} \", capture_output=True, shell=True, encoding=\"utf-8\")\n",
"translated_files=result.stdout.split(\"\\n\")\n",
"all_ddls=\"\"\n",
"client = storage.Client()\n",
Expand Down
8 changes: 4 additions & 4 deletions notebooks/mssql2bq/mssql-to-bigquery-notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,10 @@
"metadata": {},
"outputs": [],
"source": [
"! gsutil cp main.py $GCS_STAGING_LOCATION/\n",
"! gsutil cp -r $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gsutil cp mssql-jdbc-6.4.0.jre8.jar $GCS_STAGING_LOCATION/jars/mssql-jdbc-6.4.0.jre8.jar\n",
"! gsutil cp spark-bigquery-with-dependencies_2.12-0.27.0.jar $GCS_STAGING_LOCATION/jars/spark-bigquery-with-dependencies_2.12-0.27.0.jar"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp --recursive $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp mssql-jdbc-6.4.0.jre8.jar $GCS_STAGING_LOCATION/jars/mssql-jdbc-6.4.0.jre8.jar\n",
"! gcloud storage cp spark-bigquery-with-dependencies_2.12-0.27.0.jar $GCS_STAGING_LOCATION/jars/spark-bigquery-with-dependencies_2.12-0.27.0.jar"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions notebooks/mssql2postgresql/mssql-to-postgres-notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,10 @@
"metadata": {},
"outputs": [],
"source": [
"! gsutil cp main.py $GCS_STAGING_LOCATION/\n",
"! gsutil cp -r $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gsutil cp mssql-jdbc-6.4.0.jre8.jar $GCS_STAGING_LOCATION/jars/mssql-jdbc-6.4.0.jre8.jar\n",
"! gsutil cp postgresql-42.2.6.jar $GCS_STAGING_LOCATION/jars/postgresql-42.2.6.jar\n"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp --recursive $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp mssql-jdbc-6.4.0.jre8.jar $GCS_STAGING_LOCATION/jars/mssql-jdbc-6.4.0.jre8.jar\n",
"! gcloud storage cp postgresql-42.2.6.jar $GCS_STAGING_LOCATION/jars/postgresql-42.2.6.jar\n"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions notebooks/mysql2spanner/MySqlToSpanner_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@
},
"outputs": [],
"source": [
"!gsutil cp target/$JAR_FILE $GCS_STAGING_LOCATION/$JAR_FILE\n",
"!gsutil cp $LOG4J_PROPERTIES_PATH/$LOG4J_PROPERTIES $GCS_STAGING_LOCATION/$LOG4J_PROPERTIES\n",
"!gsutil cp mysql-connector-java-8.0.29/mysql-connector-java-8.0.29.jar $GCS_STAGING_LOCATION/jars/mysql-connector-java-8.0.29.jar"
"!gcloud storage cp target/$JAR_FILE $GCS_STAGING_LOCATION/$JAR_FILE\n",
"!gcloud storage cp $LOG4J_PROPERTIES_PATH/$LOG4J_PROPERTIES $GCS_STAGING_LOCATION/$LOG4J_PROPERTIES\n",
"!gcloud storage cp mysql-connector-java-8.0.29/mysql-connector-java-8.0.29.jar $GCS_STAGING_LOCATION/jars/mysql-connector-java-8.0.29.jar"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions notebooks/oracle2bq/OracleToBigQuery_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,10 @@
},
"outputs": [],
"source": [
"! gsutil cp main.py $GCS_STAGING_LOCATION/dependencies/\n",
"! gsutil cp -r $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/dependencies/\n",
"! gsutil cp spark-bigquery-with-dependencies_2.12-0.27.0.jar $GCS_STAGING_LOCATION/jars/spark-bigquery-with-dependencies_2.12-0.27.0.jar\n",
"! gsutil cp $OJDBC_JAR $GCS_STAGING_LOCATION/jars/$OJDBC_JAR"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/dependencies/\n",
"! gcloud storage cp --recursive $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/dependencies/\n",
"! gcloud storage cp spark-bigquery-with-dependencies_2.12-0.27.0.jar $GCS_STAGING_LOCATION/jars/spark-bigquery-with-dependencies_2.12-0.27.0.jar\n",
"! gcloud storage cp $OJDBC_JAR $GCS_STAGING_LOCATION/jars/$OJDBC_JAR"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions notebooks/oracle2postgres/OracleToPostgres_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,10 @@
},
"outputs": [],
"source": [
"! gsutil cp main.py $GCS_STAGING_LOCATION/\n",
"! gsutil cp -r $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gsutil cp $OJDBC_JAR $GCS_STAGING_LOCATION/jars/$OJDBC_JAR\n",
"! gsutil cp postgresql-42.2.6.jar $GCS_STAGING_LOCATION/jars/postgresql-42.2.6.jar"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp --recursive $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp $OJDBC_JAR $GCS_STAGING_LOCATION/jars/$OJDBC_JAR\n",
"! gcloud storage cp postgresql-42.2.6.jar $GCS_STAGING_LOCATION/jars/postgresql-42.2.6.jar"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions notebooks/oracle2spanner/OracleToSpanner_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,9 @@
},
"outputs": [],
"source": [
"!gsutil cp target/$JAR_FILE $GCS_STAGING_LOCATION/$JAR_FILE\n",
"!gsutil cp $LOG4J_PROPERTIES_PATH/$LOG4J_PROPERTIES $GCS_STAGING_LOCATION/$LOG4J_PROPERTIES\n",
"!gsutil cp $OJDBC_JAR $GCS_STAGING_LOCATION/jars/$OJDBC_JAR"
"!gcloud storage cp target/$JAR_FILE $GCS_STAGING_LOCATION/$JAR_FILE\n",
"!gcloud storage cp $LOG4J_PROPERTIES_PATH/$LOG4J_PROPERTIES $GCS_STAGING_LOCATION/$LOG4J_PROPERTIES\n",
"!gcloud storage cp $OJDBC_JAR $GCS_STAGING_LOCATION/jars/$OJDBC_JAR"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions notebooks/postgresql2bq/postgresql-to-bigquery-notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,10 @@
},
"outputs": [],
"source": [
"! gsutil cp main.py $GCS_STAGING_LOCATION/\n",
"! gsutil cp -r $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gsutil cp postgresql-42.2.6.jar $GCS_STAGING_LOCATION/jars/postgresql-42.2.6.jar\n",
"! gsutil cp spark-bigquery-with-dependencies_2.12-0.27.0.jar $GCS_STAGING_LOCATION/jars/spark-bigquery-with-dependencies_2.12-0.27.0.jar"
"! gcloud storage cp main.py $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp --recursive $PACKAGE_EGG_FILE $GCS_STAGING_LOCATION/\n",
"! gcloud storage cp postgresql-42.2.6.jar $GCS_STAGING_LOCATION/jars/postgresql-42.2.6.jar\n",
"! gcloud storage cp spark-bigquery-with-dependencies_2.12-0.27.0.jar $GCS_STAGING_LOCATION/jars/spark-bigquery-with-dependencies_2.12-0.27.0.jar"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions python/.ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ pipeline {

// source env/bin/activate

// gsutil cp gs://python-dataproc-templates/surjitsh/hbase-site.xml .
// gcloud storage cp gs://python-dataproc-templates/surjitsh/hbase-site.xml .

// export GCS_STAGING_LOCATION=gs://python-dataproc-templates-temp
// export CATALOG='{"table":{"namespace":"default","name":"my_table"},"rowkey":"key","columns":{"key":{"cf":"rowkey","col":"key","type":"string"},"name":{"cf":"cf","col":"name","type":"string"}}}'
Expand Down Expand Up @@ -800,7 +800,7 @@ EOF


cat /tmp/cities.json
gsutil cp /tmp/cities.json gs://dataproc-templates/conf/
gcloud storage cp /tmp/cities.json gs://dataproc-templates/conf/
export GCS_STAGING_LOCATION="gs://python-dataproc-templates-temp"
export SKIP_BUILD=true
export JARS="gs://spark-lib/bigtable/spark-bigtable_2.12-0.1.0.jar"
Expand Down Expand Up @@ -834,7 +834,7 @@ EOF

source env/bin/activate

gsutil cp gs://dataproc-templates/conf/elastic.jks /tmp/
gcloud storage cp gs://dataproc-templates/conf/elastic.jks /tmp/

export GCS_STAGING_LOCATION="gs://python-dataproc-templates-temp"
export SKIP_BUILD=true
Expand Down
6 changes: 3 additions & 3 deletions python/.ci/python-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ steps:
source env/bin/activate
pip install -r requirements.txt
python3 setup.py bdist_egg --output=dist/${_PYTHON_EGG_FILE}
gsutil cp dist/${_PYTHON_EGG_FILE} ${_GCS_STAGING_LOCATION_BASE}/${_PYTHON_EGG_FILE}
gcloud storage cp dist/${_PYTHON_EGG_FILE} ${_GCS_STAGING_LOCATION_BASE}/${_PYTHON_EGG_FILE}

- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
id: gcs-to-bigquery
Expand Down Expand Up @@ -441,7 +441,7 @@ steps:
}
}
EOF
gsutil cp /tmp/cities.json gs://dataproc-templates_cloudbuild/integration-testing-python/GCSTOBIGTABLE/input/cityschema.json
gcloud storage cp /tmp/cities.json gs://dataproc-templates_cloudbuild/integration-testing-python/GCSTOBIGTABLE/input/cityschema.json
cd python
./bin/start.sh \
-- --template=GCSTOBIGTABLE \
Expand Down Expand Up @@ -489,7 +489,7 @@ steps:
- 'FILES=/tmp/elastic.jks'
script: |
#!/usr/bin/env bash
gsutil cp gs://dataproc-templates_cloudbuild/integration-testing/conf/elastic.jks /tmp/elastic.jks
gcloud storage cp gs://dataproc-templates_cloudbuild/integration-testing/conf/elastic.jks /tmp/elastic.jks
cd python
./bin/start.sh \
--properties=spark.driver.extraJavaOptions='-Djavax.net.ssl.trustStore=./elastic.jks -Djavax.net.ssl.trustStorePassword=changeit',spark.executor.extraJavaOptions='-Djavax.net.ssl.trustStore=./elastic.jks -Djavax.net.ssl.trustStorePassword=changeit' \
Expand Down
Loading
Loading