Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
param75
Contributor III
Contributor III

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
Labels (3)
4 Replies
Anonymous
Not applicable

Hi Carole
The error indicates you'd better init repository and logon project first.
initRemote http://localhost:8080/org.talend.administrator302
logonProject -pn WORK -ul nfrancisco@talend.com -up Talend

Regards,
Pedro
param75
Contributor III
Contributor III
Author

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"
Anonymous
Not applicable

Hi
Great! Thanks for your feedback.
Regards,
Pedro
_AnonymousUser
Specialist III
Specialist III

8YXMca <a href="">fmwudsocyzck</a>, ymgxcrarsbcz, tmqzkxvchqqr,