AnsweredAssumed Answered

MapR Sandbox using Vagrant

Question asked by communityadmin on Aug 27, 2014
Latest reply on Sep 3, 2014 by richardshaw
Hi folks - just starting out with MapR here and we are thinking of using vagrant for the local development environment.  I notice there is a sandbox "box" on the mapr site here:

http://package.mapr.com/releases/v3.1.1/sandbox/vagrant/MapR-Sandbox-For-Hadoop-3.1.1.box

The goal is to have a vagrant project with provisioners to add things like storm, hbase, etc to the basic box.

Is anyone using this for development?  Using this base box in a basic vagrantfile seems to work, in that I can connect to hue, etc - however I'm having some trouble getting yum to work for installing packages, etc to provision extras like storm, etc into the vm.  DNS is also behaving a bit strangely for me.  Any tips or sample vagrantfiles out there to suit this box?

my current VagrantFile is here::

    VAGRANTFILE_API_VERSION = "2"
    
    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
      config.vm.box = "http://package.mapr.com/releases/v3.1.1/sandbox/vagrant/MapR-Sandbox-For-Hadoop-3.1.1.box"
    
      config.vm.network "public_network"
    
        # Handle local proxy settings
      if Vagrant.has_plugin?("vagrant-proxyconf")
        if ENV["http_proxy"]
          config.proxy.http = ENV["http_proxy"]
        end
        if ENV["https_proxy"]
          config.proxy.https = ENV["https_proxy"]
        end
        if ENV["no_proxy"]
          config.proxy.no_proxy = ENV["no_proxy"]
        end
      end
    
      config.vm.provider "virtualbox" do |v|
        v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
      end
    
    end

Main issues I'm having are with network (dns on private network, yum not seeing proxy).

Cheers again!

Mark

Outcomes