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.
Solved! Go to Solution.
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.
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?
Have you followed these instructions.....
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?