Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Launch Dashboard from Localhost:8888 Not Working

Re: Launch Dashboard from Localhost:8888 Not Working

Rising Star

@pankaj kushwaha Making sure all the services are stopped and then doing a shutdown command from inside the host VM is your best bet at making sure nothing gets broken.

Re: Launch Dashboard from Localhost:8888 Not Working

Rising Star

@Jonathan T from what I understand you are trying to run the docker image of sandbox natively correct? In that case, what OS are you running on your machine. I'm asking because if it's ubuntu the problem you're probably running into is the fact that apparmor is blocking critical services of the sandbox container.

Re: Launch Dashboard from Localhost:8888 Not Working

New Contributor

@Rafael Coss, yes I turned off the pop-up blocker. I thought that was it too.

@Jay SenSharma, I pretty much just copy and pasted the docker run command and I believe it exposed port 8080

@glupu, yes I am running the docker sandbox from my mac which is using docker for mac.

I pretty much just followed the instructions from the link I posted above. I ran the 'docker run ...' command and then did a ssh -p 2222 root@localhost. I changed my password from 'hadoop' to my own and then ran /etc/init.d/startup_script start but after going to localhost:8888 the dashboard wouldn't launch.

So yesterday I ran 'service ambari-server status' and it said it wasn't running but gave a message about a 'Stale PID File at: /var/run/ambari-server/ambari-server.pid'. So I ran 'service ambari-server start' and again 'service ambari-server status' showed the same thing even tough the 'ambar-server start' command said it completed successfully. Finally I ran 'service ambari-server restart' and then it was running and I can get to the dashboard.

Why was that? And am I supposed to run the docker image of the sandbox this way? I noticed @jay had something which said 'Hortonworks Docker Sandbox' listed in his VirtualBox. I thought having a docker image was so that you didn't need a VM. So now I'm a bit confused on how I should be using the docker image of the sandbox. . .

thanks, I appreciate the help!

Re: Launch Dashboard from Localhost:8888 Not Working

Rising Star

@Jonathan T The virtualbox and vmware versions of the sandbox are simply instances of virtualbox and vmware machines with the image pre-loaded onto them so if someone isn't accustomed to running scripts and/or installing docker on their machines they don't need to. Also docker so far isn't very OS friendly in that different distros present different bugs depending on flavors and kernel versions so downloading the vbox/vmware versions ensure that you're running it in an environment that was pre-screened to work accordingly.

Regarding the behavior you are experiencing I can't really form on opinion by just the output you submitted but if I were to guess it would probably be a docker-related issue and perhaps your docker/ambari logs will provide more insight. Is everything else running alright now that you managed to bring it up?

Re: Launch Dashboard from Localhost:8888 Not Working

New Contributor

@glupu,

I think it is ok. I haven't done much with it since seeing the Amabri log in screen so I don't really know. I actually am not sure what to do. I was hoping there was a tutorial that showed me what to do next so I can start working with HDP and getting to learn it and Hadoop

Highlighted

Re: Launch Dashboard from Localhost:8888 Not Working

Rising Star

@Jonathan T If you have the VM up and running properly now, there are several tutorials at https://hortonworks.com/tutorials/. They cover all kinds of scenarios from data ingest to processing and visualization, so they are very helpful for learning Hadoop basics.

Re: Launch Dashboard from Localhost:8888 Not Working

New Contributor
@Mike Riggs

Thanks Mike for the tip. I guess all the references to VM I'll just kind of ignore and translate to me running on docker locally. Thanks all. I'll take a look see tomorrow or so and hopefully all is well.

Re: Launch Dashboard from Localhost:8888 Not Working

Super Mentor

@Jonathan T

Instead of shutting down the VM completely i usually do "Save State" because there are many components running inside the VM and it takes some time to get all those services restarted.

But it depends on the usecase. If we have some time then sometimes it is better to restart the VM that way it is comparatively bit faster.