还原 AppCenter - Teradata AppCenter

Teradata® AppCenter 用户指南

Product
Teradata AppCenter
Release Number
1.6
Published
2018 年 9 月
Language
中文 (简体)
Last Update
2018-11-27
dita:mapPath
zh-CN/xhn1530875955586.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-1111
Product Category
Analytical Ecosystem
  1. 从命令界面登录到 AppCenter。
  2. 使用以下命令卸载 AppCenter:appctl platform uninstall --name appcenter
  3. 运行命令 appctl platform restore --name <backup-file-name> –localPath <path-to-local-backup> --decKey <backupDecKey> --migrateFrom 1.4.0.0 --localPath <path_chart_bundle> --registry --set key1=val1, key2=val2,并考虑以下注意事项:
    参数 注意事项
    --chart 指定还原图表包(. tgz 文件)路径的必需参数。
    --name 备份文件名。必须指定 --name--localPath

    如果使用 --name,则会还原集群中的同名备份。

    --localPath 本地备份文件的绝对路径。必须指定 --localPath--name

    如果可以从本地备份文件还原,请使用 --localPath

    如果使用 --localPath,则还原本地备份文件。

    --decKey 可选标志,用于覆盖缺省加密密钥。
    --migrateFrom 用于从不同版本的 AppCenter 还原的可选标记。例如,要从 AppCenter 1.4 迁移:

    --migrateFrom 1.4.0.0

    --registry 在还原中包括注册表(如果存在)的可选标记。缺省情况下禁用。
    -f, --values valueFiles 可选标记,用于指定 YAML 文件中的值以覆盖图表缺省设置。可以使用每个 -f 标记指定多个文件。
    --set stringArray 设置命令行上的值的可选标记。可以指定多个值或用逗号分隔各个值。例如:

    key1=val1, key2=val2

  4. [可选] 要按从新到旧的逆时序显示当前平台部署的存续期内所有还原作业的状态,请运行命令 appctl platform restore status --filterBy <Success,Failed,Running> 并考虑以下注意事项:
    参数 注意事项
    --filterBy 根据指定的状态筛选 restore status 命令输出的可选标记。状态选项包括:
    • Success
    • Failed
    • Running
    为该命令的每次运行指定一个状态选项。例如:

    appctl platform restore status --filterBy Running

    将显示所有还原的状态信息。例如:
    Job: <job1> started at <time-1> to restore from backup with name: <backup-1> has status: Success
    Job: <job2> started at <time-2> to restore from backup with name: <backup-2> has status: Failed
    Job: <job3> started at <time-3> to restore from backup with name: <backup-3> has status: Running
  5. 通过运行下列命令之一启动 AppCenter:appctl platform install --name appcenter --namespace

    appcenter ./appcenter-1.5.0.0+latest.tgz -f appcenter-override.yaml