Multiple Nodes as VMs on a Single Physical Box

Moderator: NorbertKrupa

JeffSatler
Newbie
Newbie
Posts: 21
Joined: Mon Feb 13, 2012 9:44 pm

Multiple Nodes as VMs on a Single Physical Box

Post by JeffSatler » Tue May 15, 2012 3:21 pm

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

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Multiple Nodes as VMs on a Single Physical Box

Post by id10t » Tue May 15, 2012 3:28 pm

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.

shu,kai
Newbie
Newbie
Posts: 1
Joined: Mon May 07, 2012 8:09 am

Re: Multiple Nodes as VMs on a Single Physical Box

Post by shu,kai » Sat May 19, 2012 4:24 am

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.
Hi sKwa ,

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

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Multiple Nodes as VMs on a Single Physical Box

Post by id10t » Sat May 19, 2012 6:54 am

  • Check hostname of nodes:

    Code: Select all

    $> hostname
    or

    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).
Bad example:

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
...
In my example ping gives 127.0.0.2 - i.e. loop on localhost: not good, should be same IP as you give at installation.
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
...
PS I think that 2 nodes not good idea (3 much better ;) )

augusto
Newbie
Newbie
Posts: 5
Joined: Fri Apr 12, 2013 9:25 pm

Re: Multiple Nodes as VMs on a Single Physical Box

Post by augusto » Thu Apr 18, 2013 4:11 am

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:

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.
What do you think is causing this?

augusto
Newbie
Newbie
Posts: 5
Joined: Fri Apr 12, 2013 9:25 pm

Re: Multiple Nodes as VMs on a Single Physical Box

Post by augusto » Fri Apr 19, 2013 9:33 pm

Here is the real error i had:
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.
It seems that the installVertica.py cant recognize what is the netwoek interface. This occurs to all 3 Debian VMs.

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Multiple Nodes as VMs on a Single Physical Box

Post by id10t » Fri Apr 19, 2013 9:44 pm

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?

Post Reply

Return to “Vertica Installation”