Sie sind auf Seite 1von 7

Launching Cloudera Instance in a VM

Turning on Virtualization
If you have not used Virtualization before, you need to “enable virtualization”.
You can follow the article
here: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US
&cmd=displayKC&externalId=1003944

VirtualBox
1. Download VirtualBox from the internet.
a. https://www.virtualbox.org/wiki/downloads
2. Install VirtualBox by using the executable downloaded in Step 1.

Cloudera
3. Download Cloudera VM from the internet.
4. https://www.cloudera.com/downloads/quickstart_vms/5-10.html
5. Unzip the file you downloaded in Step 3. You will find two files as shown
below:

Note: The sizes of the files could be different. These sizes are for the zip file that is
meant for Virtual Box. If you download the zip meant for VMWare, for example,
the sizes may be different.

Creating the VM
6. Double click on the .ovf file that was extracted in the previous step. It will
open VirtualBox and you will see a dialog like the one shown below:
Launching Cloudera Instance in a VM

If you would like, you can change the “Name” and “Virtual Disk Image”
properties. The second one tells the computer where to store the image
file. Make sure there is at least about 10 GB or more to accommodate this
file. Click on “Import” to start the process.

When the “import” is successful, you should see a dialog like the one
below:
Launching Cloudera Instance in a VM

To start the Virtual Machine you just imported, selected the VM (as shown
above) and click on “Start” (in the tool bar above).

Mapping a folder

7. To transfer files from the host to the guest Operating System, do


the following:
a. Launch the VM and you would find the screen below:
Launching Cloudera Instance in a VM

b. Clicking on the “Shared Folder Settings.. you will see this:


Launching Cloudera Instance in a VM

c. To add a Share, click on the , get the “Add Share” dialog


box, select the folder on the host you want to share with the
guest, and select the “Auto-mount” and “Make permanent”
options. You can make it Read-only” if you so desire. Click
on OK and Exit from this dialog box and its parent.
d. Open “Terminal” in cloudera VM (shown in the figure) and
execute the following command:

sudo usermod –a –G vboxsf cloudera


Launching Cloudera Instance in a VM

Terminal

e. Reboot the machine and on the desktop, you should see the
shared folder created. It would typically be of the form
“sf_<foldername>. You would be able to open the shared
folder and move files from/to host/guest.

Copy/Paste between the Host and the Guest:

8. There would be occasions where you would need to copy/paste


content from the host (windows) to the guest vm (cloudera) and
vice versa. To get this functionality, all you need to do is this!
Launching Cloudera Instance in a VM

9. As shown in the figure, ensure “Bidirectional” is selected.

You are now ready to start working with the Virtual Machine.

Das könnte Ihnen auch gefallen