Created on 02-01-2016 02:06 PM - edited 09-16-2022 03:01 AM
I have been working on Hortonworks Sandbox. The Sandbox is deployed on CentOS 6.7 server. I was, at some point in time, able to access the Web UIs on my browser from remote PC. But most of the services are not accessible except the welcome page on port 8888. When I try to start the services with command line in PuTTY, no success! That is, the services are not running. When I run this command, netstat -nltu , I can't see the service ports in the list of listening ports. How can I make the ports listen for TCP connection. Any walk through on configuration of iptables and port forwarding would also be highly appreciated!
Created 02-03-2016 01:25 PM
The problem with PostgreSQL is now solved. error log from /var/lib/pgsql/pgstartup.log says:
"Starting PostgreSQL FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied"
As root user type "chmod 1777 /tmp"in terminal.
PostgreSQL will now start successfully.
> service postgresql start
Postgres cannot write a file to /tmp because of permissions set on /tmp directory.
Created 02-01-2016 02:17 PM
Created 02-01-2016 02:18 PM
Command
ambari-server start
Created 02-02-2016 02:01 PM
Ambari server can't start at all!
Created 02-01-2016 02:17 PM
@Kibrom Gebrehiwot you probably shut down the machine abruptly. SSH to the machine, issue shutdown now -r and hope everything comes back. If it doesn't, SSH again, issue "ambari-server start", login to web UI by going to 127.0.0.1:8080 user:admin pass:admin, start services manually. If still doesn't work, import a new sandbox and start from scratch.
Created 02-01-2016 09:37 PM
Grab Artem Ervits answer
Created 02-02-2016 07:16 AM
Thanks @Artem Ervits for your prompt response! I am able to start the ambari server by issuing the command 'ambari-server start' now. But I can't still open Ambari on the browser from my Windows PC. http://<server-name>:8080 shows error: " ERR_CONNECTION_REFUSED". How can I add the HDP service ports to the list of listening ports? I think the issue could be related to port forwarding. How can I forward HDP service ports so that I can access the services from remote machine?
Created 02-02-2016 07:44 AM
Note: I am working on a network protected by firewall. My Local PC and the remote Sandbox Host are on the same LAN. I am remotely accessing the Sandbox Host (deployed onCentOS ) from my Window PC using PuTTY.
Created 02-02-2016 12:01 PM
@Kibrom Gebrehiwot port forwarding is available in network properties of your hypervisor.
Created 02-02-2016 12:14 PM
@Artem Ervits The Sandbox is deployed on CentOS server (base OS) not on virtual machine. I have no GUI access to the server. I can access it only with PuTTY (remotely).