davidov541 / HadoopOnVagrant

Collection of vagrant boxes which makes setting up a mini-cluster simple
Apache License 2.0
3 stars 0 forks source link
hadoop kerberos vagrant vagrant-boxes

Hadoop On Vagrant

This repo contains a collection of vagrant boxes which have come in handy while developing for Hadoop. Each box has its own README with information about that box, and each has its own folder below this directory. Some of the goals of these boxes include:

Prerequisites

Configuration

The boxes all assume that there is a file at common/config.yaml which contains any configuration that may be modified. This file should be based off of the common/config.yaml.template file which is in the repo. The config.yaml file itself is excluded from the repo, and should never be checked in. The following fields are expected to be in the configuration file:

mount -t vboxsf -o uid=1000,gid=1000 vagrant_shared /vagrant_shared

The error output from the command was:

mount: unknown filesystem type 'vboxsf'


If this is the issue, run the following command, to install the vagrant-vbguest plugin.

vagrant plugin install vagrant-vbguest


**Q: I cannot run some vagrant boxes due to an error about disksize**

A: Some of the vagrant images in this collection make use of the vagrant-disksize plugin. If this plugin is not installed, you will see an error such as the following when you try to run *vagrant up*

There are errors in the configuration of this machine. Please fix the following errors and try again:

Vagrant:

If you see this error, install the vagrant-disksize plugin using the following command:

vagrant plugin install vagrant-disksize

See https://stackoverflow.com/questions/50063443/vagrant-unknown-configuration-section-disksize for more information.

Q: Running these boxes gives me an error about raw mode being unavailable A: If you are running on Windows, and see errors similar to the following, you need to uninstall Hyper-V:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "d2994180-5d66-400d-8ce2-aba0899acf29", "--type", "headless"]

Stderr: VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

In this case, turn off Hyper-V in the windows features window. See here for more information: https://discuss.erpnext.com/t/virtualbox-wont-run-raw-mode-unavailable-courtesy-of-hyper-v/34541/10