Is it possible to use the Cloudera Quickstart VM using Vagrant? If possible then how to configure the Vagrantfile?
Assume that in your system you have installed vagrant and VirtualBox from Oracle.
You can either install a vagrant "box" that contains a cloudera quickstart vm or install a, for example, an ubuntu 14.04 vagrant box, and later install the standalone CDH.
Option 1: (recommended) install a ubuntu 14.04 vagrant box, log in the box, install java, and then install CDH:
1) Install vagrant ubuntu 14.04:
> vagrant init ubuntu/trusty64
> vagrant up
2) Log in the machine vagrant ssh
Install Oracle JAVA. I did it in this way:
>sudo apt-get update
>sudo apt-get install python-software-properties
>sudo add-apt-repository ppa:webupd8team/java
>sudo apt-get update
>sudo apt-get install oracle-java8-installer
3) Install CDH. Follow the instructions step by step as here:
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_qs_yarn_pseudo.html
Option 2: You need to install a vagrant "box" that contains a cloudera quickstart vm inside.
Usually, nice experts would already create one for you. Go to
https://atlas.hashicorp.com/boxes/search
and search for "cloudera quickstart". Right now I obtain:
https://atlas.hashicorp.com/quickstart/boxes/cdh
Then, in the machine where you have installed vagrant and virtual box, simply run the command:
vagrant init quickstart/cdh;
vagrant up --provider virtualbox
here "quickstart/cdh" is the name of the box, and can change, depends on your search box results.
Related
install both vagrant and vmware via homebrew
brew install --cask vagrant
brew install --cask vmware-fusion
verify that everything is installed
➜ ~ vmrun -T ws list
Total running VMs: 0
➜ ~ vagrant -v
Vagrant 2.3.0
set the default provider as vmware_desktop in my .zshrc (and "sourced" it)
export VAGRANT_DEFAULT_PROVIDER=vmware_desktop
initialize a folder and add a box following official get started
vagrant init hashicorp/bionic64
vagrant box add hashicorp/bionic64
and select the option 3) vmware_desktop
finally run vagrant up from the initialised folder and observe the error
The provider 'vmware_desktop' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.
Vagrant knows about the following providers: docker, hyperv, virtualbox
did I make some mistake in the setup
You miss to install the Vagrant VMWare plugin
First you need to install Vagrant VMware Utility
Then you can install the plugin
vagrant plugin install vagrant-vmware-desktop
How do I run a command in vagrant?
While using below commands for install magento setup:
vagrant#precise64:~/magento2$ sudo dnf install httpd
I get the following error:
sudo: dnf: command not found
So, how do I run a command in vagrant?
Try using apt for package installation on precise 64 box.
You can do sudo apt-get install apache2
To configure it, you can use vim/nano to modify:
/etc/apache2/apache2.conf
DNF Package manager is not available on hashicorp/Precise64 as it's not .rpm based.
From DNF WIKI:
DNF is a software package manager that installs, updates, and removes
packages on RPM-based Linux distributions
As a part of my course I have to install Virtual Box and Vagrant. So I started by running this in terminal:
sudo apt-get install virtualbox
sudo apt-get install vagrant
Then I downloaded Vagrentfile from this link. Now when I am running vagrant up it is showing this error:
.
you have to enable Intel VT-x or AMD-V virtualization hardware extensions in BIOS. By default it is disabled.
you can take help of this answer
I've installed docker on bash on ubuntu on windows 10:
sudo apt-get install -y docker
but when i try to use it:
docker -v
it gives me the following error:
The program 'docker' is currently not installed. You can install it by typing:
sudo apt-get install docker
When I try to reinstall it, I get this message:
docker is already the newest version.
UPDATE:
It seems that one of the pre-requisites for installing docker this way: https://docs.docker.com/engine/installation/linux/ubuntulinux/ which works on my dedicated ubuntu machine is:
your kernel must be 3.10 at minimum
Whereas ubuntu on win 10 is 3.4
Is there a way to update this?
Run it as root :
sudo docker -v
when I use this command:
vagrant up
I obtain this error:
[machine1] GuestAdditions versions on your host (4.3.36) and guest (5.0.10) do not match.
how can I update guest addition from ubuntu shell?
Use the vagrant vbguest plugin
Install the plugin:
vagrant plugin install vagrant-vbguest
Let vagrant up it will install the virtual box client if needed.
If you want to force the installation you can run vagrant vbguest --do install
You need to upgrade your VBoxGuestAdditions ISO either by:
installing/upgrading the package by running:
sudo apt-get install virtualbox-guest-additions-iso
or by downloading ISO file from this Downloads page.
Example for macOS:
sudo wget -O /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso http://download.virtualbox.org/virtualbox/5.0.10/VBoxGuestAdditions_5.0.10.iso
where version of VBoxGuestAdditions (5.0.10) should match installed VirtualBox binaries.
See: How to upgrade to VirtualBox Guest Additions?
Consider also upgrading your VM box by:
vagrant box update
For Linux Ubuntu, also check this page: Setting up VirtualBox Guest Additions.