Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm using talend enterprise edition, I'm trying to use system environment variables as parameters for my jobs. when using system.getenv("paramname") and runnig the job, I'm getting the values from my local machine. what I need to do to to get the values from the talend server machine. The idea is to centrally add all the parameters as environment variables in the talend server and all users should use those env variables as parameters. any input is appreciated.
When it comes to folder and files you should configure your system so that you have access to them from wherever you are likely to be running your jobs. Having files in a shared location is what I generally do. It can be a pain to configure, but once sorted it makes life so much easier
The job will get the environment variables of whatever machine runs it. If you want to use environment variables you will need to set them up on all machines that are running the jobs (the job servers and runtimes). You *could* run the jobs through the Studio on a Remote Jobserver and ensure the environment variables are on that machine. That would probably work
Unfortunately, there is no easy way, or Java API, I know to get the Server Environment Variables rather than the local machine environment variables.
However, you can design this another way: Create a DB table or File, and have these settings stored there. Thus all jobs will read these variable values in their PreJob when starting up.
Hi
Thanks for responding, I tried adding the remote server in the preference section and set the "Target Exec" to the remote server, but the job goes to "Not responding" state at "Building Process" and it never comes back. any idea?
thanks
mj
Have you followed these instructions.....
https://help.talend.com/reader/Z6nEoVnqAU2j~MFxYHYeOg/QpXlNHluulwQCArE8t8wfQ
It works after setting the "Enable SSL" to true. Thanks, One problem is, how can we refer to files when running jobs from remote server.
Suppose if I have file in another server or in local, when the job runs in remote server, how it will read or write to those files. assuming i'm using tfileoutputdelimited component, how this component has to be configured?
When it comes to folder and files you should configure your system so that you have access to them from wherever you are likely to be running your jobs. Having files in a shared location is what I generally do. It can be a pain to configure, but once sorted it makes life so much easier