AWSGlueDocker忽略了customJdbcDriverClassName和customJdbcDriverS3Path。
创始人
2024-09-25 15:01:35
0

在AWS Glue Docker中使用自定义JDBC驱动程序时,需要在作业定义中指定customJdbcDriverClassName和customJdbcDriverS3Path。以下是示例代码:

val glueContext = GlueContext(spark.sparkContext)
val connectionDetails = JsonUtils.fromJson[Map[String, Any]](awsSecretsManagerSecret.value)
val jdbcDriverClass = connectionDetails.getOrElse("jdbc_driver_class",
  throw new IllegalArgumentException("JDBC driver class name not found."))
  .asInstanceOf[String]
val tempDir = connectionDetails.getOrElse("temp_dir", "/tmp").asInstanceOf[String]
val jdbcUrl = connectionDetails.getOrElse("jdbc_url",
  throw new IllegalArgumentException("JDBC URL not found."))
  .asInstanceOf[String]
val s3CustomDriverPath = connectionDetails.getOrElse("s3_custom_driver_path",
  throw new IllegalArgumentException("S3 custom driver path not found."))
  .asInstanceOf[String]

这些变量可以传递给DynamicFrame对象以执行ETL操作。

相关内容

热门资讯

一分钟了解!hh poker透... 一分钟了解!hh poker透视器下载,aapoker辅助工具安全吗,揭秘教程(一直真的有挂)-哔哩...
透视有挂!hhpoker德州挂... 【福星临门,好运相随】;透视有挂!hhpoker德州挂真的有吗,werplan透视挂,2026新版(...
程序员教你!hhpoker德州... 程序员教你!hhpoker德州机器人,hhpoker德州辅助,技巧教程(一贯真的是有挂)-哔哩哔哩;...
玩家必看教程!wpk是真的还是... 玩家必看教程!wpk是真的还是假的,wepoker透视脚本,透视教程(一贯确实有挂)-哔哩哔哩;亲,...
发现一款!wepokerplu... 发现一款!wepokerplus开挂,wpk官网下载链接,辅助教程(一直真的是有挂)-哔哩哔哩;1、...
揭秘几款!hhpoker可以控... 揭秘几款!hhpoker可以控制牌吗,wepoker透视脚本是什么,攻略教程!(其实是有挂的)-哔哩...
一分钟快速了解!wejoker... 一分钟快速了解!wejoker透视方法,wepoker线上大神,必备教程(果然确实有挂)-哔哩哔哩;...
一分钟了解!hhpoker免费... 一分钟了解!hhpoker免费透视脚本,pokemmo辅助器,透牌教程(一贯确实有挂)-哔哩哔哩;1...
透视规律!wepoker怎么买... 透视规律!wepoker怎么买辅助,wepoker分析,透牌教程(原来有挂)-哔哩哔哩;1.wepo...
我来向大家传授!wejoker... 我来向大家传授!wejoker开挂,竞技联盟辅助插件,分享教程(原来真的是有挂)-哔哩哔哩;竞技联盟...