• Index
  •  » Talend Enterprise Data Integration » General questions
  •  » Use multiply "job-context-param" in commandline executeJobOnServer

#1 2012-06-04 13:50:52

PM_param
Member
Registered: 2012-02-22
Posts: 44

Use multiply "job-context-param" in commandline executeJobOnServer

Hello,

I deploy and launch a job to an Server with the commandline. I success to pass one context but not several.

My command with one context :
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec  -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv


My command with two contexts :
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec  -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp "name=file_test.csv new1=pm"

When I have several contexts I have this error : "Unexpected new1=pm while processing"

What is the good syntax for doing that ??


Thank you,
Carole

Offline

#2 2012-06-05 07:18:01

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Use multiply "job-context-param" in commandline executeJobOnServer

Hi Carole

The command should be like this.
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec  -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv new1=pm

There is no double quotation.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-06-05 10:18:34

PM_param
Member
Registered: 2012-02-22
Posts: 44

Re: Use multiply "job-context-param" in commandline executeJobOnServer

Hi Pedro,

It doesn't work with this syntax. I have the same error :
"Unexpected new1=pm while processing"

(I've changed the name of my second context variable. new1 become suffix)


Best Regards,
Carole

Offline

#4 2012-06-05 11:42:11

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Use multiply "job-context-param" in commandline executeJobOnServer

Hi Carole

Try this please. I'm sure it will work fine.
./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Projet -ul Login -up Psw deployJobToServer Job -es ServerExec  -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job -jcp name=file_test.csv -jcp new1=pm

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-06-05 14:01:50

PM_param
Member
Registered: 2012-02-22
Posts: 44

Re: Use multiply "job-context-param" in commandline executeJobOnServer

:-S it doesn't work yet.

I have this error :
Unexpected value "suffix=pm" found while processing  -jcp

That's strange, I don't find any example of the same case in Talend documentation...
Do you think it's a bug ?


Thank you for your help,
Carole

Offline

  • Index
  •  » Talend Enterprise Data Integration » General questions
  •  » Use multiply "job-context-param" in commandline executeJobOnServer

Board footer

Powered by FluxBB