Hi,
This may be a dumb question, but is it possible to install Vertical on one physical server using multiple VMs for the nodes of a Vertica cluster? Note that this is just for a test playground kind of enviornment. For instance, I'm running Oracle Virtual Box and thought I could create three VMs and make each one a node.
Has anyone tried this?
Thanks,
Jeff
Multiple Nodes as VMs on a Single Physical Box
Moderator: NorbertKrupa
-
- Newbie
- Posts: 21
- Joined: Mon Feb 13, 2012 9:44 pm
Re: Multiple Nodes as VMs on a Single Physical Box
Yeah, it possible.
At home Im playing on my laptop with Vertica while it runs in VMWare as cluster with 3 nodes. Also it possible install on VirtualBox, but from my experience VMWare much better.
PS network should be configured as bridge mode.
At home Im playing on my laptop with Vertica while it runs in VMWare as cluster with 3 nodes. Also it possible install on VirtualBox, but from my experience VMWare much better.
PS network should be configured as bridge mode.
Re: Multiple Nodes as VMs on a Single Physical Box
Hi sKwa ,sKwa wrote:Yeah, it possible.
At home Im playing on my laptop with Vertica while it runs in VMWare as cluster with 3 nodes. Also it possible install on VirtualBox, but from my experience VMWare much better.
PS network should be configured as bridge mode.
Now I have built 2 VMWare virtual machines on my laptop and network has been configured as BRIDGE mode.When I run "opt/vertica/sbin/install_vertica -s localhost,XX.XXX.XXX.XXX"(XX.XXX.XXX.XXX is the IP address of the other virtual machine), error exists as follows:
Hostname lookup failed on the following host(s):XX.XXX.XXX.XXX
I'd appreciate you can tell me what I should do now?
Last edited by JimKnicely on Mon May 21, 2012 1:48 am, edited 1 time in total.
Reason: Replace IP addresses with an X
Reason: Replace IP addresses with an X
Re: Multiple Nodes as VMs on a Single Physical Box
- Check hostname of nodes:
or
Code: Select all
$> hostname
Code: Select all
$> cat /proc/sys/kernel/hostname
- Ping nodes by their hostname. You should get same IPs as at Vertica installation defined. NOT localhost, NOT 127.xxx.xxx.xxx
- Open file : /opt/vertica/config/admintools.conf. Check that in hosts fields there NOT localhost - hostname or IP (hostname better).
Code: Select all
dbadmin@suse:~> cat /proc/sys/kernel/hostname
suse.vertica
dbadmin@suse:~> ping suse.vertica
PING suse.vertica (127.0.0.2) 56(84) bytes of data.
64 bytes from suse.vertica (127.0.0.2): icmp_seq=1 ttl=64 time=0.042 ms
...
Should be something like that:
Code: Select all
dbadmin@node1:~> ping node2
PING node2 (192.168.1.2) 56(84) bytes of data.
64 bytes from node2 (192.168.1.2): icmp_seq=1 ttl=64 time=0.037 ms
...
Re: Multiple Nodes as VMs on a Single Physical Box
I could not install vertica too. I have 3 debian VMs in the same machine, the hostnames are ok in all VMs. The installation output was:
What do you think is causing this?
Code: Select all
It looks like x.y.z.w and x.y.z.p are the same host. Removing x.y.z.p from the list to update.
Re: Multiple Nodes as VMs on a Single Physical Box
Here is the real error i had:
It seems that the installVertica.py cant recognize what is the netwoek interface. This occurs to all 3 Debian VMs.Error: Unable to resolve network interfaces for host2
Traceback (most recent call last):
File "/opt/vertica/bin/verticaInstall.py", line 1465, in <module>
uniqueBroadcastAddrs = DBfunctions.uniqueBroadCastAddresses( profiles, options.forceSpreadReconfiguration, ignoreHosts = non_spread_hosts )
File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/tools/DBfunctions.py", line 416, in uniqueBroadCastAddresses
raise Exception( "Unable to resolve network interfaces for %s" % h )
Exception: Unable to resolve network interfaces for host2
Installation failed.
Re: Multiple Nodes as VMs on a Single Physical Box
HI!
1. What are you using VBox, VMWare, KVM?
2. How did you configured a network - bridge/NAT?
3. Did you checked BCast, Mask? What is BCast,Mask of host and what is BCast,Mask of VMs?
1. What are you using VBox, VMWare, KVM?
2. How did you configured a network - bridge/NAT?
3. Did you checked BCast, Mask? What is BCast,Mask of host and what is BCast,Mask of VMs?