-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
When building a jarfile for JDBC templates, the GCS write stage fails. I get the following error, without exception:
[INFO] --- install:3.1.2:install (default-install) @ dataproc-templates ---
[INFO] Installing /Users/******/******/dataproc-templates/java/dependency-reduced-pom.xml to /Users/******/.m2/repository/com/google/cloud/dataproc-templates/1.0-SNAPSHOT/dataproc-templates-1.0-SNAPSHOT.pom
[INFO] Installing /Users/******/******/dataproc-templates/java/target/dataproc-templates-1.0-SNAPSHOT.jar to /Users/******/.m2/repository/com/google/cloud/dataproc-templates/1.0-SNAPSHOT/dataproc-templates-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:08 min
[INFO] Finished at: 2024-11-26T16:06:00-06:00
[INFO] ------------------------------------------------------------------------
Code build went successful, thus we are good to go
===============================================================
Copying ./../target/dataproc-templates-1.0-SNAPSHOT.jar to staging bucket: gs://******/******/dataproc-templates-1.0-SNAPSHOT.jar
I can immediately execute the following command with a successful result:
gsutil cp ./../target/dataproc-templates-1.0-SNAPSHOT.jar gs://******/******/dataproc-templates-1.0-SNAPSHOT.jar
The affected area of the script appears to be this section. If the following line is changed, I no longer encounter the above error:
<<<<<<<<
gsutil cp ${PROJECT_ROOT_DIR}/target/${JAR_FILE} ${GCS_STAGING_LOCATION}/${JAR_FILE}
========
gsutil cp ./target/${JAR_FILE} ${GCS_STAGING_LOCATION}/${JAR_FILE}
>>>>>>>>
Metadata
Metadata
Assignees
Labels
No labels