0

我想执行 URL 下面文档中解释的“cpdctl dsjob”。

https://dataplatform.cloud.ibm.com/docs/content/dstage/dsnav/topics/cli.html

我从下面的 URL 下载 cpdctl 但不能使用 dsjob 选项。

https://github.com/IBM/cpdctl/releases/

是否有使用 dsjob 选项的附加程序?

我设置配置并运行“cpdctl job run”,但没有出现“cpdctrl dsjob”选项。

# ./cpdctl dsjob
Error: unknown command "dsjob" for "cpdctl"

Did you mean this?
        job

Run 'cpdctl --help' for usage.
unknown command "dsjob" for "cpdctl"

你是这个意思吗?工作

4

1 回答 1

0

我发现使用 dsjob 选项需要 CPDCTL_ENABLE_DSJOB 环境。

导出 CPDCTL_ENABLE_DSJOB=1

# ./cpdctl dsjob Error: unknown command "dsjob" for "cpdctl"

Did you mean this?
        job

Run 'cpdctl --help' for usage.
unknown command "dsjob" for "cpdctl"

Did you mean this?
        job

# export  CPDCTL_ENABLE_DSJOB=1
#  ./cpdctl dsjob
The IBM DataStage service provides APIs to manage jobs, this command provides some of legacy dsjob commandline functionality.

Usage:
  cpdctl dsjob [command]

Available Commands:
  lprojects     List Projects.
  ljobs         List Jobs.
  run           Manage Job Runs.
  logdetail     Print DataStage job run logs.
  logsum        Print Summary of Datastage job run logs.
  lognewest     Returns newest event id from DataStage job run logs.
  jobinfo       List Job Information.
  migrate       Migrate a exported legacy isx file into nextgen Datastage project.
  lflows        List DataStage flows.
  compile       Compile DataStage flows.
  lenvs         List Environments.
  lhws          List Hardware Specifications.
  env-create    Create Environment.
  hwspec-create Create Hardware Specification.

Flags:
  -h, --help   help for dsjob

Global Flags:
      --context string
      --cpdconfig string
      --output-path string
      --raw-output

Use "cpdctl dsjob [command] --help" for more information about a command.
#
于 2021-10-05T15:14:34.763 回答