Re: Reading configuration file in Spark Scala throws error

2019-08-04 Thread Mich Talebzadeh
OK it turned up pretty simple once I established where to read the conf file in yarn mode and get the values for different keys val dbHost = conf.getString("dbHost") val dbPort = conf.getString("dbPort") val dbConnection = conf.getString("dbConnection") val namespace =

Re: Reading configuration file in Spark Scala throws error

2019-08-04 Thread Mich Talebzadeh
Many thanks Chris. In my Spark streaming I would like to use the config file to read the parameters in. Taking your example, I have val globalConfig = ConfigFactory.load() val conf = globalConfig.getConfig(sparkAppName) // extract out top level key from top level namespace

where can i see the spark app output in cluster mode?

2019-08-04 Thread zenglong chen
I try "yarn logs -applicationId application_1564655863362_19006" but get "/tmp/logs/chenzl/logs/application_1564655863362_19006 does not have any log files". Does spark only get output or logs in kill app running in cluster mode?