Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

Hadoop Cluster Setup Recipes #1 VMware Virtual Machine Mount Share Drive

$
0
0

Objective

It is very popular for developers create a virtual private Hadoop and Spark cluster environment to perform testing, simulation and all other learning purposes. Especially with the advances in cloud technology, it takes only a few minutes and extremely easy to prepare a virtual machine for a cluster installation.

However, it is a known issue when VMWare tools was used to prepare a virtual machine, the shared folder feature did not functioning if the guest operating system was installed with the minimum CentOS or RedHat 7.x.

The share folder(s) will show up under directory “/mnt/hgfs” if a GUI tool is installed on the virtual machine with the VMware Tools installed. Otherwise, share folders did not show up.

The objective of this post is to show you how to fix this feature.

Version Tested

CentOS 7.x RHEL 7.x VMWare Workstation 10 & 12

Steps

Activate VMware Tools

Click on “VM” from the menu bar, then select “Reinstall VMware Tools…”


Hadoop Cluster Setup Recipes #1   VMware Virtual Machine Mount Share Drive

Install VMware Tools

Mount VMWare tool software $ sudo mkdir /mnt/cdrom $ sudo mount /dev/cdrom /mnt/cdrom Uncompress VMware tools software to a temp location $ sudo tar zxvf /mnt/cdrom/VMwareTools-.tar.gz -C /tmp/
Hadoop Cluster Setup Recipes #1   VMware Virtual Machine Mount Share Drive

Mount VMware Tools

Install VMware Tools $ cd /tmp/vmware-tools-distrib $ sudo ./vmware-install.pl
Hadoop Cluster Setup Recipes #1   VMware Virtual Machine Mount Share Drive

Install VMware Tools

If install script failed to run, it’s probably caused by lacking some basic OS level libraries. Try run the following command then re-run the above script.

$ sudo yum groupinstall "Development Tools" $ sudo yum install net-tools kernel-headers kernel-devel gcc perl $ sudo yum update Unmount and clean up $ sudo umount /mnt/cdrom $ sudo rm -rf /tmp/vmware-tools-distrib Verify vmware-tools is installed, activated and reboot safe. $ sudo systemctl status vmware-tools $ sudo systemctl enable vmware-tools
Hadoop Cluster Setup Recipes #1   VMware Virtual Machine Mount Share Drive

Enable VMware Tools in RHEL/CentOS 7

Activate shared folder $ sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other Verify shared folder $ ls -la /mnt/hgfs
Hadoop Cluster Setup Recipes #1   VMware Virtual Machine Mount Share Drive

Verify mount share folder


Viewing all articles
Browse latest Browse all 6262

Trending Articles