Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect local path when copying compiled jar to GCS bucket #1028

Open
sammy-hughes opened this issue Nov 26, 2024 · 1 comment
Open

Incorrect local path when copying compiled jar to GCS bucket #1028

sammy-hughes opened this issue Nov 26, 2024 · 1 comment

Comments

@sammy-hughes
Copy link

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}
>>>>>>>>
@surjits254
Copy link
Collaborator

Hi @sammy-hughes acknowledged. Will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants