Support Questions

Find answers, ask questions, and share your expertise

Unable to Access HDP Ambari on local virtual machine - 502 Bad Gateway

avatar
New Contributor

I've followed the tutorials:

 

Sandbox Deployment and Installation Guide:  https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/1.html   and

Learning the ropes of HDP Sandbox:  https://www.cloudera.com/tutorials/learning-the-ropes-of-the-hdp-sandbox.html

 

Here's my configuration:

Windows 10, Most up to date Oracle 6.1 Virtual Box, HDP 3.0, using google chrome.

 

Here's a screenshot of what happens when I try http://localhost:8080:

 

MikedMike_0-1644861372085.png

 

I've found and tried different fixes from other threads where people had similar issues with no luck.  I've updated my hosts file as follows at the following location:  C:\Windows\System32\drivers\etc, I believe this is correct?  

 

MikedMike_1-1644861544641.png

 I've also tried resetting permissions and deleting local data on my browser, which did not help.  I also tried disabling windows defender in case it was a firewall issue, but no change.  I feel like I'm missing something basic here and would appreciate any help.  Is it a port forwarding issue?  Am I changing the wrong hosts file or the line of code is incorrect in the host file?

 

 

 

3 REPLIES 3

avatar

@MikedMike  asked:

I've updated my hosts file as follows at the following location: C:\Windows\System32\drivers\etc, I believe this is correct?

Yes, you should be able to locate and edit a file named "hosts" in that location on Windows.

 

Why don't you post a screen grab of the confirmation screen presented when you completed the installation? It'll look like this:

guest-vm-hdp-welcome-screen-annotated-for-virtual-box.png

You might be going to the wrong URL or using the wrong port number when you attempt to load the welcome page.

 

 

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
New Contributor

Sure, here's a screenshot of the first screen I see after spinning up the vm.

 

MikedMike_0-1644909182375.png

What's interesting is Ambari sometimes works and sometimes doesn't, and this morning Ambari worked.  I'm seeing some error messages I'm not sure how to read in Ambari.  Even if I leave the sandbox open for over an hour, the data analytics studio has never opened, and trying to open the data analytics studio link doesn't work.

 

This is showing what's showing up in the alerts for HDFS.

 

MikedMike_1-1644909404765.png

 

Is the NameNode missing 2 blocks a case of me being impatient and all the information hasn't been loaded, or an issue with the the sandbox? 

avatar

@MikedMike 

I take it from your response (the screen shot you uploaded was not legible) that you were ultimately able to access Ambari via the URL and port number available on your machine.

 

The behavior you are now describing could be due to lack of memory available to the virtual machine. Note that the Sandbox Deployment and Install Guide calls for at least 10 GB RAM dedicated to the virtual machine, but that doesn't mean it will perform acceptably at that level, more RAM is better. Those instructions were written against Virtual Box version 5.1. If you have it available, you might want to try shutting everything down gracefully, allocating more memory to the virtual machine and then starting everything up again and seeing if responsiveness improves.

 

Another approach would be to give up on using the HDP 3-based Sandbox because it is no longer current (for example data analytics studio is on it's way out and Ambari is already dead). If you're just looking to evaluate a data platform, you can currently do so without a Cloudera subscription by downloading and installing the Trial Version of CDP Private Cloud Base Edition of Cloudera Data Platform. Cloudera has an extensive tutorial on installing CDP Private Cloud Base in an Infrastructure as a service (IaaS) fashion using AWS on its website.

 

 

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.