Created 03-01-2016 10:14 PM
Hi team!,
I've installed/loaded the hortonworks sandbox on my pc (using virtual box). Is it possible access to ambari interface from another computer/host?
Thanks in advance!.
Created 03-01-2016 10:52 PM
You can try this solution http://superuser.com/questions/677763/how-to-communicate-between-two-virtualbox-vms-running-on-same-...
Created 03-01-2016 11:36 PM
With the default port forwarding setup for the Sandbox you are 99% of the way there. As https://nsrc.org/workshops/2014/btnog/raw-attachment/wiki/Track2Agenda/ex-virtualbox-portforward-ssh... shows you can just empty out the 127.0.0.1 for any of of the "Host IP" columns that align with the "Guest Port" you are trying to allow access to. Attached ambariport.jpg shows me allowing anyone who can hit my Host machine's port 8080 can access Ambari. I verified this on my home network by pulling it up on another machine.
Created 03-04-2016 11:55 AM
@Lester Martin
Also make sure that the firewalls are set up to allow connections on those ports.Created 03-05-2016 06:46 PM
I have a conflict with the default port that is 8080. I configured my /etc/ambari-server/conf/ambari.properties with client.api.port=8081 and restarted ambari.
I am trying to connect to http://localhost:8081 and also http://127.0.0.1:8081 but am unable to. I am on a windows machine. Could you help me here. Thank you!
Created 03-08-2016 06:18 PM
It sounds like you'd just need to update the port mappings as shown up in the ambariport.jpg screenshot I attached.
Created 02-03-2017 01:26 PM
Hi Lester, i wonder if you could assist me with the following.
I've two laptops (client and server) in same network.
From client's laptop i'm trying to access ambari, but can't still can't reach. But if i access from host's laptop through http://127.0.0.1:8888 everything works fine.
Note: Host's IP Address is 192.168.0.3.
What i tried from Client's laptop is access to http://192.168.0.3:8888
Regards,
Cristian
Created 07-28-2017 08:10 AM
I am facing the same problem. I have tried all the possible things including matching hbase server version. Same Issue. when I ping sandbox.hortonworks.com on the server I get a different IP, but I can't ping it from my windows host server. Is this the problem?
[maria_dev@sandbox lib]$ ping sandbox.hortonworks.com PING sandbox.hortonworks.com (172.17.0.2) 56(84) bytes of data. 64 bytes from sandbox.hortonworks.com (172.17.0.2): icmp_seq=1 ttl=64 time=0.037 ms 64 bytes from sandbox.hortonworks.com (172.17.0.2): icmp_seq=2 ttl=64 time=0.048 ms 64 bytes from sandbox.hortonworks.com (172.17.0.2): icmp_seq=3 ttl=64 time=0.046 ms ^C --- sandbox.hortonworks.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2246ms rtt min/avg/max/mdev = 0.037/0.043/0.048/0.009 ms [maria_dev@sandbox lib]$
Here is the error from the JAVA API
17/07/24 14:24:45 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=90000 watcher=hconnection-0xea1a8d50x0, quorum=sandbox.hortonworks.com:2181, baseZNode=/hbase-unsecure 17/07/24 14:24:45 INFO zookeeper.ClientCnxn: Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) 17/07/24 14:24:45 INFO zookeeper.ClientCnxn: Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session 17/07/24 14:24:45 INFO zookeeper.ClientCnxn: Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x15d75ad4c050012, negotiated timeout = 40000 17/07/24 14:24:47 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because UNIX Domain sockets are not available on Windows. Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=5, exceptions: Mon Jul 24 14:24:47 EDT 2017, RpcRetryingCaller{globalStartTime=1500920687352, pause=100, retries=5}, java.io.IOException: An established connection was aborted by the software in your host machine Mon Jul 24 14:24:47 EDT 2017, RpcRetryingCaller{globalStartTime=1500920687352, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: sandbox.hortonworks.com/127.0.0.1:16020 Mon Jul 24 14:24:48 EDT 2017, RpcRetryingCaller{globalStartTime=1500920687352, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: sandbox.hortonworks.com/127.0.0.1:16020 Mon Jul 24 14:24:49 EDT 2017, RpcRetryingCaller{globalStartTime=1500920687352, pause=100, retries=5}, org.apache.hadoop.hbase.ipc.FailedServerException: This server is in the failed servers list: sandbox.hortonworks.com/127.0.0.1:16020
Created 07-28-2017 11:59 AM
With the default configuration for the sandbox, you will not be able to ping the VM from the host - it is behind a private NAT and only guest->public communication is possible in this configuration. In order to get the VM on the same subnet as the host, you'll have to change the Network options for the VM to Host-only or Bridged. There are many guides online for this.
There is another option however - as the original answer hints at, you can forward specific ports from the guest to the host. With this approach, you can access the services you need to get to (such as Ambari on port 8080 on the guest) by accessing the host port that you've configured to map to that guest port. By default, the Sandbox VM is already configured with some of the essential ports but you may add or remove from that list. As the original answer stated, please reference this image to see an example: https://community.hortonworks.com/storage/attachments/2499-ambariport.jpg
If you have further questions on this topic, please start a new question thread rather than replying to an old one as this helps with indexing and search of the answers.
Created 08-15-2018 12:40 PM
In my setup, I installed Ambari on an Azure VM. I had issues accessing the server. I had to use putty for port forwarding . I connected to the server and specified that port 8080 be mapped to 8089 on my localhost. I was then able to connect to ambari on port 8089 on my localhost through putty.