After exporting the talend job, I want to modify the code (java).
导出talend作业后,我想修改代码(java)。
Example I want to change the table name, Database name and also want to pass parameter through command line.
示例我想更改表名,数据库名,还希望通过命令行传递参数。
If I add the line System.out.println("SANDY")
in main function (java source) and on terminal doing $ bash jobname.sh
, where SANDY will be printed?
如果我在main函数(java源代码)和终端上添加行System.out.println(“SANDY”)和$ bash jobname.sh,那么将打印SANDY?
1 个解决方案
#1
1
This is why there is context varibles in Talend, you can develop your job using context variables to avoid hard coded values then load context from external file or prompt user to enter these values and you can also define multiple contexts, please see talend help.
这就是Talend中存在上下文变量的原因,您可以使用上下文变量来开发您的工作以避免硬编码值然后从外部文件加载上下文或提示用户输入这些值,您还可以定义多个上下文,请参阅talend帮助。
#1
1
This is why there is context varibles in Talend, you can develop your job using context variables to avoid hard coded values then load context from external file or prompt user to enter these values and you can also define multiple contexts, please see talend help.
这就是Talend中存在上下文变量的原因,您可以使用上下文变量来开发您的工作以避免硬编码值然后从外部文件加载上下文或提示用户输入这些值,您还可以定义多个上下文,请参阅talend帮助。