Skip to content

INFO Required : python/java dataproc_templates GCSTOJDBC, how to pass SSL certificate details #812

Answered by nj1973
vinoth5490 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Vinoth,

Assuming you are running the template from the command line then you should be able to pass the TLS files through to Dataproc Serverless using the FILES environment variable.

If you check bin/start.sh you should hopefully see this code which shows that values in $FILES will be passed into gcloud via the --files option.

if [ -n "${FILES}" ]; then
  OPT_FILES="--files=${FILES}"
fi

You would then need to pass an appropriate JDBC connection string via the --gcs.jdbc.output.url template option.

Please give this a try and let me know how you get on, or if I misunderstood the problem please provide further details.

Thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by surjits254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants