ADD ARCHIVE

Adds an archive file to the list of resources. The given archive file should be one of .zip, .tar, .tar.gz, .tgz and .jar. To list the archive files that have been added, use LIST ARCHIVE.

Since: Databricks Runtime 10.0

Syntax

ADD [ARCHIVE | ARCHIVES] file_name [...]

Parameters

  • file_name

    The name of an ARCHIVE file to add. It could be either on a local file system or a distributed file system.

Examples

> ADD ARCHIVE /tmp/test.tar.gz;

> ADD ARCHIVE "/path/to/some.zip";

> ADD ARCHIVE '/some/other.tgz';

> ADD ARCHIVE "/path with space/abc.tar" ADD ARCHIVE "/path with space/def.tar";