ADD ARCHIVE

Description

ADD ARCHIVE can be used to add an archive file to the list of resources. The given archive file should be one of .zip, .tar, .tar.gz, .tgz and .jar. The added archive file can be listed using LIST ARCHIVE.

Syntax

  1. ADD { ARCHIVE | ARCHIVES } file_name [ ... ]

Parameters

  • file_name

    The name of the archive file to be added. It could be either on a local file system or a distributed file system.

Examples

  1. ADD ARCHIVE /tmp/test.tar.gz;
  2. ADD ARCHIVE "/path/to/some.zip";
  3. ADD ARCHIVE '/some/other.tgz';
  4. ADD ARCHIVE "/path with space/abc.tar";
  5. ADD ARCHIVES "/path with space/def.tgz" '/path with space/ghi.zip';