• Index
  •  » Talend Enterprise Data Integration » General questions
  •  » Use the commandline deployJobToServer

#1 2012-06-04 10:51:59

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

Use the commandline deployJobToServer

Hello,

I'm trying to using the commandline deployJobToServer. My goal is to be able from a job to deploy another job on another server. After I will launch them on this another servers with a specific context.

So I'm trying to use this command on my job (cf : deploy_ssh) :
"./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine deployJobToServer test_deploy –es Doris -jv Latest -jc Default –jactc"

I have this error :
FAILED at Mon Jun 04 10:46:00 CEST 2012
exception : org.talend.commandline.client.command.CommandStatusWrapException: java.lang.IllegalStateException: should be logged on a repository
        at org.talend.commandline.command.CommandProcessor.checkLogged(CommandProcessor.java:233)
        at org.talend.commandline.command.CommandProcessor.beforeDeployJobToServer(CommandProcessor.java:444)
        at org.talend.commandline.command.CommandProcessor.deployJobToServer(CommandProcessor.java:434)
        at org.talend.commandline.command.ExtensionCommandSwitch.caseDeployJobToServerCommand(ExtensionCommandSwitch.java:129)
        at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:49)
        at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:159)
        at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70)
        at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:52)
        at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:33)
        at org.talend.commandline.cli.CommandLineHandler.process(CommandLineHandler.java:239)
        at org.talend.commandline.cli.CommandLineHandler.execute(CommandLineHandler.java:173)
        at org.talend.commandline.cli.CommandLineHandler.execute(CommandLineHandler.java:162)
        at org.talend.commandline.mode.NormalCommandLine.start(NormalCommandLine.java:32)
        at org.talend.commandline.CommandLineApplication.start(CommandLineApplication.java:92)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

The job is present on another server. Cf deploy_job_conductor.

Do you know what options I must used to succeed ?


Thank you for your help,
Carole

Last edited by PM_param (2012-06-04 10:52:37)

Offline

#2 2012-06-04 11:13:08

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

Re: Use the commandline deployJobToServer

Hi Carole

The error indicates you'd better init repository and logon project first.

Code:

initRemote http://localhost:8080/org.talend.administrator302
logonProject -pn WORK -ul nfrancisco@talend.com -up Talend

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-06-04 13:44:42

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

Re: Use the commandline deployJobToServer

Thank you. It works !

For information, I use in the same commandline the deploy and executeJobOnServer :

"./Talend-Studio-linux-gtk-x86_64 -nosplash -application org.talend.commandline.CommandLine initRemote URL_TAC logonProject -pn Project -ul Login -up Psw deployJobToServer Job -es ServerExec  -jv JobVersion -jc Context -jactc -un Login -pd Psw executeJobOnServer Job"

Offline

#4 2012-06-05 03:35:11

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

Re: Use the commandline deployJobToServer

Hi

Great! Thanks for your feedback.

Regards,
Pedro


Only Paranoid Survive.

Offline

  • Index
  •  » Talend Enterprise Data Integration » General questions
  •  » Use the commandline deployJobToServer

Board footer

Powered by FluxBB