简体   繁体   English

为什么我无法连接到 127.0.0.1 HortonWorks Dashboard?

[英]Why can't I connect to 127.0.0.1 HortonWorks Dashboard?

I have installed Virtual Box (Version 5.2.0 r118431 (Qt5.6.2)) on Windows 10 and i imported appliance HDP_2.4_virtualbox_v3 (downloaded from here ).我已经在 Windows 10 上安装了 Virtual Box(版本 5.2.0 r118431 (Qt5.6.2))并且我导入了设备 HDP_2.4_virtualbox_v3(从这里下载)。

I followed the tutorial from here step by step.我从这里一步一步地遵循了教程。

The virtual machine is running on the computer from where I am trying to access the Dashboard.虚拟机正在我尝试访问仪表板的计算机上运行。 I have set up the Host Only Adapter Option on the sandbox so the computer and the virtual machine can communicate我已经在沙箱上设置了 Host Only Adapter Option 以便计算机和虚拟机可以通信

After the CentOs finished booting I am prompt to enter to the ip 127.0.0.1:8888, which is a different address from the tutorial, CentOs完成启动后,我提示输入ip 127.0.0.1:8888,这是一个与教程不同的地址,

and there is no server listening to that address because i get并且没有服务器侦听该地址,因为我得到

"127.0.0.1 refused to connect." “127.0.0.1 拒绝连接。” in the browser.在浏览器中。

image here图像在这里

try to connect using 127.0.0.1 to connect make sure the VM is running make sure there are no errors if there are debug them and at the last straw uninstall the Vm and retry (make sure to make a backup if there are any files)尝试使用 127.0.0.1 连接以确保 VM 正在运行确保没有错误,如果有调试它们,最后一根稻草卸载 Vm 并重试(如果有任何文件,请确保进行备份)

you can also try to check all the local host ips on your network and try to connect to them您也可以尝试检查网络上的所有本地主机 ip 并尝试连接到它们

Run the ipconfig command in your command prompt and identyfy your virtual box's ip under Ethernet adapter VirtualBox Host-Only Network .在命令提示符中运行ipconfig命令,并在Ethernet adapter VirtualBox Host-Only Network下识别虚拟机的 ip。

Take that ip address and go to your Virtual Box.获取该 IP 地址并转到您的 Virtual Box。

Select your appliance and go to Settings->Network->Adapter 1->Port Forwarding.选择您的设备并转到Settings->Network->Adapter 1->Port Forwarding.

Replace the Host IP 127.0.0.1 for the port you need 8080, 8888 and so on with the ip of your virtual box that should be sth like 192.168.xx .将您需要 8080、8888 等端口的主机 IP 127.0.0.1 替换为您的虚拟机的 ip 应该是192.168.xx 之类的

Now start your sandbox, login on it and try to connect in your browser to the new ip set 192.168.xx:8888 .现在启动您的沙箱,登录它并尝试在您的浏览器中连接到新的 ip 集192.168.xx:8888

Use appliance HDP_2.4_virtualbox because in the most recent some linux commands like netstat are considered deprecated and no longer function, which willmake your life harder when trying to debug or identify a networking problem.使用设备HDP_2.4_virtualbox因为在最近的一些 linux 命令(如 netstat)被认为已弃用并且不再起作用,这将使您在尝试调试或识别网络问题时更加困难。

If you still encounter issues eith it, reinstall your operating system, reinstall your virtual box and reimport the sandbox, make the changes needed in the Port Forwarding settings and it should be ok.如果您仍然遇到问题,请重新安装操作系统,重新安装虚拟机并重新导入沙箱,在端口转发设置中进行所需的更改,应该没问题。

Make sure you set NAT in your VirtualBox network settings:确保在 VirtualBox 网络设置中设置了 NAT:

在此处输入图片说明

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

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