简体   繁体   English

如何在浏览器中 GCP 实例之外的 hadoop 中访问我的 Namenode GUI

[英]How to access my Namenode GUI in hadoop outside the GCP instance in browser

I just set up single node HADOOP setup on a GCP instance.我只是在 GCP 实例上设置了单节点 HADOOP 设置。 Doing JPS command is showing all the processes are running fine.执行 JPS 命令显示所有进程都运行良好。

I want to access the GUI of my namenode.我想访问我的名称节点的 GUI。 I am using http://localhost:50070/ on my laptop browser.我在笔记本电脑浏览器上使用http://localhost:50070/

It shows This site can't be reached它显示This site can't be reached

Coresite.xml Coresite.xml

hduser@laptop:~$ vi /usr/local/hadoop/etc/hadoop/core-site.xml

<configuration>
 <property>
  <name>hadoop.tmp.dir</name>
  <value>/app/hadoop/tmp</value>
  <description>A base for other temporary directories.</description>
 </property>
 <property>
  <name>fs.default.name</name>
  <value>hdfs://localhost:54310</value>
  <description></description>
 </property>
</configuration>

Mapred-site.xml Mapred-site.xml

<configuration>
 <property>
  <name>mapred.job.tracker</name>
  <value>localhost:54311</value>
  <description>
  </description>
 </property>
</configuration>

Solution attempted: I have tried replacing my values in <value> tag with the public DNS of GCP instance but then the namenode stopped working.尝试的解决方案:我尝试用 GCP 实例的公共 DNS 替换<value>标记中的值,但随后名称节点停止工作。

Anyone having any idea here what i am doing wrong??有人知道我在做什么错吗?

I found the answer to this problem:我找到了这个问题的答案:

  1. you need to use your public IP and port number您需要使用您的公共 IP 和端口号

  2. check your firewall setting it should allow all the traffic in inbound rules in AWS and firewall setting in GCP检查您的防火墙设置,它应该允许 AWS 中的入站规则和 GCP 中的防火墙设置中的所有流量

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM