Set command variables
Setting these commonly used command variables makes it easier to run command-line examples on your local machine or in Cloud Shell.
Perform the following steps to set command variables.
Export the project using the following example:
$ export PROJECT=project;export HOSTNAME=hostname;export ZONE=zone
Set the PROJECT variable to your Google Cloud project ID.
Set the HOSTNAME variable to the name of the master node in your Dataproc cluster.
Note: The master name ends with an -m suffix.
Set the ZONE variable to the zone of the instances in your Dataproc cluster.
PreviousInstall the Google Cloud SDK on your local machineNextSet up a Google Compute Engine instance for PDI
Last updated
Was this helpful?