Apply a Script Action against a running Linux-based HDInsight cluster

Script Actions can be used to customize HDInsight clusters by performing custom configuration or installing additional software components. Until March 2016, you could only use Script Actions when creating a cluster. Now, you can apply Script Actions both during cluster creation and to a running Linux-based cluster (Windows-based clusters are still limited to only using Script Actions during cluster creation.)

This example shows how to work with Script Actions on a running cluster using the .NET SDK for HDInsight.

Run the project. It will install Giraph on the cluster using a Script Action, then display a history of the Script actions ran on the cluster.

Optionally, you can uncomment the following line to promote a Script Action to persist it. If you scale your cluster to add new nodes, any persisted Script Action that targets worker nodes will be applied to the new worker nodes.