1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
GlueContext.extract_jdbc_conf method might help your use-case.
With this method, you can retrieve JDBC parameters from your existing Glue connections.
jdbc_conf = glue_context.extract_jdbc_conf(connection_name='<Glue connection name>')
user = jdbc_conf['user']
password = jdbc_conf['password']
See details here.
https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-glue-context.html
답변함 4년 전