If you have just started with Hadoop, you will likely have downloaded a quick start VM from Cloudera or HortonWorks. This means you downloaded VMware Player or VirtualBox to run your VM.
If you are like me, you choose (VMware Player)[https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/7_0]and noticed that your VM would not go full screen. Sure, you can select "Full Screen" from under the dropdown menu all day: VMware Player will go full-screen, but the Linux OS will not.
Install VMware Tools - we need to install VMWare Tools and get it running
Here's how to fix that (note I was running this on Centos 6.2). These instructions came from VMware Tools (site)[https://www.vmware.com/support/ws5/doc/ws_newguest_tools_linux.html] and I've annotated where I thought they were confusing.Also note that I'm showing you the command line installer using the tar file. Supposedly you can double-click and avoid the command line altogether, but if you are here to learn you some Hadoop then it might behoove you to take every opportunity to get comfortable with the command line.
Installing VMware Tools from the Command Line with the Tar Installer
The first steps are performed on the host, within Workstation menus:
Power on the virtual machine.
I'm sure your VM is on, but just in case the good folks at VMware wanted to make sure
After the guest operating system has started, prepare your virtual machine to install VMware Tools.
Choose VM > Install VMware Tools.
For me, this was under Player --> Manage --> Install VMWare Tools
The remaining steps take place inside the virtual machine.
- As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.
mount /dev/cdrom /mnt/cdrom
Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is
I just created a dir in /tmp
Then I copied all the VMware Tools stuff to that dir
cp -r /mnt/cdrom/* .
Note that the "." at the end of command means copy to your current working directory, which should be /tmp/vmware-tools-distrib (which we just created)
- Untar the VMware Tools tar file:
tar zxf VMwareTools-5.0.0-<xxxx>.tar.gz
Replace with the numbers you see
Once you start typing the VMw... hit tab to autocomplete
If you are in /tmp/vmware-tools this command should execute successfully. If you are /mnt/cdrom, then you may see a bunch of error messages telling yo uthat you do not have permission to write to this directory. You'll need to go back and create a dir in /tmp and copy the VMwareTools files to it.
- Run the .tar VMware Tools installer:
Respond to the configuration questions on the screen. Press Enter to accept the default value.
Hit enter a zillion times when prompted
6. Start VMware Tools
- Log off of the root account.
- Under the Player drop-down in the VMware Player banner, select Full Screen