Created 03-08-2018 11:13 AM
Hi Team,
I have installed hortonworks on Azure. And also deployed tomcat on port 2222. I have change the port(12123) for tomcat server.xml . I am not able to see the login screen of tomcat.
Kindly suggest.
Thanks In advance.
Thanks,
Vishal Gupta
Created 03-09-2018 07:23 AM
Please try this.
Change your Tomcat port to 9090 (instead of 2222) and then try again
9090 is the defauilt Nifi Port , which might not be running on your Sandbox and the port forwarding rules are already setup for port 9090 so you should be fine with this port.
Change the tomcat port to 9090 and then restart the tomcat then try accessing the tomcat URL on this port.
Created 03-08-2018 11:18 AM
1. Can you please share the exact set of tags where you made the port changes inside the "server.xml"
2. On the tomcat host are you able to see the port is listening and bound properly?
# netstat -tnlpa | grep 12123 # netstat -tnlpa | grep 2222
3. Do you see any error inside the "catalina.out" ?
4. Is there any restriction at firewall level which is restricting the port 12123 access? Can you check the firewall rules (may be it is set in such a way that the port 2222 only will be accessible).
Created 03-08-2018 11:34 AM
Hi,
1. Attaching you the server.xml
2. netstat -tnlpa | grep 12123 .
below is the output .
tcp 0 0 :::12123 :::* LISTEN 10595/java
netstat -tnlpa | grep 2222
The above command gives no output.
3. Catalina.out has no error.
4.How to check firewall ? Also
this url is working fine
http://52.177.199.181:8888/splash2.html.
http://52.177.199.181:8080/ is not displaying anything . I guess there is firewall issue.
Created 03-08-2018 11:39 AM
Are you talking about Azure HDP Sandbox?
If yes, then there is a separate way to add ports. As it runs on docker container. Please see the following guides to know how sandbox exposes the ports.
Add ports to Azure HDP Sandbox Docker: https://hortonworks.com/tutorial/sandbox-port-forwarding-guide/section/4/
For adding new Ports: https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.h... (even though this link says VirtualBox but should be fine in your case)
Created 03-08-2018 12:25 PM
Hi Jay,
Thanks for the suggestion.
Well my azure ip is say "125.32.45.85" from where i run the below command ,
ssh -p 2222 root@localhost.
as per the docs you provided , where i need to run the below command.
ssh azureSandbox. I Have tried the command from azure ip as well as after running the below command also ssh -p 2222 root@localhost.
but none of them worked.
Thanks in advance.
Created 03-08-2018 08:44 PM
The prerequisite of setting up the Azure Sandbox is described here: https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/4/
So please check if you have done the Local Forwards properly or not as described in the above link?
Created 03-09-2018 07:15 AM
test.txtHi,
I followed the below steps .
https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/4/
but it didnt worked. I have installed the tomcat in 2222 port.
attaching you the config file in test.txt
Thanks,
Vishal
Created 03-09-2018 07:23 AM
Please try this.
Change your Tomcat port to 9090 (instead of 2222) and then try again
9090 is the defauilt Nifi Port , which might not be running on your Sandbox and the port forwarding rules are already setup for port 9090 so you should be fine with this port.
Change the tomcat port to 9090 and then restart the tomcat then try accessing the tomcat URL on this port.
Created 03-09-2018 11:04 AM
Created 03-09-2018 07:44 AM
Hi,
I changed the port to 9090 . still it didnt worked . port 2222 is hortonworks sandbox port on which i deployed the tomcat with 12123 port. But now i changed to 9090 but still it didnt worked.
Thanks,
Vishal Gupta