One Star

To develop jobs on local machine (Windows) and run these jobs on Linux

Hi All,
My requirement seems like to develop talend jobs on local machine (Windows) and run these jobs on Linux machine. To fulfill above requirement, I have installed following things.
On Window7: Talend Enterprise Data Integration Big Data edition 5.1.2 (client only), Java
On Linux: Java, Tomcat, Talend Admin Center and Talend Job Server
I am successfully configured my TAC (created project, SVN etc). And I have configured job server (hostname (Linux machine IP), command port (8000), file transfer port (8001) and monitoring port (8888)) as well and successfully able to run it and showing green signal.
In Job conductor, I have selected one job from project which is in Ready to generate state. When I click to generate button it says Connection to Generator Failed (CommandLine). And when I go to configuration section CommandLine/primary, Port section is red. Even though I have given the same port (8000) which is defineed while creating job server.
It seems commandline is not configured on my machine. To enable it, I need to run commandline-Linux file. But my question where I need to run it on window or Linux. I tried to run it on Linux machine but could not run because my client is not installed on Linux.
As of now I am successfully able to save my jobs on SVN means TAC is working fine and able to run jobs from window local machine.
Please let me know how I can fulfill above requirement.
Thanks in advance!!!
6 REPLIES
One Star

Re: To develop jobs on local machine (Windows) and run these jobs on Linux

Hi,
It looks like you are allmost there.
The jobserver and commandline are different applications. The commandline can be started from the studio folder with commandline-linux.sh. You need a copy of the studio (better rename the folder to commanline).
I think you will need to include the license file in this folder. It's best to run it from console to see if starts correct. When it starts correct you should be able to generate the job.
The documentation includes details on how to install this as a service.
One Star

Re: To develop jobs on local machine (Windows) and run these jobs on Linux

Thanks, You mean I need to copy my complete studio (in it data in GBs) folder from window to linux machine and to run commandline-linux.sh from linux. I think not then what is the use of installing client on local machine.
As I understand if we running .sh file then it would be run on linux machine. So along this file what are other things i need to copy to my linux machine. And Is any modification required in the below command because here 8002 but while cofiguring job server i had given 8000
./Talend-Studio-linux-gtk-x86 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002
Pls let me know some steps to do it.
Thanks,
One Star

Re: To develop jobs on local machine (Windows) and run these jobs on Linux

Yes, the complete studio as this contains all the libraries/compenents needed to compile the jobs.
The ports should match between Commandline and what you configured in TAC.
I think by default TAC uses 8002 for commanline and 8000,8001 and 8888 for jobserver. I suggest you stick to this Unless you have a specific reaoson to modify this.
One Star

Re: To develop jobs on local machine (Windows) and run these jobs on Linux

ok, then what is the use of installing talend client on local (windows). I can instlall everything on linux and work from there only. But I do not want that. I want to work locally and run jobs on linux after deploying it on execution server.
As I told you my jobs are saving on SVN server and my local machine (in workspace folder) both are in sync. And I access my project remotely means from SVN server.
Pls confirm below things
-Do I need to take copy of complete studio including workspace folder.
-Copy of studio folder would be one time activity. If I do any thing in jobs (creating/deleting/modifying etc) and it's not going effect anything. Means if i created new job so i would be able to run it successfully from my unix machine without taking anycopy from local.
Thanks,
Imran
One Star

Re: To develop jobs on local machine (Windows) and run these jobs on Linux

Hi Inabi,
Once you have the CommandLine Up & running, next thing is you configure that in the TAC as 'saukema' suggested.
Once you have CommandLine up, you just create the Project in the TAC using SVN then create the Jobs in TAC. After deploying you can generate and deploy into Job server.

-Do I need to take copy of complete studio including workspace folder.
No, you don't need workspace, becuase when you create the project in TAC using SVN talend will create workspace (same as ur development).
-Copy of studio folder would be one time activity. If I do any thing in jobs (creating/deleting/modifying etc) and it's not going effect anything. Means if i created new job so i would be able to run it successfully from my unix machine without taking anycopy from local.
Yes, its a one time. (Projects connected to SVN from TAC).
Hope this will help .
Ramesh
One Star

Re: To develop jobs on local machine (Windows) and run these jobs on Linux

Thanks Ramesh!
Now I am sucessfully able to commandline. But facing new issue as not able to add jobs into job conductor.
When I goto execution task where I am able to select project, trunk branch and execution server as well. But when I click on "Select Job" then it does not give me list of jobs available in selected project. It always in loading state. Please let me know why it's in loading state.