< Back

Install-AzureDatabricksClusterLibrary

Sun Jan 19, 2020 6:07 pm

NAME Install-AzureDatabricksClusterLibrary



SYNOPSIS

Installs a client library on an existing defined Azure Databricks cluster.





SYNTAX

Install-AzureDatabricksClusterLibrary [-Connection] <Object> [-ClusterName] <String> [-Libraries] <Hashtable>

[<CommonParameters>]





DESCRIPTION

This function will enable to quickly add libraries to existing Databricks cluster. Currently only supports .egg

and pypi files.





PARAMETERS

-Connection <Object>

An object that represents an Azure Databricks API connection where you want to copy your content to.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ClusterName <String>

The name of the cluster you want to install the libraries on.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Libraries <Hashtable>

A hashtable containing the library type and name of the library you want to add.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





A sample of the hashtable needed for this function:



$hashtable = @{

'pypi' = 'simplejson=3.8.0'

}



Each line of your hashtable should be either of type pypi or egg. If egg, specify the path to the egg.



Author: Drew Furgiuele (@pittfurg), http://www.port1433.com

Website: https://www.igs.com

Copyright: (c) 2019 by IGS, licensed under MIT

License: MIT https://opensource.org/licenses/MIT



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Install-AzureDatabricksClusterLibrary -Connection $Connection -ClusterName "Drews Cluster" -Libraries

$Libraries



Installs the libraries listed in the hashtable variable $Libraries in the cluster "Drews Cluster" on the

Databricks instance defined in $Connection











RELATED LINKS