Change Hadoop IP address in VMware - hadoop

I recently installed Hadoop (Hadoop sandbox 2.2 [Hortonworks]) with VMware in Windows 7. When Hadoop runs, it gives me an IP address for the web browser:
http://127.0.0.1:8000
It doesn't work. What address should I use, and how would I find it?

When you start the sandbox using VMware player. Type ifconfig in terminal.
You will get a IP address starting with 192.168.XX.XXX. Replace 127.0.0.1 with that IP address. It will work.
FYI:
VMware player provides a dedicated IP to the sandbox and their guest OS, therefore all hadoop services is accessible through the guest OS IP address,not through your local host.

Related

Oracle Virtual Box Host IP Issue

I configured 2 guest OS (CentOS & Windows10) in virtual box and the base machine running on windows 10. both guest OS are configured with 2 network cards one is on NAT and other one is Bridged. My problem is only one guest machine is taking IP from my org dhcp and other one is not. please suggest. I tried configuring manual IP but, its not pining.
NAT wont take IP address, it will create internal network and communicate via hosts network IP address.

Cannot ping ubuntu VM from mac os

I have an ubuntu VM running in VirtualBox. I am trying to ping it, but cannot. I have the network setting changed from 'NAT' to 'bridged'.
here is the screenshot of the ip address info:
and here is the result of a ping....
i did some google searching, but have not been able to pinpoint the issue yet.... thanks
When you use NAT mode, you will never ping the virtual machine from the host machine because it is the NAT restriction. But when you use the bridged mode, you should be able to ping the virtual machine because it will create a direct path as if both of the machine directly connected. If the ping is fail, perhaps there is some program or application that are blocking the network like a firewall.

Oracle virtual box acces host and host vpn

I have Oracle virtualbox running on macbook OSX 10.8.2. I have a Windows 8 VM. I would like to accomplish 2 things:
access from the vm the webserver which is running from my host
access from the vm to webservers of my company. I can access these from my host by a VPN, can I access those hosts from my vm via the VPN which is running on my host ?
I tried bridged, host-ony adapters but that didn't do the trick so far.
Regards,
Marc
Bridge adapter should work. How are you trying to access the VMs ? I suppose the IP will be dynamic each time so try it with host name.

Virtual IP Address

I am developing an application related to networking . Its prerequisite is that the machine must have an ip address to function properly.
When i am on my home network , my machine gets the IP address through DHCP present on my network. However, when my machine is in stand alone mode e.g. while travelling i can not have an ip address and the status is LAN DISCONNECTED.
Is there a workaround so that i can get an ip address or virtual ip address in standalone mode?
I have already tried configuring with loopback address and other ip address.
Can I do it by installing a dhcp server on my machine? My system uses WINXP?
Network card: BroadcomNetxtreme 57XX gigabit ethernet.
I strongly feel that the application details have nothing to do with it. Since, when the machine has an ip address it starts working properly.
Still i am open to ideas.
I advise you to work inside a virtual machine, and then assign a virtual IP and vitual MAC of your convenience. You can use Virtual Box or VMWare.

Is it possible to make localhost work through a Virtual Machine?

I am using a Macbook running 10.6. I am using VMware Fusion to run an Ubuntu Server minimal virtual machine. Ubuntu Server is running your basic LAMP stack.
I do my development in Mac OS. I have VMware share a directory from Mac OS to the Ubuntu Server. Ubuntu Server uses that directory for apache.
I access my server is Mac OS in firefox using the ip address of my virtual machine. This is a pain because I have to find out what the ip address is of my virtual machine each time I boot it up. I could set a static ip address but this causes problems if I move my Macbook from network to network.
Is there any configuration (NAT or Bridged or something) that would let me access my virtual machine from the Mac OS using localhost or something similar?
Thanks
NAT should be OK. Your VM is on a different subnet that way, you can give it the static IP you like, and it won't interfere with the (dynamic) IP on your real network.
What you are looking for is the host-only networking adapter as opposed to the NAT or bridged adapters. This creates a network interface on the virtual machine that only connects the actual host. It is perfectly safe to set an IP address for this interface that does not change, and there will be no tricky NAT getting in the way. It's a little network that only exists for communication between the real host and the virtual host. It's exact purpose is so you can do development like this. I use the same feature on VirtualBox all the time, but VMWare has it as well.
Now, with a host-only adapter you might be worried that your VM now has no access to the Internet. The answer is simple. Just make two adapters. eth0, eth1. Make one of them a bridged or NAT adapter for Internet access. Make the other one the host-only adapter for your development. Most modern Linux distros will automatically route accordingly. I know for a fact that Ubuntu does, because I do it all the time. Again, this is with VirtualBox. Your mileage may vary with VMWare, but I can't imagine it's that different.
I'm using Virtual Box and typing in the computer local address (for instance 192.168.1.100) instead of localhost did the trick.
Maybe I'm misunderstanding your question but why not just add an entry in your hosts file for the virtual machine? That way you can access it with some arbitrarily assigned name (like testmachine) instead of the IP.
This is the first tutorial I found through google: http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/
This would work best if your VM has a static IP, BTW (either no DHCP or configure the DHCP server to give that MAC the same IP every time). That way you don't have to worry about changing the hosts entry every time the DHCP server gives the VM a different IP.

Resources