General # Init script is just a shell script, which will be run for each node in the cluster, before Apache Spark driver or executor JVM starts. A cluster can have multiple init script if you want. These init scripts will be executed in the order provided. Cluster scope init script # If your cluster is not in Edit mode, you can not see the button to add init script. You need to click Edit in the cluster configuration page, then you can add init script to your cluster settings.