Using Console
Using CLI
hdfs-site.xml
using the following command:Using Python
google-cloud-sdk
and running the command gcloud auth application-default login
. This will authenticate you with your GCP account.
google-cloud-sdk
command gcloud compute instances list
or by using the Python SDK. Here’s the Python code to get a list of all the instances:
socket
library in Python. Here’s the Python code to check if the port is open:hadoop
tag to all the instances running Hadoop. You can do this by using the Python SDK. Here’s the Python code to apply the tag: