Building the job is not working from the command line
Our approach is to create Talend jobs automatically and then run these jobs using command line what we are doing is the following:
1. Create the Job Scripts dynamically using java and the inputs from the Database.
2. Run the below commands in order to create a dummy project, create a job under this project using the jobScript generated and then Build the job in order to run the jobs anytime it is needed, below is the code we are using to create the project, create job and build:
a. Talend-Studio-win32-x86.exe -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace initLocal createProject -pn Applicant_List_Stg_Master -pd Talend -pl java -pa Talend b. Talend-Studio-win32-x86.exe -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-wor
There are multiple ways of interacting with the commandline. These are document in Appendix A.2 of the TAC User's Guide. You are currently using Stand-alone mode. This is pretty inefficient since each time you are in effect spinning up the commandline, sending commands, and then shutting it down again. It is also very hard to debug or even to read the ultra long command lines. However, if you do follow this approach note that you need to separate commands with a ";". (This factoid is somewhat hidden since it is only mentioned in the output of the help command itself.
I would suggest first that you use Shell mode to interactively type in the commands to find the correct syntax. This will save you a lot of time. Capture the commands into a script file and then test again using script mode.
Same goes for the jobscript itself. Since you have an Enterprise version of the product you have access to the JobScript pane in the designer. So you can just create a new empty job, paste in your script, and see if it compiles. Conversely, you can design the same job visually in the designer, go to the JobScript tab, and copy out the JobScript to use as a template for your own design.
Hi, based on your error log it seems like it would be an issue with the jobscript itself. Typically this is easily fixed by as eost mentioned placing your jobscript into an empty job, in the jobscript tab. The error message will surface as a red rectangle next to the offending line. If you would post your jobscript to the forum, I can take a quick look and provide the fix for you. I have been doing jobscripting for quite some time and this looks like a small error in the jobscript syntax.
The jobscript code editor should also work for you if you paste your jobscript there as well.
Best Regards