How do i pass variables to spark job using Envelope
Hello!
In my Envelope pipeline, I need to compare two Hive tables. Instead of hardcoding the tables in the .conf file, I would like to pass which tables I'm going to compare. I tried using spark.yarn.appMaster.varName but it doesn't seem to work. I'm running CDH 5.13.3 with Java 1.8 on a Centos VM.
This is what the script that runs the spark job looks like:
#!bin/bash
sudo -u hdfs spark2-submit \
--master yarn \
--deploy-mode client \
--conf spark.yarn.appMaster.Env.tableA=dbA.tableA \
--conf spark.yarn.appMaster.Env.tableB=dbB.tableB \
envelope-0.7.2.jar comparison.conf
Part of my .conf file:
application{name = comparison}
steps{
tableA{
type = hive
table = ${tableA}
}
tableB{
type = hive
table = ${tableB}}
}

