Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Facing issue to include default context values while running only standalone _run.sh and .jar file in unix server.

Hello Support team,

I am facing issue regarding default context values while deploying run.sh and .jar job in Unix server.

As some of the default values being defined under context tab in talend jobbut after build the job and move only supported libs, _run.sh  and .jar files, Its not taking context default values.Please hlp to provide solution on this, is there any settings do we need to make in Talend. as i am already calling one parameter file with component tcontextLoad.

for eg of one Talend job is 

java -cp .:$ROOT_PATH:$ROOT_PATH/../lib/routines.jar:$ROOT_PATH/../lib/antlr-runtime-3.5.2.jar:$ROOT_PATH/../lib/dom4j-1.6.1.jar:$ROOT_PATH/../lib/jakarta-oro-2.0.8.jar:$ROOT_PATH/../lib/log4j-1.2.16.jar:$ROOT_PATH/../lib/ojdbc6.jar:$ROOT_PATH/../lib/org.talend.dataquality.parser.jar:$ROOT_PATH/../lib/talend-oracle-timestamptz.jar:$ROOT_PATH/../lib/talend_file_enhanced_20070724.jar:$ROOT_PATH/../lib/talendcsv.jar:$ROOT_PATH/../lib/tns.jar:$ROOT_PATH/amldq_ktc_0_1.jar: p_aml.amldq_ktc_0_1.AMLDQ_KTC --context=Default "$@"

 

Please provide the solution asap.

Thanks in advance.

Labels (2)
7 Replies
manodwhb
Champion II
Champion II

Have you uses context groups? Like different environments Dev,Uat and Prod.
Anonymous
Not applicable
Author

yes am using context groups, but also using external parameter file where all environment based db connection was defined. I am able to load that context file in unix server but problem is how to load default context/context group values while execute talendjob_run.sh
manodwhb
Champion II
Champion II

Can you do one test that without using context group, just create context without groups and load those contexts from file using tcontextload?
Anonymous
Not applicable
Author

already using tcontextload from Context file but here issue is as we are moving only run.sh and .jar file in unix server, how to use default.properties that placed under context folder sometimes we need to use static value from context group/ context table.
manodwhb
Champion II
Champion II

You need to move context folder too. Otherwise it will not find the context file.
Anonymous
Not applicable
Author

Thanks for your response. but as we are going to execute run.sh standalone file in unix server so want to avoid context folder explictly. apart this want to understand where to place this context folder in unix server. for eg i have Talend jar folder under this placed .jar, run.sh and all lib. if placing context folder still not taking.
pls let me know in details how to work with context folder in server.
we have p_aml.amldq_ktc_0_1.AMLDQ_KTC --context=Default "$@" defined in run.sh file.
manodwhb
Champion II
Champion II

I suggest you take the hole zip file and move to the server you can extract after extract you will find context folder under the job name of the folder.