From ce9b41ab380d79d396a90e4e78f42be4b7057e64 Mon Sep 17 00:00:00 2001 From: SgtBurns Date: Fri, 29 Nov 2024 11:03:19 +0530 Subject: [PATCH] DP-123 sg changes --- .../src/main/scala/com/razorpay/spark/jdbc/JDBCImport.scala | 2 +- .../main/scala/com/razorpay/spark/jdbc/common/Constants.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/JDBCImport.scala b/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/JDBCImport.scala index e5dd167d4..d009cc45d 100644 --- a/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/JDBCImport.scala +++ b/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/JDBCImport.scala @@ -355,7 +355,7 @@ object Credentials { def getSecretValue(secretName: String, table_name: String = Constants.CREDSTASH_TABLE_NAME ): String = { val key: String = - s"credstash -t $table_name -r ap-south-1 get $secretName".!!.trim + s"credstash -t $table_name -r ap-southeast-1 get $secretName".!!.trim key } } diff --git a/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/common/Constants.scala b/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/common/Constants.scala index d42693582..49ca4d5af 100644 --- a/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/common/Constants.scala +++ b/sql-delta-import/src/main/scala/com/razorpay/spark/jdbc/common/Constants.scala @@ -12,7 +12,7 @@ object Constants { // seconds final val QUERY_TIMEOUT = 10800 - final val CREDSTASH_TABLE_NAME = "credstash-prod-emr-sqoop" + final val CREDSTASH_TABLE_NAME = "kubestash-de" final val CREATED_DATE = "created_date" final val CREATED_AT = "created_at"