Skip to content

Commit

Permalink
add env support for sqoop jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
akulgoel96 committed Dec 19, 2024
1 parent b4f1c26 commit d7a22a1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.razorpay.spark.jdbc.common

import scala.io.Source

object Constants {
final val HUDI_DB_PREFIX = "realtime_"

Expand All @@ -12,7 +14,10 @@ object Constants {
// seconds
final val QUERY_TIMEOUT = 10800

final val CREDSTASH_TABLE_NAME = "credstash-prod-emr-sqoop"
val env_file_path = "/opt/env"
val env = Source.fromFile(env_file_path).getLines().mkString

final val CREDSTASH_TABLE_NAME = s"credstash-$env-emr-sqoop"

final val CREATED_DATE = "created_date"
final val CREATED_AT = "created_at"
Expand Down

0 comments on commit d7a22a1

Please sign in to comment.