RE: How do we execute dataflow/jobflow through cli command?

How do we execute dataflow/jobflow through cli command?

Karthik78 Beginner Asked on July 12, 2019 in Tools & Utilities.
Add Comment
1 Answers

Command: Execute

dicmd execute [-u userName -w userPassword] -c start|abort|stop|rerun|restartfromfailure -p ProjectName -l LayerName [-d [DataFlowName | DataStreamName] |-s JobFlowName] [-j jobName] [-f ParamName] [-param Parameters] [-i instanceName] [-email] [-mailTo mail@example.com] [-cc mail@example.com] [-subject subject] [-message message] [-logs]

whatever the content with in [ ] those are optional .

[-u userName -w userPassword] if we set in environment variables -u and -w not required otherwise we must mention in command.

Dataflow/Datastream :

Command : start

dicmd execute -u userName -w userName -c start -p projectname -l layername -d dataflowname/ datastreamname

with -c start if we run this command data flow execution will start .

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we miss any of these diyotta will throw syntax error.

Error:

Error While Executing Dataflow : [ Invalid command Syntax :

Missing Arguments : -d(JobFlowName)/-l layername/-p projectname/-c start

Execute Command, requires -c, -p, -l, -s options.]

Command : abort

dicmd execute -u userName -w userName -c abort -p projectname -l layername -d dataflowname/ datastreamname

with -c abort if we run this command data flow/ data stream execution will abort .

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Command : stop

dicmd execute -u userName -w userName -c stop -p projectname -l layername -d dataflowname/ datastreamname

with -c stop if we run this command data flow/ data stream execution will stop .

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Command : rerun

dicmd execute -u userName -w userName -c rerun -p projectname -l layername -d dataflowname/ datastreamname

with -c rerun if we run this command data flow/ data stream execution will rerun.

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Command : restartfromfailure

dicmd execute -u userName -w userName -c rerun -p projectname -l layername -d dataflowname/ datastreamname

with -c restartfromfailure if we run this command data flow/ data stream execution will restartfromfailure.

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Jobflow :

Command : start

dicmd execute -u userName -w userName -c start -p projectname -l layername -S jobflowname

with -c start if we run this command job flow execution will start .

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Command : abort

dicmd execute -u userName -w userName -c abort -p projectname -l layername -S jobflowname

with -c abort if we run this command job flow execution will abort .

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Command : stop

dicmd execute -u userName -w userName -c stop -p projectname -l layername -S jobflowname

with -c stop if we run this command job flow execution will stop .

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error

Command : rerun

dicmd execute -u userName -w userName -c rerun -p projectname -l layername -S jobflowname

with -c rerun if we run this command job flow execution will rerun

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

Command : restartfromfailure

dicmd execute -u userName -w userName -c rerun -p projectname -l layername -d jobflowname

with -c restartfromfailure if we run this command job flow execution will restartfromfailure.

here in above command all are mandatory to give in command(-c,-p,-l,-d),if we remove any of these diyotta will throw syntax error.

if jobflow/dataflow failed or rerun want to get mail we can add below arguments

[-email] [-mailTo mail@example.com] [-cc mail@example.com] [-subject subject] [-message message] [-logs]

If we miss -mailTo/-cc diyotta will throw below error:

Error:

Invalid command Syntax :

Missing Arguments : -mailTo(mail@example.com)/-cc(mail@example.com)

Execute Command, requires -mailTo/-cc option.

Expert Answered on July 12, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.