Skip to content

Commit

Permalink
fix 5991--kyuubi failed to read atlas.rest.address
Browse files Browse the repository at this point in the history
  • Loading branch information
SwordyZhao committed Jan 18, 2024
1 parent d3a3853 commit 5de0576
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ import org.apache.atlas.ApplicationProperties
import org.apache.commons.configuration.Configuration
import org.apache.spark.kyuubi.lineage.SparkContextHelper

import java.util



class AtlasClientConf(configuration: Configuration) {

def get(entry: ConfigEntry): String = {
configuration.getProperty(entry.key) match {
case s: String => s
case l: List[_] => l.mkString(",")
case jl: util.List[_] => val jlString = jl.toString
jlString.substring(1, jlString.length - 1)
case o if o != null => o.toString
case _ => entry.defaultValue
}
Expand Down

0 comments on commit 5de0576

Please sign in to comment.