Support Questions
Find answers, ask questions, and share your expertise

hortonworks sanbox fail to open welcome page on 8888, while other ambari service is running well,hortonworks sandbox fail to open the welcome page while other ambari page running pretty well.

New Contributor

hortonworks sandbox fail to open the welcome page while other ambari page running pretty well.

when I log in the web terminal page through 4200, the command "netstat -a | grep 8888" give me empty response, which mean the protal is never running?

How can I start the tutorial page service on 8888?

check the systemctl log, I found the error "address is already in use".

also check the 'docker ps', it tell me '0.0.0.0:8888-8889->8888-8889/tcp,' What is this mean?

I can confirm the port is not occupied by checking 'lsof -i :8888'

restart the service by 'systemctl start sandbox-splash-web-server.service' will encounter the same error.

Aug 14 05:21:26 sandbox-hdp.hortonworks.com systemd[1]: Starting Sandbox Splash Web Server...                                                                                                 
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: Traceback (most recent call last):                                                                                   
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: File "/sandbox/splash/splash-web-server.py", line 13, in <module>                                                    
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: httpd = SocketServer.TCPServer(("", PORT), Handler)                                                                  
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: File "/usr/lib64/python2.7/SocketServer.py", line 419, in __init__                                                   
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: self.server_bind()                                                                                                   
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: File "/usr/lib64/python2.7/SocketServer.py", line 430, in server_bind                                                
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: self.socket.bind(self.server_address)                                                                                
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: File "/usr/lib64/python2.7/socket.py", line 224, in meth                                                             
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: return getattr(self._sock,name)(*args)                                                                               
Aug 14 05:21:26 sandbox-hdp.hortonworks.com splash-web-server.py[58299]: socket.error: [Errno 98] Address already in use                                                                      
Aug 14 05:21:26 sandbox-hdp.hortonworks.com systemd[1]: sandbox-splash-web-server.service: main process exited, code=exited, status=1/FAILURE                                                 
Aug 14 05:21:26 sandbox-hdp.hortonworks.com systemd[1]: Unit sandbox-splash-web-server.service entered failed state.                                                                          
Aug 14 05:21:26 sandbox-hdp.hortonworks.com systemd[1]: sandbox-splash-web-server.service failed.

updates:

check the code, I fount the occupied port is 1080 by PDP, kill the service and then 1080 works, systemctl don't have any error now.

but the welcome page is still missing, I am totally lost.

4 REPLIES 4

Hello @Zhang Chuan!

Hm, that's a little bit strange, the sandbox should forward to the same port, in this case would be:

0.0.0.0:8888-888->8888-8888/tcp instead of 0.0.0.0:8888-8889->8888-8889/tcp

Try to up your sandbox with the following script

https://raw.githubusercontent.com/hortonworks/data-tutorials/master/tutorials/hdp/sandbox-port-forwa...

And also, here's the list of forwarding ports related to the sandbox.

https://hortonworks.com/tutorial/hortonworks-sandbox-guide/section/3/

PS: if you're still facing this issue, try to check if you /etc/hosts it's according to the documentation.

Hope this helps!

New Contributor

Thanks @Vinicius Higa Murakami

the 8888-8889 might mean the 8888 and 8889, anyway I don't think it have problem now.

I try to run the script you give me, but the commands is not found.

in my docker linux, the folder "/etc/init.d/" only have these things "ambari-agentambari-server functions netconsolenetwork README"

Hmm, right.

So @Zhang Chuan, if you run only the command below, does it work?

  docker run -v hadoop:/hadoop --name sandbox-hdp --hostname "sandbox.hortonworks.com" --privileged -d \
  -p 6080:6080 \
  -p 9090:9090 \
  -p 9000:9000 \
  -p 8000:8000 \
  -p 8020:8020 \
  -p 42111:42111 \
  -p 10500:10500 \
  -p 16030:16030 \
  -p 8042:8042 \
  -p 8040:8040 \
  -p 2100:2100 \
  -p 4200:4200 \
  -p 4040:4040 \
  -p 8050:8050 \
  -p 9996:9996 \
  -p 9995:9995 \
  -p 8080:8080 \
  -p 8088:8088 \
  -p 8886:8886 \
  -p 8889:8889 \
  -p 8443:8443 \
  -p 8744:8744 \
  -p 8888:8888 \
  -p 8188:8188 \
  -p 8983:8983 \
  -p 1000:1000 \
  -p 1100:1100 \
  -p 11000:11000 \
  -p 10001:10001 \
  -p 15000:15000 \
  -p 10000:10000 \
  -p 8993:8993 \
  -p 1988:1988 \
  -p 5007:5007 \
  -p 50070:50070 \
  -p 19888:19888 \
  -p 16010:16010 \
  -p 50111:50111 \
  -p 50075:50075 \
  -p 50095:50095 \
  -p 60000:60000 \
  -p 8090:8090 \
  -p 8091:8091 \
  -p 8005:8005 \
  -p 8086:8086 \
  -p 8082:8082 \
  -p 60080:60080 \
  -p 8765:8765 \
  -p 5011:5011 \
  -p 6001:6001 \
  -p 6003:6003 \
  -p 6008:6008 \
  -p 1220:1220 \
  -p 21000:21000 \
  -p 6188:6188 \
  -p 61888:61888 \
  -p 4557:4557 \
  -p 2222:22 \
  -p 9083:9083 \
  sandbox-hdp /usr/sbin/sshd -D<br>

And then, you connect to the docker and try to run the following command:

netstat -atulnp | grep -i 8888

And also, check if it's up and running, if it's not, then

find / -name "splash" -type f

Hope this helps!

New Contributor

the first command not working because some name issue, I deploy the hdp by this command, from the file, docker-deploy-hdp265.sh, it success.

'''

# Deploy the sandbox into the cda docker network docker run --privileged --name $name -h $hostname --network=cda --network-alias=$hostname -d "$registry/$name:$version"

'''

of course the netstat show nothing on 8888

the find command give me no response.

are there any scripts that make me reinstall the splash? the other services is running by the way.