restore-datalake

subtitle

Restore the datalake from backup taken.

version

0.9.68

Description

Restore the datalake from a backup that was taken. Backup to be used for restore is identified based on the information provided in the restore request. BackupId and BackupName are mutually exclusive. Only one of them can be provided. If both are provided, BackupId takes precedence.

Synopsis

  restore-datalake
--datalake-name <value>
[--backup-id <value>]
[--backup-name <value>]
[--include-database | --no-include-database]
[--skip-ranger-hms-metadata | --no-skip-ranger-hms-metadata]
[--skip-atlas-metadata | --no-skip-atlas-metadata]
[--skip-ranger-audits | --no-skip-ranger-audits]
[--backup-location-override <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--datalake-name (string)

The name of the datalake to be restored. When backup-id is not provided, the most recent successful backup on datalake with the provided name would be used.

--backup-id (string)

The ID of the backup to be used to perform a restore. The ID could refer to backup of any datalake in the same account. This is the only way to restore from a backup that was taken on a datalake with a different name. This field is required if the –backup-location-override field is used.

--backup-name (string)

The name of the backup. When provided, the restore will be performed using the latest successful backup whose name matches the parameter, and that was taken from the datalake that is being restored.

--include-database | --no-include-database (boolean)

DEPRECATED - The database is included in the restore by default. To skip it, use the –skip-database flag.

--skip-ranger-hms-metadata | --no-skip-ranger-hms-metadata (boolean)

Skips the restore of the databases backing HMS/Ranger services. If this option is not provided, then by default the Atlas lineage will be restored if the backup used includes the Atlas lineage information.

--skip-atlas-metadata | --no-skip-atlas-metadata (boolean)

Skips the restore of the Atlas metadata. If this option is not provided, then by default the Atlas metadata will be restored if the backup used includes the Atlas metadata.

--skip-ranger-audits | --no-skip-ranger-audits (boolean)

Skips the restore of the Ranger audits. If this option is not provided, then by default the Ranger audits will be restored if the backup used includes the Ranger audits.

--backup-location-override (string)

Backup location. When provided, will be used to lookup the backup. If provided, the –backup-id parameter is required.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

accountId -> (string)

Account where the datalake exists.

restoreId -> (string)

Unique identifier of the restore operation performed.

backupId -> (string)

Unique identifier of the backup used to perform restore.

userCrn -> (string)

Crn of the user who triggered this operation.

internalState -> (string)

Provides the details of the internal state where the restore operation stands.

status -> (string)

Provide the current status.

startTime -> (string)

Time when the backup operation started.

endTime -> (string)

Time when the backup operation ended.

backupLocation -> (string)

Location of the backup to be used to perform restore.

operationStates -> (object)

Object representing the state of each service running a backup.

adminOperations -> (object)

The state of Cloudera Manager admin operations.

stopServices -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

startServices -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

hbase -> (object)

The state of each HBase backup/restore operation.

atlasEntityAuditEventTable -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

atlasJanusTable -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

solr -> (object)

The state of each Solr backup/restore operation.

edgeIndexCollection -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

fulltextIndexCollection -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

rangerAuditsCollection -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

vertexIndexCollection -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

edgeIndexCollectionDelete -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

fulltextIndexCollectionDelete -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

rangerAuditsCollectionDelete -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

vertexIndexCollectionDelete -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

database -> (object)

The state of the database backup/restore operation.

database -> (object)

Contains the status and failure reason of an operation.

status -> (string)

The status of the backup or restore operation.

failureReason -> (string)

The failure reason if the operation was not successful.

backupName -> (string)

Name of the backup.

failureReason -> (string)

Reason for the failure.

runtimeVersion -> (string)

The runtime version of the datalake when the restore was initiated.

Form Factors

public