Del via


addArtifacts

Adds artifact(s) to the client session. Currently only local files are supported.

addArtifact is an alias for addArtifacts.

Syntax

addArtifacts(*path, pyfile=False, archive=False, file=False)

Parameters

Parameter Type Description
*path str Artifact URIs to add.
pyfile bool, optional Whether to add them as Python dependencies such as .py, .egg, .zip, or .jar files. These are inserted directly into the path when executing Python functions in executors.
archive bool, optional Whether to add them as archives such as .zip, .jar, .tar.gz, .tgz, or .tar files. Archives are unpacked automatically on the executor side.
file bool, optional Whether to add a file to be downloaded on every node for this Spark job. Only local files are supported.

Returns

None