More Info:

Determines if TCP port 50070 and 50470 for Hadoop/HDFS NameNode WebUI service is open to the public

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Hadoop HDFS Port Should Not Be Open” for GCP using GCP console, follow the below steps:

  1. Log in to your GCP console (https://console.cloud.google.com/).
  2. Select the project where the Hadoop HDFS port is open.
  3. Click on the “Navigation menu” on the top left corner and select “Compute Engine”.
  4. In the Compute Engine dashboard, click on “VM instances” to see all the instances.
  5. Select the instance where the Hadoop HDFS port is open.
  6. Click on the “Edit” button at the top of the page.
  7. Scroll down to the “Firewall” section and click on “Management, security, disks, networking, sole tenancy”.
  8. In the “Firewall” section, click on “Networking”.
  9. In the “Firewall rules” section, click on the “Edit” button next to the firewall rule that allows the Hadoop HDFS port.
  10. In the “Edit firewall rule” dialog box, change the “Action” to “Deny”.
  11. Click on the “Save” button to save the changes.
  12. Verify that the Hadoop HDFS port is no longer open by running a port scan on the instance.

By following these steps, you have successfully remediated the misconfiguration “Hadoop HDFS Port Should Not Be Open” for GCP using GCP console.

Additional Reading: