Preamble
Advantage: Choose your environment more easily (Develop, Production, etc...) when your job is ready.
Create a group of context - With Security
To create a group of context, follow the article Create a group of context.
But, when you add the variable, just add the column "NAME" and "TYPE".
It's very important that the column "Value" remains empty.
Example : Use a group of context - With Security (through the platform "Saagie")
- Compress the file containing your job
- Add the file to the platform "Saagie"
- Change your command on the "Command to launch job":
sh {file} --context_param IP_Impala=$IP_IMPALA --context_param Port_Impala=$PORT_IMPALA --context_param IP_HDFS=$IP_HDFS --context_param Port_HDFS=$PORT_HDFS
Example : Use a group of context - With Security AND Use "Environment Variables" (through the platform "Saagie")
- Compress the file containing your job
- Add "Environment Variables" :
- In the platform "Saagie", Click on "Settings"
Create a variable
- Click on "Add Variable"
- Add the file to the platform "Saagie"
- Change your command on the "Command to launch job":
sh {file} --context_param IP_Impala=$IP_IMPALA --context_param Port_Impala=$PORT_IMPALA --context_param IP_HDFS=$IP_HDFS --context_param Port_HDFS=$Port_HDFS
Comments
0 comments
Article is closed for comments.