This topic shows some workflow examples using the DP CLI.
The --excludePlugins flag (abbreviated as -ep) specifies a list of Data Enrichment modules to exclude when enrichments are run. This flag should be used only enrichments are being run as part of the workflows (for example, with the --excludePlugins flag).
./data_processing_CLI --excludePlugins <excludeList>where excludeList is a space-separated string of one or more of these Data Enrichment canonical module names:
./data_processing_CLI --table masstowns --runEnrichment --excludePlugins reverse_geo_tagger
For details on the Data Enrichment modules, see Data Enrichment Modules.
./data_processing_CLI --pingCheck
Ping ok data_processing_CLI finished with state SUCCESS
./data_processing_CLI --healthCheck
... [2015-07-14T14:52:32.270-04:00] [DataProcessing] [INFO] [] [com.oracle.endeca.pdi.logging.ProvisioningLogger] [tid:main] [userID:fcalvill] Ping check time elapsed: 7 ms data_processing_CLI finished with state SUCCESS
health=ok, v1="db:ok; yarn:ok; hdfs:ok" data_processing_CLI finished with state SUCCESS
./data_processing_CLI get-job-status <jobId>
./data_processing_CLI -d default -t warrantyclaims ... New collection name = MdexCollectionIdentifier{databaseName=edp_cli_edp_997d2151-b694-4bd2-88be-732461731b6c, collectionName=edp_cli_edp_997d2151-b694-4bd2-88be-732461731b6c} jobId: 950b2d4a-20cf-4e9d-9f5f-5cf713ade145Note that jobs started from Studio do not display a job ID, which means you cannot get their status.
./data_processing_CLI get-job-status 950b2d4a-20cf-4e9d-9f5f-5cf713ade145
./data_processing_CLI get-job-status 950b2d4a-20cf-4e9d-9f5f-5cf713ade145 Job status for job id: 950b2d4a-20cf-4e9d-9f5f-5cf713ade145 is FAILED
./data_processing_CLI cancel-job <jobId>
Could not cancel job with id: 123 because it could not be found.
Could not cancel job with id: 123 because it has already succeeded.
Could not cancel job with id: 123 because it has already failed.
Could not cancel job with id: 123 because of error: <error_message>
Job status for job id: 123 is CANCELLED
Note that the output in Case 5 will be the same as a get-job-status command.