This document supports the version of each product listed and
supports all subsequent versions until the document is
replaced by a new edition. To check for more recent editions
of this document, see http://www.vmware.com/support/pubs.
EN-001535-00
VMware vSphere Big Data Extensions Administrator's and User's Guide
You can find the most up-to-date technical documentation on the VMware Web site at:
http://www.vmware.com/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
2 VMware, Inc.
Contents
About This Book7
About VMware vSphere Big Data Extensions9
1
Getting Started with Big Data Extensions 9
Big Data Extensions and Project Serengeti 10
About Big Data Extensions Architecture 12
About Application Managers 12
Big Data Extensions Support for Hadoop Features By Distribution 15
Hadoop Feature Support By Distribution 17
Installing Big Data Extensions19
2
System Requirements for Big Data Extensions 19
Internationalization and Localization 22
Deploy the Big Data Extensions vApp in the vSphere Web Client 23
Install RPMs in the Serengeti Management Server Yum Repository 25
Install the Big Data Extensions Plug-In 26
Connect to a Serengeti Management Server 28
Install the Serengeti Remote Command-Line Interface Client 29
Access the Serengeti CLI By Using the Remote CLI Client 30
Upgrading Big Data Extensions33
3
Prepare to Upgrade Big Data Extensions 33
Upgrade Big Data Extensions Virtual Appliance 34
Upgrade the Big Data Extensions Plug-in 38
Upgrade the Serengeti CLI 38
Upgrade Big Data Extensions Virtual Machine Components by Using the Serengeti Command-Line
Interface 39
VMware, Inc.
Managing Hadoop Distributions41
4
Managing Application Managers 41
Hadoop Distribution Deployment Types 43
Configure a Tarball-Deployed Hadoop Distribution by Using the Serengeti Command-Line
Interface 44
Configuring Yum and Yum Repositories 46
Create a Hadoop Template Virtual Machine using RHEL Server 6.x and VMware Tools 54
Maintain a Customized Hadoop Template Virtual Machine 57
Managing the Big Data Extensions Environment59
5
Add Specific User Names to Connect to the Serengeti Management Server 59
Change the Password for the Serengeti Management Server 60
Configure vCenter Single Sign-On Settings for the Serengeti Management Server 61
3
VMware vSphere Big Data Extensions Administrator's and User's Guide
Create a User Name and Password for the Serengeti Command-Line Interface 61
Stop and Start Serengeti Services 62
Managing vSphere Resources for Clusters63
6
Add a Resource Pool with the Serengeti Command-Line Interface 63
Remove a Resource Pool with the Serengeti Command-Line Interface 64
Add a Datastore in the vSphere Web Client 64
Remove a Datastore in the vSphere Web Client 65
Add a Network in the vSphere Web Client 65
Reconfigure a Static IP Network in the vSphere Web Client 66
Remove a Network in the vSphere Web Client 66
Creating Hadoop and HBase Clusters67
7
About Hadoop and HBase Cluster Deployment Types 68
Hadoop Distributions Supporting MapReduce v1 and MapReduce v2 (YARN) 68
About Cluster Topology 69
About HBase Database Access 69
Create a Big Data Cluster in the vSphere Web Client 70
Create an HBase Only Cluster in Big Data Extensions 73
Create a Cluster with an Application Manager by Using the vSphere Web Client 75
Create a Compute Workers Only Cluster by Using the Web Client 75
Managing Hadoop and HBase Clusters77
8
Set Up a Local Yum Repository for Cloudera Manager Application Manager 78
Set Up a Local Yum Repository for Ambari Application Manager 81
Stop and Start a Hadoop Cluster in the vSphere Web Client 86
Scale Out a Hadoop Cluster in the vSphere Web Client 87
Scale CPU and RAM in the vSphere Web Client 87
Reconfigure a Big Data Cluster with the Serengeti Command-Line Interface 88
Delete a Cluster in the vSphere Web Client 90
About Resource Usage and Elastic Scaling 90
Use Disk I/O Shares to Prioritize Cluster Virtual Machines in the vSphere Web Client 95
About vSphere High Availability and vSphere Fault Tolerance 95
Recover from Disk Failure with the Serengeti Command-Line Interface Client 95
Log in to Hadoop Nodes with the Serengeti Command-Line Interface Client 96
Change the User Password on All of the Nodes of a Cluster 97
Monitoring the Big Data Extensions Environment99
9
View Serengeti Management Server Initialization Status 99
View Clusters in the vSphere Web Client 100
View Provisioned Clusters in the vSphere Web Client 100
View Cluster Information in the vSphere Web Client 101
Monitor the Hadoop Distributed File System Status in the vSphere Web Client 102
Monitor MapReduce Status in the vSphere Web Client 103
Monitor HBase Status in the vSphere Web Client 103
Accessing Hive Data with JDBC or ODBC105
10
Configure Hive to Work with JDBC 105
4 VMware, Inc.
Configure Hive to Work with ODBC 107
Contents
Troubleshooting109
11
Log Files for Troubleshooting 110
Configure Serengeti Logging Levels 110
Collect Log Files for Troubleshooting 111
Big Data Extensions Virtual Appliance Upgrade Fails 111
Troubleshooting Cluster Creation Failures 112
Cannot Restart or Reconfigure a Cluster For Which the Time Is Not Synchronized 118
Cannot Restart or Reconfigure a Cluster After Changing Its Distribution 119
Virtual Machine Cannot Get IP Address and Command Fails 119
vCenter Server Connections Fail to Log In 119
SSL Certificate Error When Connecting to Non-Serengeti Server with the vSphere Console 120
Serengeti Operations Fail After You Rename a Resource in vSphere 120
A New Plug-In Instance with the Same or Earlier Version Number as a Previous Plug-In Instance
Does Not Load 121
MapReduce Job Fails to Run and Does Not Appear In the Job History 121
Cannot Submit MapReduce Jobs for Compute-Only Clusters with External Isilon HDFS 122
MapReduce Job Stops Responding on a PHD or CDH4 YARN Cluster 122
Unable to Connect the Big Data Extensions Plug-In to the Serengeti Server 123
Cannot Perform Serengeti Operations after Deploying Big Data Extensions 123
Host Name and FQDN Do Not Match for Serengeti Management Server 124
Upgrade Cluster Error When Using Cluster Created in Earlier Version of Big Data Extensions 125
Non-ASCII characters are not displayed correctly 126
Cannot Change the Serengeti Server IP Address From the vSphere Web Client 126
Big Data Extensions Server Does Not Accept Resource Names With Two or More Contiguous
White Spaces 127
Remove the HBase Rootdir in HDFS Before You Delete the HBase Only Cluster 127
Management Server Cannot Connect to vCenter Server 127
Virtual Update Manager Does Not Upgrade the Hadoop Template Virtual Machine Under Big
Data Extensions vApp 128
Cannot Download the Package When Using Downloadonly Plugin 128
Cannot Find Packages When You Use Yum Search 129
Index131
VMware, Inc. 5
VMware vSphere Big Data Extensions Administrator's and User's Guide
6 VMware, Inc.
About This Book
VMware vSphere Big Data Extensions Administrator's and User's Guide describes how to install VMware
vSphere Big Data Extensions™ within your vSphere environment, and how to manage and monitor Hadoop
and HBase clusters using the Big Data Extensions plug-in for vSphere Web Client.
VMware vSphere Big Data Extensions Administrator's and User's Guide also describes how to perform Hadoop
and HBase operations using the VMware Serengeti™ Command-Line Interface Client, which provides a
greater degree of control for certain system management and big data cluster creation tasks.
Intended Audience
This guide is for system administrators and developers who want to use Big Data Extensions to deploy and
manage Hadoop clusters. To successfully work with Big Data Extensions, you should be familiar with
VMware® vSphere® and Hadoop and HBase deployment and operation.
VMware Technical Publications Glossary
VMware Technical Publications provides a glossary of terms that might be unfamiliar to you. For definitions
of terms as they are used in VMware technical documentation, go to
http://www.vmware.com/support/pubs.
VMware, Inc.
7
VMware vSphere Big Data Extensions Administrator's and User's Guide
8 VMware, Inc.
About VMware vSphere Big Data
Extensions1
VMware vSphere Big Data Extensions lets you deploy and centrally operate big data clusters running on
VMware vSphere. Big Data Extensions simplifies the Hadoop and HBase deployment and provisioning
process, and gives you a real time view of the running services and the status of their virtual hosts. It
provides a central place from which to manage and monitor your big data cluster, and incorporates a full
range of tools to help you optimize cluster performance and utilization.
This chapter includes the following topics:
“Getting Started with Big Data Extensions,” on page 9
n
“Big Data Extensions and Project Serengeti,” on page 10
n
“About Big Data Extensions Architecture,” on page 12
n
“About Application Managers,” on page 12
n
“Big Data Extensions Support for Hadoop Features By Distribution,” on page 15
n
“Hadoop Feature Support By Distribution,” on page 17
n
Getting Started with Big Data Extensions
Big Data Extensions lets you deploy big data clusters. The tasks in this section describe how to set up
VMware vSphere® for use with Big Data Extensions, deploy the Big Data Extensions vApp, access the
VMware vCenter Server® and command-line interface (CLI) administrative consoles, and configure a
Hadoop distribution for use with Big Data Extensions.
Prerequisites
Understand what Project Serengeti® and Big Data Extensions is so that you know how they fit into your
n
big data workflow and vSphere environment.
Verify that the Big Data Extensions features that you want to use, such as data-compute separated
n
clusters and elastic scaling, are supported by Big Data Extensions for the Hadoop distribution that you
want to use.
Understand which features are supported by your Hadoop distribution.
n
Procedure
1Do one of the following.
Install Big Data Extensions for the first time. Review the system requirements, install vSphere, and
n
install the Big Data Extensions components: Big Data Extensions vApp, Big Data Extensions plugin for vCenter Server, and Serengeti CLI Client.
Upgrade Big Data Extensions from a previous version. Perform the upgrade steps.
n
VMware, Inc.
9
VMware vSphere Big Data Extensions Administrator's and User's Guide
2(Optional) Install and configure a distribution other than Apache Hadoop for use with
Big Data Extensions.
Apache Hadoop is included in the Serengeti Management Server, but you can use any Hadoop
distribution that Big Data Extensions supports.
What to do next
After you have successfully installed and configured your Big Data Extensions environment, you can
perform the following additional tasks, in any order.
Stop and start the Serengeti services, create user accounts, manage passwords, and log in to cluster
n
nodes to perform troubleshooting.
Manage the vSphere resource pools, datastores, and networks that you use to create Hadoop and HBase
n
clusters.
Create, provision, and manage big data clusters.
n
Monitor the status of the clusters that you create, including their datastores, networks, and resource
n
pools, through the vSphere Web Client and the Serengeti Command-Line Interface.
On your Big Data clusters, run HDFS commands, Hive and Pig scripts, and MapReduce jobs, and access
n
Hive data.
If you encounter any problems when using Big Data Extensions, see Chapter 11, “Troubleshooting,” on
n
page 109.
Big Data Extensions and Project Serengeti
Big Data Extensions runs on top of Project Serengeti, the open source project initiated by VMware to
automate the deployment and management of Hadoop and HBase clusters on virtual environments such as
vSphere.
Big Data Extensions and Project Serengeti provide the following components.
Project Serengeti
Serengeti Management
Server
An open source project initiated by VMware, Project Serengeti lets users
deploy and manage big data clusters in a vCenter Server managed
environment. The major components are the Serengeti Management Server,
which provides cluster provisioning, software configuration, and
management services; an elastic scaling framework; and command-line
interface. Project Serengeti is made available under the Apache 2.0 license,
under which anyone can modify and redistribute Project Serengeti according
to the terms of the license.
Provides the framework and services to run Big Data clusters on vSphere.
The Serengeti Management Server performs resource management, policybased virtual machine placement, cluster provisioning, software
configuration management, and environment monitoring.
10 VMware, Inc.
Chapter 1 About VMware vSphere Big Data Extensions
Serengeti CommandLine Interface Client
Big Data Extensions
The command-line interface (CLI) client provides a comprehensive set of
tools and utilities with which to monitor and manage your Big Data
deployment. If you are using the open source version of Serengeti without
Big Data Extensions, the CLI is the only interface through which you can
perform administrative tasks. For more information about the CLI, see the
VMware vSphere Big Data Extensions Command-Line Interface Guide.
The commercial version of the open source Project Serengeti from VMware,
Big Data Extensions, is delivered as a vCenter Server Appliance.
Big Data Extensions includes all the Project Serengeti functions and the
following additional features and components.
Enterprise level support from VMware.
n
Hadoop distribution from the Apache community.
n
NOTE VMware provides the Hadoop distribution as a convenience but
does not provide enterprise-level support. The Apache Hadoop
distribution is supported by the open source community.
The Big Data Extensions plug-in, a graphical user interface integrated
n
with vSphere Web Client. This plug-in lets you perform common
Hadoop infrastructure and cluster management administrative tasks.
Elastic scaling lets you optimize cluster performance and utilization of
n
physical compute resources in a vSphere environment. Elasticityenabled clusters start and stop virtual machines, adjusting the number
of active compute nodes based on configuration settings that you
specify, to optimize resource consumption. Elasticity is ideal in a mixed
workload environment to ensure that workloads can efficiently share the
underlying physical resources while high-priority jobs are assigned
sufficient resources.
VMware, Inc. 11
CLIGUI
Rest API
VM and Application
Provisioning Framework
Software Management SPI
Default
adapter
Cloudera
adapter
Ambari
adapter
Software
Management
Thrift Service
Cloudera
Manager
Server
Ambari
Server
VMware vSphere Big Data Extensions Administrator's and User's Guide
About Big Data Extensions Architecture
The Serengeti Management Server and Hadoop Template virtual machine work together to configure and
provision big data clusters.
Figure 1‑1. Big Data Extensions Architecture
Big Data Extensions performs the following steps to deploy a big data cluster.
1The Serengeti Management Server searches for ESXi hosts with sufficient resources to operate the
cluster based on the configuration settings that you specify, and then selects the ESXi hosts on which to
place Hadoop virtual machines.
2The Serengeti Management Server sends a request to the vCenter Server to clone and configure virtual
machines to use with the big data cluster.
3The Serengeti Management Server configures the operating system and network parameters for the
new virtual machines.
4Each virtual machine downloads the Hadoop software packages and installs them by applying the
distribution and installation information from the Serengeti Management Server.
5The Serengeti Management Server configures the Hadoop parameters for the new virtual machines
based on the cluster configuration settings that you specify.
6The Hadoop services are started on the new virtual machines, at which point you have a running
cluster based on your configuration settings.
About Application Managers
You can use Cloudera Manager, Ambari, and the default application manager to provision and manage
clusters with VMware vSphere Big Data Extensions.
After you add a new Cloudera Manager or Ambari application manager to Big Data Extensions, you can
redirect your software management tasks, including monitoring and managing clusters, to that application
manager.
12 VMware, Inc.
Chapter 1 About VMware vSphere Big Data Extensions
You can use an application manager to perform the following tasks:
List all available vendor instances, supported distributions, and configurations or roles for a specific
n
application manager and distribution.
Create clusters.
n
Monitor and manage services from the application manager console.
n
Check the documentation for your application manager for tool-specific requirements.
Restrictions
The following restrictions apply to Cloudera Manager and Ambari application managers:
To add a application manager with HTTPS, use the FQDN instead of the URL.
n
You cannot rename a cluster that was created with a Cloudera Manager or Ambari application
n
manager.
You cannot change services for a big data cluster from Big Data Extensions if the cluster was created
n
with Ambari or Cloudera application manager.
To change services, configurations, or both, you must make the changes manually from the application
n
manager on the nodes.
If you install new services, Big Data Extensions starts and stops the new services together with old
services.
If you use an application manager to change services and big data cluster configurations, those changes
n
cannot be synced from Big Data Extensions. The nodes that you created with Big Data Extensions do
not contain the new services or configurations.
Services and Operations Supported by the Application Managers
If you use Cloudera Manager or Ambari with Big Data Extensions, there are several additional services that
are available for your use.
Supported Application Managers and Distributions
Big Data Extensions supports certain application managers and Hadoop distributions.
Table 1‑1. Supported application managers and Hadoop distributions
The following features and operations are available when you use the Ambari application manager 1.6.0,
1.6.1 (with versions HDP 1.3, 1.3.2, 2.0, 2.1) and the Cloudera Manager application manager 5.0.x, 5.1.x (with
versions CDH 4.x, 5.x) on Big Data Extensions.
Cluster Delete
n
Cluster Export (can only be performed with the Serengeti CLI)
n
Cluster List
n
Cluster Resume
n
VMware, Inc. 13
VMware vSphere Big Data Extensions Administrator's and User's Guide
Cluster Start/Stop
n
Hadoop Cluster
n
HBase Cluster
n
HDFS High Availability (available only with Cloudera Manager)
n
Scale Out
n
Topology Awareness (RACK_AS_RACK or HOST_AS_RACK)
n
vSphere Fault Tolerance
n
vSphere High Availability
n
Services supported on Cloudera Manager and Ambari
Table 1‑2. Services supported on Cloudera Manager and Ambari
Service NameCloudera Manager 5.1Cloudera Manager 5.0Ambari 1.6
FalconX
FlumeX
GangliaX
HBaseXXX
HCatalogX
HDFSXXX
HiveXXX
HueXXX
ImpalaXX
MapReduceXXX
NagiosX
OozieXXX
PigX
SentryX
SolrXX
SparkX
SqoopX
StormX
TEZX
WebHCATX
YARNXXX
ZookeeperXXX
For information about how to use an application manager with the CLI, see the VMware vSphere Big DataExtensions Command-Line Interface Guide.
14 VMware, Inc.
Chapter 1 About VMware vSphere Big Data Extensions
Big Data Extensions Support for Hadoop Features By Distribution
Big Data Extensions provides different levels of feature support depending on the distribution and version
that you configure for use with the default application manager.
Support for Hadoop MapReduce v1 Distribution Features
Table 1-3 lists the supported Hadoop MapReduce v1 distributions and indicates which features are
supported when you use the distribution with the default application manager on Big Data Extensions.
Table 1‑3. Big Data Extensions Feature Support for Hadoop MapReduce v1 Distributions
Apache
HadoopClouderaHortonworksMapR
Version1.2.14.7 - 5.11.3 - 2.13.0.2-3.1.0
Automatic
Deployment
Scale OutYesYesYesYes
Create Cluster with
Multiple Networks
Data-Compute
Separation
Compute-onlyYesYesYesNo
Elastic Scaling of
Compute Nodes
Hadoop
Configuration
Hadoop Topology
Configuration
Run Hadoop
Commands from the
CLI
Hadoop
Virtualization
Extensions (HVE)
vSphere HAYesYesYesYes
Service Level
vSphere HA
vSphere FTYesYesYesYes
YesYesYesYes
YesYesYesNo
YesYesYesYes
YesYes when using
MapReduce v1
YesYesYesNo
YesYesYesNo
YesNoNoNo
YesNoYesNo
YesSee “About Service
Level vSphere HA for
Cloudera,” on
page 16
YesNo
YesNo
Support for Hadoop MapReduce v2 (YARN) Distribution Features
Table 1-4 lists the supported Hadoop MapReduce v2 distributions and indicates which features are
supported when you use the distribution with the default application manager on Big Data Extensions.
VMware, Inc. 15
VMware vSphere Big Data Extensions Administrator's and User's Guide
Table 1‑4. Big Data Extensions Feature Support for Hadoop MapReduce v2 (YARN) Distributions
Apache
Bigtop
Apache
HadoopClouderaCloudera
Version0.82.04.75.0, 5.11.3 - 2.12.0, 2.1
Automatic
YesYesYesYesYesYes
Deploymen
t
Scale OutYesYesYesYesYesYes
Create
YesYesYesYesYesYes
Cluster
with
Multiple
Networks
Data-
YesYesYesYesYesYes
Compute
Separation
Compute-
YesYesYesYesYesYes
only
Elastic
YesYesNo when
Scaling of
Compute
Nodes
Hadoop
YesYesYesYesYesYes
Configurati
on
Hadoop
YesYesYesYesYesYes
Topology
Configurati
on
Run
NoNoNoNoNoNo
Hadoop
Commands
from the
CLI
Hadoop
Virtualizati
Support only
for HDFS
Support only
for HDFS
on
Extensions
(HVE)
vSphere
NoNoNoNoNoNo
HA
Service
NoNoSee “About
Level
vSphere
HA
vSphere FTNoNoNoNoNoNo
No when
using
MapReduce 2
using
MapReduce
2
NoSupport only
for HDFS
See “About
Service Level
vSphere HA
for
Cloudera,”
on page 16
Service Level
vSphere HA
for
Cloudera,”
on page 16
Hortonwork
sPivotal
YesNo
Support only
Yes
for HDFS.
HDP 1.3
provides full
support.
NoNo
About Service Level vSphere HA for Cloudera
The Cloudera distributions offer the following support for Service Level vSphere HA.
Cloudera using MapReduce v1 provides service level vSphere HA support for JobTracker.
n
Cloudera provides its own service level HA support for NameNode through HDFS2.
n
16 VMware, Inc.
Chapter 1 About VMware vSphere Big Data Extensions
Hadoop Feature Support By Distribution
Each Hadoop distribution and version provides differing feature support. Learn which Hadoop
distributions support which features.
Hadoop Features
The table illustrates which Hadoop distributions support which features when you use the distributions
with the default application manager on Big Data Extensions.
VMware vSphere Big Data Extensions Administrator's and User's Guide
18 VMware, Inc.
Installing Big Data Extensions2
To install Big Data Extensions so that you can create and provision big data clusters, you must install the
Big Data Extensions components in the order described.
What to do next
If you want to create clusters on any Hadoop distribution other than Apache Hadoop, which is included in
theSerengeti Management Server, install and configure the distribution for use with Big Data Extensions.
This chapter includes the following topics:
“System Requirements for Big Data Extensions,” on page 19
n
“Internationalization and Localization,” on page 22
n
“Deploy the Big Data Extensions vApp in the vSphere Web Client,” on page 23
n
“Install RPMs in the Serengeti Management Server Yum Repository,” on page 25
n
“Install the Big Data Extensions Plug-In,” on page 26
n
“Connect to a Serengeti Management Server,” on page 28
n
“Install the Serengeti Remote Command-Line Interface Client,” on page 29
n
“Access the Serengeti CLI By Using the Remote CLI Client,” on page 30
n
System Requirements for Big Data Extensions
Before you begin the Big Data Extensions deployment tasks, your system must meet all of the prerequisites
for vSphere, clusters, networks, storage, hardware, and licensing.
Big Data Extensions requires that you install and configure vSphere and that your environment meets
minimum resource requirements. Make sure that you have licenses for the VMware components of your
deployment.
vSphere Requirements
VMware, Inc. 19
Before you install Big Data Extensions, set up the following VMware
products.
Install vSphere 5.0 (or later) Enterprise or Enterprise Plus.
n
NOTE The Big Data Extensions graphical user interface is supported
only when using vSphere Web Client 5.1 and later. If you install
Big Data Extensions on vSphere 5.0, perform all administrative tasks
using the Serengeti CLI.
VMware vSphere Big Data Extensions Administrator's and User's Guide
When you install Big Data Extensions on vSphere 5.1 or later, use
n
VMware® vCenter™ Single Sign-On to provide user authentication.
When logging in to vSphere 5.1 or later you pass authentication to the
vCenter Single Sign-On server, which you can configure with multiple
identity sources such as Active Directory and OpenLDAP. On successful
authentication, your user name and password is exchanged for a
security token that is used to access vSphere components such as
Big Data Extensions.
Configure all ESXi hosts to use the same Network Time Protocol (NTP)
n
server.
On each ESXi host, add the NTP server to the host configuration, and
n
from the host configuration's Startup Policy list, select Start and stop
with host. The NTP daemon ensures that time-dependent processes
occur in sync across hosts.
Cluster Settings
Network Settings
Configure your cluster with the following settings.
Enable vSphere HA and VMware vSphere® Distributed Resource
n
Scheduler™.
Enable Host Monitoring.
n
Enable admission control and set the policy you want. The default
n
policy is to tolerate one host failure.
Set the virtual machine restart priority to high.
n
Set the virtual machine monitoring to virtual machine and application
n
monitoring.
Set the monitoring sensitivity to high.
n
Enable vMotion and Fault Tolerance logging.
n
All hosts in the cluster have Hardware VT enabled in the BIOS.
n
The Management Network VMkernel Port has vMotion and Fault
n
Tolerance logging enabled.
Big Data Extensions can deploy clusters on a single network or use multiple
networks. The environment determines how port groups that are attached to
NICs are configured and which network backs each port group.
You can use either a vSwitch or vSphere Distributed Switch (vDS) to provide
the port group backing a Serengeti cluster. vDS acts as a single virtual switch
across all attached hosts while a vSwitch is per-host and requires the port
group to be configured manually.
When you configure your networks to use with Big Data Extensions, verify
that the following ports are open as listening ports.
Ports 8080 and 8443 are used by the Big Data Extensions plug-in user
n
interface and the Serengeti Command-Line Interface Client.
Port 5480 is used by vCenter Single Sign-On for monitoring and
n
management.
Port 22 is used by SSH clients.
n
To prevent having to open a network firewall port to access Hadoop
n
services, log into the Hadoop client node, and from that node you can
access your cluster.
20 VMware, Inc.
Chapter 2 Installing Big Data Extensions
To connect to the internet (for example, to create an internal yum
n
repository from which to install Hadoop distributions), you may use a
proxy.
To enable communications, be sure that firewalls and web filters do not
n
block the Serengeti Management Server or other Serengeti nodes.
Direct Attached Storage
Resource Requirements
for the vSphere
Management Server and
Templates
Resource Requirements
for the Hadoop Cluster
Attach and configure direct attached storage on the physical controller to
present each disk separately to the operating system. This configuration is
commonly described as Just A Bunch Of Disks (JBOD). Create VMFS
datastores on direct attached storage using the following disk drive
recommendations.
8-12 disk drives per host. The more disk drives per host, the better the
n
performance.
1-1.5 disk drives per processor core.
n
7,200 RPM disk Serial ATA disk drives.
n
Resource pool with at least 27.5GB RAM.
n
40GB or more (recommended) disk space for the management server
n
and Hadoop template virtual disks.
Datastore free space is not less than the total size needed by the Hadoop
n
cluster, plus swap disks for each Hadoop node that is equal to the
memory size requested.
Network configured across all relevant ESXi hosts, and has connectivity
n
with the network in use by the management server.
vSphere HA is enabled for the master node if vSphere HA protection is
n
needed. To use vSphere HA or vSphere FT to protect the Hadoop master
node, you must use shared storage.
Hardware Requirements
for the vSphere and
Big Data Extensions
Environment
Tested Host and Virtual
Machine Support
vSphere Licensing
Host hardware is listed in the VMware Compatibility Guide. To run at optimal
performance, install your vSphere and Big Data Extensions environment on
the following hardware.
Dual Quad-core CPUs or greater that have Hyper-Threading enabled. If
n
you can estimate your computing workload, consider using a more
powerful CPU.
Use High Availability (HA) and dual power supplies for the master
n
node's host machine.
4-8 GBs of memory for each processor core, with 6% overhead for
n
virtualization.
Use a 1GB Ethernet interface or greater to provide adequate network
n
bandwidth.
The maximum host and virtual machine support that has been confirmed to
successfully run with Big Data Extensions is 128 physical hosts running a
total of 512 virtual machines.
You must use a vSphere Enterprise license or above to use VMware vSphere
HA and vSphere DRS.
VMware, Inc. 21
VMware vSphere Big Data Extensions Administrator's and User's Guide
Internationalization and Localization
Big Data Extensions supports internationalization (I18N) level 1. However, there are resources you specify
that do not provide UTF-8 support. You can use only ASCII attribute names consisting of alphanumeric
characters and underscores (_) for these resources.
Big Data Extensions Supports Unicode UTF-8
vCenter Server resources you specify using both the CLI and vSphere Web Client can be expressed with
underscore (_), hyphen (-), blank spaces, and all letters and numbers from any language. For example, you
can specify resources such as datastores labeled using non-English characters.
When using a Linux operating system, you should configure the system for use with UTF-8 encoding
specific to your locale. For example, to use U.S. English, specify the following locale encoding: en_US.UTF-8.
See your vendor's documentation for information on configuring UTF-8 encoding for your Linux
environment.
Special Character Support
The following vCenter Server resources can have a period (.) in their name, letting you select them using
both the CLI and vSphere Web Client.
portgroup name
n
cluster name
n
resource pool name
n
datastore name
n
The use of a period is not allowed in the Serengeti resource name.
Resources Excluded From Unicode UTF-8 Support
The Serengeti cluster specification file, manifest file, and topology racks-hosts mapping file do not provide
UTF-8 support. When you create these files to define the nodes and resources for use by the cluster, use only
ASCII attribute names consisting of alphanumeric characters and underscores (_).
The following resource names are excluded from UTF-8 support:
cluster name
n
nodeGroup name
n
node name
n
virtual machine name
n
The following attributes in the Serengeti cluster specification file are excluded from UTF-8 support:
distro name
n
role
n
cluster configuration
n
storage type
n
haFlag
n
instanceType
n
22 VMware, Inc.
Chapter 2 Installing Big Data Extensions
groupAssociationsType
n
The rack name in the topology racks-hosts mapping file, and the placementPolicies field of the Serengeti
cluster specification file is also excluded from UTF-8 support.
Deploy the Big Data Extensions vApp in the vSphere Web Client
Deploying the Big Data Extensions vApp is the first step in getting your Hadoop cluster up and running
with Big Data Extensions.
Prerequisites
Install and configure vSphere.
n
Configure all ESXi hosts to use the same NTP server.
n
On each ESXi host, add the NTP server to the host configuration, and from the host configuration's
n
Startup Policy list, select Start and stop with host. The NTP daemon ensures that time-dependent
processes occur in sync across hosts.
When installing Big Data Extensions on vSphere 5.1 or later, use vCenter Single Sign-On to provide
n
user authentication.
Verify that you have one vSphere Enterprise license for each host on which you deploy virtual Hadoop
n
nodes. You manage your vSphere licenses in the vSphere Web Client or in vCenter Server.
Install the Client Integration plug-in for the vSphere Web Client. This plug-in enables OVF deployment
n
on your local file system.
NOTE Depending on the security settings of your browser, you might have to approve the plug-in
when you use it the first time.
Download theBig Data ExtensionsOVA from the VMware download site.
n
Verify that you have at least 40GB disk space available for the OVA. You need additional resources for
n
the Hadoop cluster.
Ensure that you know the vCenter Single Sign-On Look-up Service URL for your vCenter Single Sign-
n
On service.
If you are installing Big Data Extensions on vSphere 5.1 or later, ensure that your environment includes
vCenter Single Sign-On. Use vCenter Single Sign-On to provide user authentication on vSphere 5.1 or
later.
Procedure
1In the vSphere Web Client vCenter Hosts and Clusters view, select Actions > All vCenter Actions >
Deploy OVF Template.
2Choose the location where the Big Data Extensions OVA resides and click Next.
OptionDescription
Deploy from File
Deploy from URL
Browse your file system for an OVF or OVA template.
Type a URL to an OVF or OVA template located on the internet. For
example: http://vmware.com/VMTN/appliance.ovf.
3View the OVF Template Details page and click Next.
4Accept the license agreement and click Next.
VMware, Inc. 23
VMware vSphere Big Data Extensions Administrator's and User's Guide
5Specify a name for the vApp, select a target datacenter for the OVA, and click Next.
The only valid characters for Big Data Extensions vApp names are alphanumeric and underscores. The
vApp name must be < 60 characters. When you choose the vApp name, also consider how you will
name your clusters. Together the vApp and cluster names must be < 80 characters.
6Select a vSphere resource pool for the OVA and click Next.
Select a top-level resource pool. Child resource pools are not supported by Big Data Extensions even
though you can select a child resource pool. If you select a child resource pool, you will not be able to
create clusters from Big Data Extensions.
7Select shared storage for the OVA and click Next.
If shared storage is not available, local storage is acceptable.
8For each network specified in the OVF template, select a network in the Destination Networks column
in your infrastructure to set up the network mapping.
The first network lets the Management Server communicate with your Hadoop cluster. The second
network lets the Management Server communicate with vCenter Server. If your vCenter Server
deployment does not use IPv6, you can specify the same IPv4 destination network for use by both
source networks.
9Configure the network settings for your environment, and click Next.
aEnter the network settings that let the Management Server communicate with your Hadoop
cluster.
Use a static IPv4 (IP) network. An IPv4 address is four numbers separated by dots as in
aaa.bbb.ccc.ddd, where each number ranges from 0 to 255. You must enter a netmask, such as
255.255.255.0, and a gateway address, such as 192.168.1.253.
If the vCenter Server or any ESXi host or Hadoop distribution repository is resolved using a fully
qualified domain name (FQDN), you must enter a DNS address. Enter the DNS server IP address
as DNS Server 1. If there is a secondary DNS server, enter its IP address as DNS Server 2.
NOTE You cannot use a shared IP pool with Big Data Extensions.
b(Optional) If you are using IPv6 between the Management Server and vCenter Server, select the
Enable Ipv6 Connection checkbox.
Enter the IPv6 address, or FQDN, of the vCenter Server. The IPv6 address size is 128 bits. The
preferred IPv6 address representation is: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx where each x is
a hexadecimal digit representing 4 bits. IPv6 addresses range from
0000:0000:0000:0000:0000:0000:0000:0000 to ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff. For convenience, an IPv6
address may be abbreviated to shorter notations by application of the following rules.
Remove one or more leading zeroes from any groups of hexadecimal digits. This is usually
n
done to either all or none of the leading zeroes. For example, the group 0042 is converted to 42.
Replace consecutive sections of zeroes with a double colon (::). You may only use the double
n
colon once in an address, as multiple uses would render the address indeterminate. RFC 5952
recommends that a double colon not be used to denote an omitted single section of zeroes.
The following example demonstrates applying these rules to the address
2001:0db8:0000:0000:0000:ff00:0042:8329.
Removing all leading zeroes results in the address 2001:db8:0:0:0:ff00:42:8329.
n
Omitting consecutive sections of zeroes results in the address 2001:db8::ff00:42:8329.
n
See RFC 4291 for more information on IPv6 address notation.
24 VMware, Inc.
Chapter 2 Installing Big Data Extensions
10 Verify that the Initialize Resources check box is selected and click Next.
If the check box is unselected, the resource pool, data store, and network connection assigned to the
vApp will not be added to Big Data Extensions.
If you do not add the resource pool, datastore, and network when you deploy the vApp, use the
vSphere Web Client or the Serengeti CLI Client to specify the resource pool, datastore, and network
information before you create a Hadoop cluster.
11 Run the vCenter SSO Lookup Service URL to enable vCenter SSO.
If you use vCenter 5.x, use the following URL: https://FQDN_or_IP_of_SSO_SERVER:
n
7444/lookupservice/sdk
If you use vCenter 6.0, use the following URL: https://FQDN_of_SSO_SERVER:
n
443/lookupservice/sdk
If you don't input the URL, vCenter SSO is disabled.
12 Verify the vService bindings and click Next.
13 Verify the installation information and click Finish.
vCenter Server deploys the Big Data Extensions vApp. When deployment finishes, two virtual
machines are available in the vApp.
The Management Server virtual machine, management-server (also called the Serengeti
n
Management Server), which is started as part of the OVA deployment.
The Hadoop Template virtual machine, hadoop-template, which is not started. Big Data Extensions
n
clones Hadoop nodes from this template when provisioning a cluster. Do not start or stop this
virtual machine without good reason. The template does not include a Hadoop distribution.
IMPORTANT Do not delete any files under the /opt/serengeti/.chef directory. If you delete any of these
files, such as the sernegeti.pem file, subsequent upgrades to Big Data Extensions might fail without
displaying error notifications.
What to do next
Install the Big Data Extensions plug-in within the vSphere Web Client. See “Install the Big Data Extensions
Plug-In,” on page 26.
If the Initialize Resources check box is not selected, add resources to the Big Data Extensions server before
you create a Hadoop cluster.
Install RPMs in the Serengeti Management Server Yum Repository
Install the wsdl4j and mailx RPM packages within the internal Yum repository of the Serengeti Management
Server.
Prerequisites
Deploy the Big Data Extensions vApp.
Procedure
1Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as the
user serengeti.
VMware, Inc. 25
VMware vSphere Big Data Extensions Administrator's and User's Guide
2Download and install the wsdl4j and mailx RPM packages.
If the Serengeti Management Server can connect to the Internet, run the commands as shown in the
n
example below to download the RPMs, copy the files to the required directory, and create a
repository.
cd /opt/serengeti/www/yum/repos/centos/6/base/RPMS/
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/mailx-12.4-7.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/wsdl4j-1.5.2-7.8.el6.noarch.rpm
createrepo ..
If the Serengeti Management Server can not connect to the Internet, you must manually download
n
the RPMs, copy the files to the required directory, and create a repository.
aDownload the RPM files as shown in the example below.
Install the Serengeti Remote Command-Line Interface client.
Install the Big Data Extensions Plug-In
To enable the Big Data Extensions user interface for use with a vCenter Server Web Client, register the plugin with the vSphere Web Client. The Big Data Extensions graphical user interface is supported only when
you use vSphere Web Client 5.1 and later.
If you install Big Data Extensions on vSphere 5.0, perform all administrative tasks by using the Serengeti
Serengeti CLI Client.
The Big Data Extensions plug-in provides a GUI that integrates with the vSphere Web Client. Using the
Big Data Extensions plug-in interface you can perform common Hadoop infrastructure and cluster
management tasks.
NOTE Use only the Big Data Extensions plug-in interface in the vSphere Web Client or the Serengeti CLI
Client to monitor and manage your Big Data Extensions environment. Performing management operations
in vCenter Server might cause the Big Data Extensions management tools to become unsynchronized and
unable to accurately report the operational status of your Big Data Extensions environment.
Prerequisites
Deploy the Big Data Extensions vApp.
n
Ensure that you have login credentials with administrator privileges for the vCenter Server system with
n
which you are registering Big Data Extensions.
NOTE The user name and password you use to login cannot contain characters whose UTF-8 encoding
is greater than 0x8000.
If you want to use the vCenter Server IP address to access the vSphere Web Client, and your browser
n
uses a proxy, add the vCenter Server IP address to the list of proxy exceptions.
26 VMware, Inc.
Chapter 2 Installing Big Data Extensions
Procedure
1Open a Web browser and go to the URL of vSphere Web Client 5.1 or later.
The hostname-or-ip-address can be either the DNS hostname or IP address of vCenter Server. By default
the port is 9443, but this might have changed during installation of the vSphere Web Client.
2Enter the user name and password with administrative privileges that has permissions on
vCenter Server, and click Login.
3Using the vSphere Web Client Navigator pane, locate the ZIP file on the Serengeti Management Server
that contains the Big Data Extensions plug-in to register to the vCenter Server.
You can find the Serengeti Management Server under the datacenter and resource pool to which you
deployed it.
4From the inventory tree, select management-server to display information about the
Serengeti Management Server in the center pane.
Click the Summary tab in the center pane to access additional information.
5Note the IP address of the Serengeti Management Server virtual machine.
6Open a Web browser and go to the URL of the management-server virtual machine.
The management-server-ip-address is the IP address you noted in Step 5.
7Enter the information to register the plug-in.
OptionAction
Register or Unregister
vCenter Server host name or IP
address
User Name and Password
Big Data Extensions Package URL
Click Install to install the plug-in. Select Uninstall to uninstall the plug-in.
Enter the server host name or IP address of vCenter Server.
Do not include http:// or https:// when you enter the host name or IP
address.
Enter the user name and password with administrative privileges that you
use to connect to vCenter Server. The user name and password cannot
contain characters whose UTF-8 encoding is greater than 0x8000.
Enter the URL with the IP address of the management-server virtual
machine where the Big Data Extensions plug-in package is located:
The Big Data Extensions plug-in registers with vCenter Server and with the vSphere Web Client.
9Log out of the vSphere Web Client, and log back in using your vCenter Server user name and
password.
The Big Data Extensions icon appears in the list of objects in the inventory.
10 Click Big Data Extensions in the Inventory pane.
What to do next
Connect the Big Data Extensions plug-in to the Big Data Extensions instance that you want to manage by
connecting to the corresponding Serengeti Management Server. See “Connect to a Serengeti Management
Server,” on page 28.
VMware, Inc. 27
VMware vSphere Big Data Extensions Administrator's and User's Guide
Connect to a Serengeti Management Server
To use the Big Data Extensions plug-in to manage and monitor big data clusters and Hadoop distributions,
you must connect the Big Data Extensions plug-in to the Serengeti Management Server in your
Big Data Extensions deployment.
You can deploy multiple instances of the Serengeti Management Server in your environment. However, you
can connect the Big Data Extensions plug-in with only one Serengeti Management Server instance at a time.
You can change which Serengeti Management Server instance the plug-in connects to, and use the
Big Data Extensions plug-in interface to manage and monitor multiple Hadoop and HBase distributions
deployed in your environment.
IMPORTANT The Serengeti Management Server that you connect to is shared by all users of the
Big Data Extensions plug-in interface in the vSphere Web Client. If a user connects to a different
Serengeti Management Server, all other users are affected by this change.
Prerequisites
Verify that the Big Data Extensions vApp deployment was successful and that the
n
Serengeti Management Server virtual machine is running.
Verify that the version of the Serengeti Management Server and the Big Data Extensions plug-in is the
n
same.
Ensure that vCenter Single Sign-On is enabled and configured for use by Big Data Extensions for
n
vSphere 5.1 and later.
Install theBig Data Extensions plug-in.
n
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3Click the Summary tab.
4In the Connected Server pane, click the Connect Server link.
5Navigate to the Serengeti Management Server virtual machine in the Big Data Extensions vApp to
which to connect, select it, and click OK.
The Big Data Extensions plug-in communicates using SSL with the Serengeti Management Server.
When you connect to a Serengeti server instance, the plug-in verifies that the SSL certificate in use by
the server is installed, valid, and trusted.
The Serengeti server instance appears as the connected server on the Summary tab of the
Big Data Extensions Home page.
What to do next
You can add resource pool, datastore, and network resources to your Big Data Extensions deployment, and
create big data clusters that you can provision for use.
28 VMware, Inc.
Chapter 2 Installing Big Data Extensions
Install the Serengeti Remote Command-Line Interface Client
Although theBig Data Extensions Plug-in for vSphere Web Client supports basic resource and cluster
management tasks, you can perform a greater number of the management tasks using the Serengeti CLI
Client.
IMPORTANT You can only run Hadoop commands from the Serengeti CLI on a cluster running the Apache
Hadoop 1.2.1 distribution. To use the command-line to run Hadoop administrative commands for clusters
running other Hadoop distributions, such as cfg, fs, mr, pig, and hive, use a Hadoop client node to run
these commands.
Prerequisites
Verify that the Big Data Extensions vApp deployment was successful and that the Management Server
n
is running.
Verify that you have the correct user name and password to log into the Serengeti CLI Client.
n
If you are deploying on vSphere 5.1 or later, the Serengeti CLI Client uses your vCenter Single
n
Sign-On credentials.
If you are deploying on vSphere 5.0, the Serengeti CLI Client uses the default vCenter Server
n
administrator credentials.
Verify that the Java Runtime Environment (JRE) is installed in your environment, and that its location is
n
in your PATH environment variable.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3Click the Getting Started tab, and click the Download Serengeti CLI Console link.
A ZIP file containing the Serengeti CLI Client downloads to your computer.
4Unzip and examine the download, which includes the following components in the cli directory.
The serengeti-cli-version JAR file, which includes the Serengeti CLI Client.
n
The samples directory, which includes sample cluster configurations.
n
Libraries in the lib directory.
n
5Open a command shell, and navigate to the directory where you unzipped the Serengeti CLI Client
download package.
6Change to the cli directory, and run the following command to open the Serengeti CLI Client:
java -jar serengeti-cli-version.jar
What to do next
To learn more about using the Serengeti CLI Client, see the VMware vSphere Big Data Extensions Commandline Interface Guide.
VMware, Inc. 29
VMware vSphere Big Data Extensions Administrator's and User's Guide
Access the Serengeti CLI By Using the Remote CLI Client
You can access the Serengeti Command-Line Interface (CLI) to perform Serengeti administrative tasks with
the Serengeti Remote CLI Client.
IMPORTANT You can only run Hadoop commands from the Serengeti CLI on a cluster running the Apache
Hadoop 1.2.1 distribution. To use the command-line to run Hadoop administrative commands for clusters
running other Hadoop distributions, such as cfg, fs, mr, pig, and hive, use a Hadoop client node to run
these commands.
Prerequisites
Use the VMware vSphere Web Client to log in to the VMware vCenter Server® on which you deployed
n
the Serengeti vApp.
Verify that the Serengeti vApp deployment was successful and that the Management Server is running.
n
Verify that you have the correct password to log in to Serengeti CLI. See the VMware vSphere Big Data
n
Extensions Administrator's and User's Guide.
The Serengeti CLI uses its vCenter Server credentials.
Verify that the Java Runtime Environment (JRE) is installed in your environment and that its location is
n
in your path environment variable.
Procedure
1Open a Web browser to connect to the Serengeti Management Server cli directory.
http://ip_address/cli
2Download the ZIP file for your version and build.
The filename is in the format VMware-Serengeti-cli-version_number-build_number.ZIP.
3Unzip the download.
The download includes the following components.
The serengeti-cli-version_number JAR file, which includes the Serengeti Remote CLI Client.
n
The samples directory, which includes sample cluster configurations.
n
Libraries in the lib directory.
n
4Open a command shell, and change to the directory where you unzipped the package.
5Change to the cli directory, and run the following command to enter the Serengeti CLI.
For any language other than French or German, run the following command.
n
java -jar serengeti-cli-version_number.jar
For French or German languages, which use code page 850 (CP 850) language encoding when
n
running the Serengeti CLI from a Windows command console, run the following command.
You must run the connect host command every time you begin a CLI session, and again after the 30
minute session timeout. If you do not run this command, you cannot run any other commands.
aRun the connect command.
connect --host xx.xx.xx.xx:8443
bAt the prompt, type your user name, which might be different from your login credentials for the
Serengeti Management Server.
NOTE If you do not create a user name and password for the Serengeti Command-Line Interface
Client, you can use the default vCenter Server administrator credentials. The Serengeti CommandLine Interface Client uses the vCenter Server login credentials with read permissions on the
Serengeti Management Server.
cAt the prompt, type your password.
A command shell opens, and the Serengeti CLI prompt appears. You can use the help command to get help
with Serengeti commands and command syntax.
To display a list of available commands, type help.
n
To get help for a specific command, append the name of the command to the help command.
n
help cluster create
Press Tab to complete a command.
n
VMware, Inc. 31
VMware vSphere Big Data Extensions Administrator's and User's Guide
32 VMware, Inc.
Upgrading Big Data Extensions3
You can use VMware vSphere® Update Manager™ to upgrade Big Data Extensions from earlier versions.
This chapter includes the following topics:
“Prepare to Upgrade Big Data Extensions,” on page 33
n
“Upgrade Big Data Extensions Virtual Appliance,” on page 34
n
“Upgrade the Big Data Extensions Plug-in,” on page 38
n
“Upgrade the Serengeti CLI,” on page 38
n
“Upgrade Big Data Extensions Virtual Machine Components by Using the Serengeti Command-Line
n
Interface,” on page 39
Prepare to Upgrade Big Data Extensions
As a prerequisite to upgrading Big Data Extensions, you must prepare your system to ensure that you have
all necessary software installed and configured properly, and that all components are in the correct state.
Data from nonworking Big Data Extensions deployments is not migrated during the upgrade process. If
Big Data Extensions is not working and you cannot recover according to the troubleshooting procedures, do
not try to perform the upgrade. Instead, uninstall the previous Big Data Extensions components and install
the new version.
VMware, Inc.
IMPORTANT Do not delete any files in the /opt/serengeti/.chef directory. If you delete any of these files,
such as the sernegeti.pem file, subsequent upgrades to Big Data Extensions might fail without displaying
error notifications.
Prerequisites
Install vSphere Update Manager. For more information, see the vSphere Update Manager
n
documentation.
Verify that your previous Big Data Extensions deployment is working normally.
n
Verify that you can create a default Hadoop cluster.
n
Procedure
1Install vSphere Update Manager on a Windows Server.
Use the same version of vSphere Update Manager as vCenter Server. For example, if you are using
n
vCenter Server 5.5, use vSphere Update Manager 5.5.
vSphere Update Manager requires network connectivity with vCenter Server. Each
n
vSphere Update Manager instance must be registered with a single vCenter Server instance.
33
VMware vSphere Big Data Extensions Administrator's and User's Guide
2Log in to vCenter Server with the vSphere Web Client.
3Power on the Hadoop Template virtual machine.
4If the Serengeti Management Server is configured to use a static IP network, make sure that the Hadoop
Template virtual machine receives a valid IP address.
You must have a valid IP address and be connected to the network for the Hadoop Template virtual
machine to connect to vSphere Update Manager.
5For each cluster that is in AUTO scaling mode, change the scaling mode to MANUAL.
aOpen a command shell and log in to the Serengeti Management Server as user serengeti.
bSet the scaling mode of the cluster to MANUAL and the --targetComputeNodeNum parameter value
to the number of provisioned compute nodes in the cluster.
6Verify that all Hadoop clusters are in one of the following states:
RUNNING
n
STOPPED
n
CONFIGURE_ERROR
n
If the status of the cluster is PROVISIONING, wait for the process to finish and for the state of the
cluster to change to RUNNING.
7Make sure that the host name of the Serengeti Management Server matches its fully qualified domain
name (FQDN).
8Access the Admin view of vSphere Update Manager.
aStart vSphere Update Manager.
bOn the Home page of the vSphere Web Client, select Hosts and Clusters.
cClick Update Manager.
dOpen the Admin view.
Perform the upgrade tasks in the Admin view.
Upgrade Big Data Extensions Virtual Appliance
You must perform several tasks to complete the upgrade of the Big Data Extensions virtual appliance.
Because the versions of the virtual appliance, the Serengeti CLI, and the Big Data Extensions plug-in must
all be the same, it is important that you upgrade all components to the new version.
Prerequisites
Complete the preparation steps for upgrading Big Data Extensions.
Procedure
1Configure Proxy Settings on page 35
You must have access to the Internet to upgrade your Big Data Extensions virtual appliance. If your
site uses a proxy server to access the Internet, you must configure vSphere Update Manager to use the
proxy server.
2Download the Upgrade Source and Accept the License Agreement on page 35
To start the Big Data Extensions upgrade process, you download the upgrade source and accept the
license agreement (EULA).
34 VMware, Inc.
Chapter 3 Upgrading Big Data Extensions
3Create an Upgrade Baseline on page 36
When you upgrade Big Data Extensions virtual appliances, you must create a custom virtual appliance
upgrade baseline.
4Specify Upgrade Compliance Settings on page 36
Upgrade compliance settings ensure that the upgrade baseline does not conflict with the current state
of your Big Data Extensions virtual appliance.
5Configure the Upgrade Remediation Task and Run the Upgrade Process on page 37
The upgrade remediation task is the process by which vSphere Update Manager applies patches,
extensions, and upgrades to the Big Data Extensions virtual appliance. You configure and run the
remediation task to finish the Big Data Extensions virtual appliance upgrade process.
6Replace the Hadoop Template Virtual Machine Under Big Data Extensions vApp on page 38
To complete upgrade process, you must manually replace the virtual machine template after you
upgrade the Big Data Extensions vApp.
Configure Proxy Settings
You must have access to the Internet to upgrade your Big Data Extensions virtual appliance. If your site uses
a proxy server to access the Internet, you must configure vSphere Update Manager to use the proxy server.
If you do not use a proxy server, continue to “Download the Upgrade Source and Accept the License
Agreement,” on page 35.
Prerequisites
Verify that you have obtained the values for the proxy server URL and port from your network
administrator.
Procedure
1In the Admin view of vSphere Update Manager, click Configuration and then select Download
Settings.
2In the Proxy Settings section, click Use proxy.
3Enter the values for the proxy URL and port.
4Click Test Connection to ensure that the settings are correct.
5If the settings are correct, click Apply.
vSphere Update Manager can now access the Web using the proxy server for your site.
Download the Upgrade Source and Accept the License Agreement
To start the Big Data Extensions upgrade process, you download the upgrade source and accept the license
agreement (EULA).
Prerequisites
Verify that you have the URL from which to download the upgrade source.
For information about the upgrade source and the URL where you can download the upgrade source, see
the VMware knowledge base article at http://kb.vmware.com/ and search on article number 1004543.
Procedure
1In the Admin view of vSphere Update Manager, click Configuration and then select Download
Settings.
VMware, Inc. 35
VMware vSphere Big Data Extensions Administrator's and User's Guide
2On the Download Settings page, click Add Download Source.
3Enter the upgrade source URL in the Source URL text box.
4Click Validate URL to verify connectivity to the upgrade URL.
5Click OK to add the download source to vSphere Update Manager.
6Click Apply.
7Click Download Now.
8On the VA Upgrades tab, select the upgrade.
9Click EULA to accept the end user license agreement.
The upgrade source is downloaded.
Create an Upgrade Baseline
When you upgrade Big Data Extensions virtual appliances, you must create a custom virtual appliance
upgrade baseline.
Prerequisites
Verify that you are logged in to a vSphere Web Client as an administrator and that the vSphere Web Client
is connected to a vCenter Server system with which vSphere Update Manager is registered.
Procedure
1On the Baselines and Groups tab, click VMs/Vas to review the existing baselines and groups.
2Click Create.
3Enter a meaningful name, such as Big Data Extensions VA Upgrade 1.5, and click Next.
4Click Add Multiple Rules to create a set of rules that determine the target upgrade version for virtual
appliances.
5Review the baseline settings and click Finish.
Specify Upgrade Compliance Settings
Upgrade compliance settings ensure that the upgrade baseline does not conflict with the current state of
your Big Data Extensions virtual appliance.
Prerequisites
Verify that you are logged in to a vSphere Web Client as an administrator and that the vSphere Web Client
is connected to a vCenter Server system with which vSphere Update Manager is registered.
Procedure
1In vSphere Web Client, navigate to VMs and Templates and click Upgrade Manager.
2Open Compliance View and select the virtual appliance to upgrade.
3Click Attach.
4Select the upgrade baseline.
5Click Attach again.
36 VMware, Inc.
Chapter 3 Upgrading Big Data Extensions
6Verify that the virtual appliance needs to be updated.
aIn the inventory list, right-click the baseline.
bSelect Scan for Updates.
vSphere Update Manager scans the baseline against the virtual appliance and determines whether
the virtual appliance is up-to-date with the latest Big Data Extensions version. A
vSphere Update Manager scan result of 100 percent indicates that your Big Data Extensions version
is up-to-date.
What to do next
If the Big Data Extensions virtual appliance is up-to-date, discontinue the upgrade process. If the
Big Data Extensions virtual appliance is not up-to-date, continue the upgrade process.
Configure the Upgrade Remediation Task and Run the Upgrade Process
The upgrade remediation task is the process by which vSphere Update Manager applies patches, extensions,
and upgrades to the Big Data Extensions virtual appliance. You configure and run the remediation task to
finish the Big Data Extensions virtual appliance upgrade process.
Prerequisites
Verify that you logged in to a vSphere Web Client as an administrator and that the vSphere Web Client is
connected to a vCenter Server system with which vSphere Update Manager is registered.
NOTE The upgrade can take a few hours to finish.
Procedure
1In the left pane of the VMs and Templates view, right-click the virtual appliance to upgrade and select
Remediate.
All virtual machines and appliances in the container are also remediated.
2On the Remediation Selection page of the Remediate wizard, select the baseline group and upgrade
baselines to apply.
3Select the virtual machines and appliances that you want to remediate and click Next.
4On the Schedule page, enter a unique name and an optional description for the task.
5Select Immediately to begin the upgrade process immediately after the configuration is finished and
click Next.
6Configure the rollback options.
7Specify the snapshot backup to roll back to and click Next.
8Review the task definition and click Finish.
Big Data Extensions restarts when the upgrade remediation task finishes.
9Verify that the Big Data Extensions virtual appliance upgrade was successful.
You can view the version of the Big Data Extensions virtual appliance in the vCenter client.
Some upgrade process errors are written to the Serengeti virtual appliance deployment logs in
vCenter Server rather than appearing as error messages.
VMware, Inc. 37
VMware vSphere Big Data Extensions Administrator's and User's Guide
Replace the Hadoop Template Virtual Machine Under Big Data Extensions vApp
To complete upgrade process, you must manually replace the virtual machine template after you upgrade
the Big Data Extensions vApp.
Procedure
1Download the Big Data Extensions template OVA file from the Big Data Extensions download page.
2Login to the vSphere Client.
3Delete the original hadoop-template virtual machine under the Big Data Extensions vApp or move it
out of the Big Data Extensions vApp which has been upgraded.
4Select File > Deploy OVA Template.
5Enter the downloaded template OVA path in the Deploy OVA Template dialog.
6Complete the steps in the OVA Deployment wizard.
On the step to configure the name and location, enter hadoop-template or any other valid name. On the
step to configure the resource pool, select the Big Data Extensions vApp which has been upgraded.
7Login to the Big Data Extensions server via SSH.
8Restart Big Data Extensions Web services: sudo service tomcat restart
Upgrade the Big Data Extensions Plug-in
You must use the same version of the Serengeti Management Server and the Big Data Extensions plug-in.
Procedure
1Open a Web browser and go to the URL of the Serengeti Management Server plug-in manager service.
4Enter the information to register the new plug-in, and click Submit.
Upgrade the Serengeti CLI
The Serengeti CLI must be the same version as your Big Data Extensions deployment. If you run the CLI
remotely to connect to the management server, you must upgrade the Serengeti CLI.
Procedure
1Log in to the vSphere Web Client.
2Select Big Data Extensions from the navigation panel.
3Click the Summary tab.
4In the Connected Server panel, click Connect Server.
5Select the Serengeti Management Server virtual machine in the Big Data Extensions vApp to which you
want to connect and click OK.
6Click the Getting Started tab, and click Download Serengeti CLI Console.
A ZIP file containing the Serengeti CLI Client downloads to your computer.
38 VMware, Inc.
Chapter 3 Upgrading Big Data Extensions
7Unzip and examine the ZIP file, which includes the following components in the CLI directory:
The serengeti-cli-version JAR file, which includes the Serengeti CLI Client.
n
The samples directory, which includes sample cluster configurations.
n
Libraries in the lib directory.
n
8Open a command shell and navigate to the directory where you unzipped the Serengeti CLI Client
download package.
9Change to the CLI directory, and run the following command to open the Serengeti CLI Client:
java -jar serengeti-cli-version.jar
What to do next
1If your clusters are deployed with a Hadoop Template virtual machine that has a customized version of
the CentOS 6.x operating system that includes VMware Tools, you must customize a new CentOS 6.x
template to use after you upgrade Big Data Extensions.
2To enable the Serengeti Management Server to manage clusters that you created in a previous version
of Big Data Extensions, you must upgrade each cluster.
Upgrade Big Data Extensions Virtual Machine Components by Using
the Serengeti Command-Line Interface
To enable the Serengeti Management Server to manage clusters created in a previous version of Big Data
Extensions, you must upgrade the components in the virtual machines of each cluster. The Serengeti
Management Server uses these components to control the cluster nodes.
When you upgrade from an earlier version of Big Data Extensions, clusters that you need to upgrade are
shown with an alert icon next to the cluster name. When you click the alert icon the error message "Upgrade
the cluster to the latest version" displays as a tool tip. See “View Provisioned Clusters in the vSphere Web
Client,” on page 100.
You can also identify clusters you need to upgrade using the cluster list command. When you run the
cluster list command, the message "Earlier" displays where the cluster version normally appears.
Prerequisites
You must be upgrading a cluster that was created with a previous version of Big Data Extensions.
n
Ensure that you have applied the security patch BDE-2.0.0-Patch1–bash.tar.
n
For more information on the security patch BDE-2.0.0-Patch1–bash.tar, see the VMware knowledge
base article at http://kb.vmware.com/kb/2091050.
VMware, Inc. 39
VMware vSphere Big Data Extensions Administrator's and User's Guide
Procedure
1For each cluster that you created in a previous version of Big Data Extensions, make sure that all of the
nodes of a cluster are in the following states: RUNNING, STOPPED, ERROR, CONFIGURE_ERROR
and UPGRADE_ERROR.
If a node does not have a valid IP address, it cannot be upgraded to the new version of
Big Data Extensions virtual machine tools.
aLog into the vSphere Web Client that is connected to vCenter Server and navigate to Hosts and
Clusters.
bSelect the resource pool of the cluster, select the Virtual Machines tab, and power on the cluster's
virtual machines.
IMPORTANT It might take up to five minutes for vCenter Server to assign valid IP addresses to the Big
Data cluster nodes. Do not perform the remaining upgrade steps until the nodes have received their IP
addresses.
2Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
3Run the cluster upgrade command for each cluster that was created with a previous version of
Big Data Extensions.
4If the upgrade fails for a node, make sure that the failed node has a valid IP address and then rerun the
cluster upgrade command.
You can rerun the command as many times as you need to upgrade all the nodes.
What to do next
Stop and restart your big data clusters.
40 VMware, Inc.
Managing Hadoop Distributions4
The Serengeti Management Server includes the Apache Hadoop distribution, but you can add any
supported Hadoop distribution to your Big Data Extensions environment.
This chapter includes the following topics:
“Managing Application Managers,” on page 41
n
“Hadoop Distribution Deployment Types,” on page 43
n
“Configure a Tarball-Deployed Hadoop Distribution by Using the Serengeti Command-Line
n
Interface,” on page 44
“Configuring Yum and Yum Repositories,” on page 46
n
“Create a Hadoop Template Virtual Machine using RHEL Server 6.x and VMware Tools,” on page 54
n
“Maintain a Customized Hadoop Template Virtual Machine,” on page 57
n
Managing Application Managers
A key to managing your Hadoop clusters is understanding how to manage the different application
managers that you use in your Big Data Extensions environment.
Add an Application Manager by Using the vSphere Web Client
To use either Cloudera Manager or Ambari application managers to manage clusters, you must add the
application manager and add server information to Big Data Extensions.
Application manager names can include only alphanumeric characters ([0-9, a-z, A-Z]) and the following
special characters; underscores, hyphens, and blank spaces.
Procedure
1On the Big Data Extensions navigation pane, click Application Managers.
2Click the Add Application Manager icon (+) at the top of the page to open the New Application
Manager wizard.
VMware, Inc.
41
VMware vSphere Big Data Extensions Administrator's and User's Guide
3Follow the prompts to complete the installation of the application manager.
You can use either http or https.
OptionAction
Use http
Use https
Enter the server URL with http. The SSL certification text box is disabled.
Enter the FQDN instead of the URL. The SSL certification text box is
enabled.
The vSphere Web UI refreshes the Application Manager list and displays it in the List view.
Modify an Application Manager by Using the Web Client
You can modify the information for an application manager, for example, you can change the manager
server IP address if it is not a static IP, or you can upgrade the administrator account.
Prerequisites
Verify that you have at least one external application manager installed on your Big Data Extensions
environment.
Procedure
1In the vSphere Web Client, click Application Managers in the navigation menu.
2From the Application Managers list, right-click the application manager to modify and select edit
settings.
3In the Edit Application Manager dialog box, make the changes to the application manager and click
OK.
Delete an Application Manager by Using the vSphere Web Client
You can delete an application manager with the vSphere Web Client when you no longer need it.
The process fails if the application manager you want to delete contains clusters.
Prerequisites
Verify that you have at least one external application manager installed in your Big Data Extensions
environment.
Procedure
1In the vSphere Web Client, click Application Managers in the navigation pane.
2Right-click the application manager to delete and select Delete.
The application manager is removed from the Application Managers list panel.
View Application Managers and Distributions by Using the Web Client
You can view a list of the application managers and distributions that are currently being used in your
Big Data Extensions environment.
Procedure
From Big Data Extensions, click Application Managers from the Inventory Lists.
u
A list opens that contains the distributions, descriptions, application managers, and how many clusters
are managed by your Big Data Extensions environment.
42 VMware, Inc.
Chapter 4 Managing Hadoop Distributions
View Roles for Application Manager and Distribution by Using the Web Client
You can use the Application Managers pane to view a list and the details of the Hadoop roles for a specific
application manager and distribution.
Procedure
1From Big Data Extensions, click Inventory Lists > Application Managers.
2Select the application manager for which you want to view details.
The details pane opens that contains a list of supported distributions with the name, vendor, version
and roles of the distribution.
Hadoop Distribution Deployment Types
You can choose which Hadoop distribution to use when you deploy a cluster. The type of distribution you
choose determines how you configure it for use with Big Data Extensions. When you deploy the
Big Data Extensions vApp, the Bigtop 0.8.0 distribution is included in the OVA that you download and
deploy.
Depending on which Hadoop distribution that you want to configure to use withBig Data Extensions, use
either a tarball or yum repository to install your distribution. The table lists the supported Hadoop
distributions, and the distribution name, vendor abbreviation, and version number to use as input
parameters when you configure the distribution for use with Big Data Extensions.
Table 4‑1. Hadoop Deployment Types
Vendor
Hadoop DistributionVersion Number
Apache1.2.1APACHETarballYes
Bigtop0.8BIGTOPYumNo
Pivotal HD2.0.1 - 2.1PHDYumYes
Hortonworks Data Platform1.3.0 - 1.3.8HDPTarballYes
2.0 - 2.1.1HDPYumNo
Cloudera4.7 - 5.1CDHYumNo
MapR3.0 - 3.1.0MAPRYumNo
About Hadoop
Virtualization
Extensions
Configure Hadoop 2.x
and Later Distributions
with DNS Name
Resolution
Hadoop Virtualization Extensions (HVE), developed by VMware, improves
Hadoop performance in virtual environments by enhancing Hadoop’s
topology awareness mechanism to account for the virtualization layer.
When you create clusters using Hadoop distributions based on Hadoop 2.0
and later, the DNS server in your network must provide forward and reverse
FQDN/IP resolution. Without valid DNS and FQDN settings, the cluster
creation process might fail, or the cluster is created but does not function.
AbbreviationDeployment TypeHVE Support?
Hadoop distributions based on Hadoop 2.x and later include Apache Bigtop,
Cloudera CDH4 and CDH5, Hortonworks HDP 2.x, and Pivotal PHD 1.1 and
later releases.
VMware, Inc. 43
VMware vSphere Big Data Extensions Administrator's and User's Guide
Configure a Tarball-Deployed Hadoop Distribution by Using the
Serengeti Command-Line Interface
You can add and configure Hadoop distributions other than those included with the Big Data Extensions
vApp using the command line. You can configure multiple Hadoop distributions from different vendors.
Refer to your Hadoop distribution vendor's Web site to obtain the download URLs to use for the
components that you want to install. If you are behind a firewall, you might need to modify your proxy
settings to allow the download. Before you install and configure tarball-based deployments, ensure that you
have the vendor's URLs from which to download the different Hadoop components. Use these URLs as
input parameters to the config-distro.rb configuration utility.
If you have a local Hadoop distribution and your server does not have access to the Internet, you can
manually upload the distribution.
Prerequisites
Deploy the Big Data Extensions vApp.
n
Review the different Hadoop distributions so you know which distribution name abbreviation, vendor
n
name abbreviation, and version number to use as an input parameter, and whether the distribution
supports Hadoop Virtualization Extension (HVE).
(Optional) Set the password for the Serengeti Management Server.
n
Procedure
1Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
2Run the /opt/serengeti/sbin/config-distro.rb Ruby script.
Name to identify the Hadoop distribution that you are downloading. For
example, hdp for Hortonworks. This name can include alphanumeric
characters ([a-z], [A-Z], [0-9]) and underscores ("_").
Vendor name whose Hadoop distribution you want to use. For example,
HDP for Hortonworks.
Version of the Hadoop distribution that you want to use. For example,
1.3.
URL from which to download the Hadoop distribution tarball package
from the Hadoop vendor's Web site.
URL from which to download the Pig distribution tarball package from the
Hadoop vendor's Web site.
URL from which to download the Hive distribution tarball package from
the Hadoop vendor's Web site.
(Optional) URL from which to download the HBase distribution tarball
package from the Hadoop vendor's Web site.
(Optional) URL from which to download the ZooKeeper distribution
tarball package from the Hadoop vendor's Web site.
(Optional) Specifies whether the Hadoop distribution supports HVE
(Optional) Specifies that all confirmation prompts from the config-distro.rb script are answered with a "yes" response.
44 VMware, Inc.
Chapter 4 Managing Hadoop Distributions
The example downloads the tarball version of Hortonworks Data Platform (HDP), which consists of
Hortonworks Hadoop, Hive, HBase, Pig, and ZooKeeper distributions. Note that you must provide the
download URL for each of the software components you wish to configure for use with
Big Data Extensions.
3When the download finishes, explore the /opt/serengeti/www/distros directory, which includes the
following directories and files.
ItemDescription
name
manifest
manifest.example
Directory that is named after the distribution. For example, apache.
The manifest file that is generated by config-distro.rb that is used to
download the Hadoop distribution.
Example manifest file. This file is available before you perform the
download. The manifest file is a JSON file with three sections: name,
version, and packages.
4To enable Big Data Extensions to use the added distribution, restart the tomcat service.
sudo /sbin/service tomcat restart
The Serengeti Management Server reads the revised manifest file and adds the distribution to those
from which you can create a cluster.
5Return to the Big Data Extensions Plug-in for vSphere Web Client, and click Hadoop Distributions to
verify that the Hadoop distribution is available to use to create a cluster.
The distribution and the corresponding role appear.
The distribution is added to the Serengeti Management Server, but is not installed in the Hadoop Template
virtual machine. The agent is preinstalled on each virtual machine that copies the distribution components
that you specify from the Serengeti Management Server to the nodes during the Hadoop cluster creation
process.
What to do next
You can add datastore and network resources for the Hadoop clusters that you create.
You can create and deploy big data clusters using your chosen Hadoop distribution.
VMware, Inc. 45
VMware vSphere Big Data Extensions Administrator's and User's Guide
Configuring Yum and Yum Repositories
You can deploy Cloudera CDH4 and CDH5, Apache Bigtop, MapR, and Pivotal PHD Hadoop distributions
using Yellowdog Updater, Modified (yum). Yum enables automatic updates and package management of
RPM-based software distributions. To deploy a Hadoop distribution using yum, you must create and
configure a yum repository.
Yum Repository Configuration Values on page 46
n
To create a local yum repository, you create a configuration file that identifies the file and package
names of a distribution to download and deploy. When you create the configuration file, you replace a
set of placeholder values with values that correspond to your Hadoop distribution. The yum
repositories are are used to install or update Hadoop software on CentOS and other operating systems
that use Red Hat Package Manager (RPM).
Setup a Local Yum Repository for Apache Bigtop, Cloudera, Hortonworks, and MapR Hadoop
n
Distributions on page 49
Although publicly available yum repositories exist for Ambari, Apache Bigtop, Cloudera,
Hortonworks, and MapReduce distributions, creating your own yum repository can result in faster
download times and greater control over the repository.
Setup a Local Yum Repository for the Pivotal Hadoop Distribution on page 51
n
Pivotal does not provide a publicly accessible yum repository from which you can deploy and
upgrade the Pivotal Hadoop software distribution. Therefore, you might want to download the
Pivotal software tarballs and create your own yum repository for Pivotal which provides you with
better access and control over installing and updating your Pivotal HD distribution software.
Configure a Yum-Deployed Hadoop Distribution on page 53
n
You can install Hadoop distributions that use yum repositories (as opposed to tarballs) for use with
Big Data Extensions. When you create a cluster for a yum-deployed Hadoop distribution, the Hadoop
nodes download and install Red Hat Package Manager (RPM) packages from the official yum
repositories for a particular distribution or your local yum repositories.
Yum Repository Configuration Values
To create a local yum repository, you create a configuration file that identifies the file and package names of
a distribution to download and deploy. When you create the configuration file, you replace a set of
placeholder values with values that correspond to your Hadoop distribution. The yum repositories are are
used to install or update Hadoop software on CentOS and other operating systems that use Red Hat
Package Manager (RPM).
The following tables list the values to use for the Ambari, Apache Bigtop, Cloudera, Hortonworks, MapR,
and Pivotal distributions.
NOTE If you copy-and-paste values from the table, be sure to include all required information. Some values
appear on two lines in the table, for example, "maprtech maprecosystem", and they must be combined into a
single line when you use them.
Setup a Local Yum Repository for Apache Bigtop, Cloudera, Hortonworks, and
MapR Hadoop Distributions
Although publicly available yum repositories exist for Ambari, Apache Bigtop, Cloudera, Hortonworks, and
MapReduce distributions, creating your own yum repository can result in faster download times and
greater control over the repository.
Prerequisites
High-speed Internet access.
n
CentOS 6.x 64-bit or Red Hat Enterprise Linux (RHEL) 6.x 64-bit.
n
The hadoop-template virtual machine in the Serengeti vApp contains CentOS 6.5 64-bit. You can clone
the hadoop-template virtual machine to a new virtual machine and create the yum repository on it.
An HTTP server with which to create the yum repository. For example, Apache HTTP server.
n
If there is a firewall on your system, ensure that the firewall does not block the network port number
n
used by your HTTP server proxy. Typically, this is port 80.
Refer to the yum repository placeholder values to populate the variables required in the steps. See
n
“Yum Repository Configuration Values,” on page 46.
VMware, Inc. 49
VMware vSphere Big Data Extensions Administrator's and User's Guide
Procedure
1If your yum repository server requires an HTTP proxy server, open a command shell, such as Bash or
PuTTY, log in to the yum repository server, and run the following commands to export the http_proxy
environment variable.
# switch to root user
sudo su
export http_proxy=http://host:port
OptionDescription
host
port
The hostname or the IP address of the proxy server.
The network port number to use with the proxy server.
2Install the HTTP server that you want to use as a yum server.
This example installs the Apache HTTP Server and enables the httpd server to start whenever the
machine is restarted.
yum install -y httpd
/sbin/service httpd start
/sbin/chkconfig httpd on
3Install the yum-utils and createrepo packages.
The yum-utils package contains the reposync command.
yum install -y yum-utils createrepo
4Synchronize the yum server with the official yum repository of your preferred Hadoop vendor.
aUsing a text editor, create the file /etc/yum.repos.d/$repo_file_name.
bAdd the package_info content to the new file.
cMirror the remote yum repository to the local machine by running the mirror_cmds for your
distribution packages.
It might take several minutes to download the RPMs from the remote repository. The RPMs are
placed in the $default_rpm_dir directories.
5Create the local yum repository.
aMove the RPMs to a new directory under the Apache HTTP Server document root.
If the virtual machines created by the Serengeti Management Server do not need an HTTP proxy to
connect to the local yum repository, skip this step.
On the Serengeti Management Server, edit the /opt/serengeti/conf/serengeti.properties file and add
the following content anywhere in the file or replace existing items:
# set http proxy server
serengeti.http_proxy = http://<proxy_server:port>
# set the FQDNs (or IPs if no FQDN) of the Serengeti Management Server and the
local yum repository servers for 'serengeti.no_proxy'.
The wildcard for matching multi IPs doesn't work.
serengeti.no_proxy = serengeti_server_fqdn_or_ip.
Configure your Apache Bigtop, Cloudera, Hortonworks, or MapR deployment for use with Big Data
Extensions. See “Configure a Yum-Deployed Hadoop Distribution,” on page 53.
Setup a Local Yum Repository for the Pivotal Hadoop Distribution
Pivotal does not provide a publicly accessible yum repository from which you can deploy and upgrade the
Pivotal Hadoop software distribution. Therefore, you might want to download the Pivotal software tarballs
and create your own yum repository for Pivotal which provides you with better access and control over
installing and updating your Pivotal HD distribution software.
Pivotal does not provide a publicly accessible yum repository from which you can deploy and upgrade the
Pivotal Hadoop software distribution. You might want to download the Pivotal software tarballs, and create
your own yum repository from which to deploy and configure the Pivotal Hadoop software.
Prerequisites
High-speed Internet access.
n
CentOS 6.x 64-bit or Red Hat Enterprise Linux (RHEL) 6.x 64-bit.
n
The hadoop-template virtual machine in the Big Data Extensions vApp contains CentOS 6.5 64-bit. You
can clone the hadoop-template virtual machine to a new virtual machine and create the yum repository
on it.
NOTE Because the Pivotal Hadoop distribution requires CentOS 6.2 64-bit version or 6.4 64-bit version
(x86_64), the yum server that you create to deploy the distribution must also use a CentOS 6.x 64-bit
operating system.
An HTTP server with which to create the yum repository. For example, Apache HTTP server.
n
If there is a firewall on your system, ensure that the firewall does not block the network port number
n
used by your HTTP server proxy. Typically, this is port 80.
VMware, Inc. 51
VMware vSphere Big Data Extensions Administrator's and User's Guide
Procedure
1If your yum repository server requires an HTTP proxy server, open a command shell, such as Bash or
PuTTY, log in to the yum repository server, and run the following commands to export the http_proxy
environment variable.
# switch to root user
sudo su
export http_proxy=http://host:port
OptionDescription
host
port
The hostname or the IP address of the proxy server.
The network port number to use with the proxy server.
2Install the HTTP server that you want to use with a yum server.
This example installs the Apache HTTP Server and enables the httpd server to start whenever the
machine is restarted.
yum install -y httpd
/sbin/service httpd start
/sbin/chkconfig httpd on
3Install the yum-utils and createrepo packages.
The yum-utils package includes the reposync command.
yum install -y yum-utils createrepo
4Download the Pivotal HD 1.0 or 2.0 tarball from the Pivotal Web site.
5Extract the tarball that you downloaded.
The tarball name might vary if you download a different version of Pivotal HD.
tar -xf phd_1.0.1.0-19_community.tar
6Extract PHD_1.0.1_CE/PHD-1.0.1.0-19.tar to the default_rpm_dir directory.
For Pivotal Hadoop the default_rpm_dir directory is pivotal.
The version numbers of the tar that you extract might be different from those used in the example if an
update has occurred.
tar -xf PHD_1.0.1_CE/PHD-1.0.1.0-19.tar -C pivotal
7Create and configure the local yum repository.
aMove the RPMs to a new directory under the Apache HTTP Server document root.
If the virtual machines created by the Serengeti Management Server do not need an HTTP proxy to
connect to the local yum repository, skip this step.
On the Serengeti Management Server, edit the file/opt/serengeti/conf/serengeti.properties, and add
the following content anywhere in the file or replace existing items:
# set http proxy server
serengeti.http_proxy = http://<proxy_server:port>
# set the FQDNs (or IPs if no FQDN) of the Serengeti Management Server and the
local yum repository servers for 'serengeti.no_proxy'.
The wildcard for matching multi IPs doesn't work.
serengeti.no_proxy = serengeti_server_fqdn_or_ip.
yourdomain.com, yum_server_fqdn_or_ip.yourdomain.com
Configure a Yum-Deployed Hadoop Distribution
Chapter 4 Managing Hadoop Distributions
You can install Hadoop distributions that use yum repositories (as opposed to tarballs) for use with
Big Data Extensions. When you create a cluster for a yum-deployed Hadoop distribution, the Hadoop nodes
download and install Red Hat Package Manager (RPM) packages from the official yum repositories for a
particular distribution or your local yum repositories.
Prerequisites
Review the different Hadoop distributions so that you know which distribution name, vendor
n
abbreviation, and version number to use as an input parameter, and whether the distribution supports
Hadoop Virtualization Extensions.
Create a local yum repository for your Hadoop distribution. Creating your own repository can result in
n
better access and more control over the repository.
Procedure
1Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
2Run the /opt/serengeti/sbin/config-distro.rb Ruby script.
Name to identify the Hadoop distribution that you are downloading. For
example, chd4 for Cloudera CDH4. This name can include alphanumeric
characters ([a-z], [A-Z], [0-9]) and underscores ("_").
Abbreviation of vendor name whose Hadoop distribution you want to use.
For example, CDH.
Version of the Hadoop distribution that you want to use. For example,
4.6.0.
URL from which to download the Hadoop distribution yum package. This
URL can be a local yum repository that you create or a publicly accessible
yum repository hosted by the software vendor.
VMware, Inc. 53
VMware vSphere Big Data Extensions Administrator's and User's Guide
This example adds the Apache Bigtop Hadoop Distribution to Big Data Extensions.
3To enable Big Data Extensions to use the new distribution, restart the Tomcat service.
sudo /sbin/service tomcat restart
The Serengeti Management Server reads the revised manifest file and adds the distribution to those
from which you can create a cluster.
4Return to the Big Data Extensions Plug-in for vSphere Web Client, and click Hadoop Distributions to
verify that the Hadoop distribution is available.
What to do next
You can create Hadoop and HBase clusters.
Create a Hadoop Template Virtual Machine using RHEL Server 6.x and
VMware Tools
You can create a Hadoop Template virtual machine that has a customized version of the RHEL Server 6.x
operating system that includes VMware Tools. Although only a few Hadoop distributions require a custom
version of RHEL Server 6.x, you can customize RHEL Server 6.x for any Hadoop distribution.
You can create a Hadoop Template virtual machine that uses RHEL Server 6.1 or later as the guest operating
system into which you can install VMware Tools for RHEL 6.x in combination with a supported Hadoop
distribution. This allows you to create a Hadoop Template virtual machine that uses your organization's
operating system configuration. When you provision Big Data clusters using the customized Hadoop
template, the VMware Tools for RHEL 6.x will be in the virtual machines that are created from the Hadoop
Template virtual machine.
54 VMware, Inc.
Chapter 4 Managing Hadoop Distributions
If you create Hadoop Template virtual machines with multiple cores per socket, when you specify the CPU
settings for the virtual machine you must specify a multiple of cores per socket. For example, if the virtual
machine uses two cores per socket, the vCPU settings must be an even number. For example: 4, 8, or 12. If
you specify an odd number, the cluster provisioning or CPU resizing will fail.
IMPORTANT
You must use localhost.localdomain as the hostname when you install the RHEL template or the the
n
FQDN is not set correctly.
If you are performing disk partitioning, do not use the Linux Volume Manager (LVM).
n
Prerequisites
Deploy theBig Data Extensions vApp. See “Deploy the Big Data Extensions vApp in the vSphere Web
n
Client,” on page 23.
Obtain the IP address of the Serengeti Management Server.
n
Locate the VMware Tools version that corresponds to the ESXi version in your data center.
n
Procedure
1Create a virtual machine template with a 20GB thin provisioned disk and install RHEL 6.x.
aDownload the RHEL Server 6.x installation ISO from www.redhat.com to a datastore.
bIn vSphere Client, create a new virtual machine with a 20GB thin provision disk and select Red Hat
Enterprise Linux 6 (64-bit) as the Guest OS.
cRight-click the virtual machine and click Edit Settings.
dSelect CD/DVD Device 0, and select the datastore ISO file for the RHEL ISO file.
eSelect SCSI controller 0 > Change Type > LSI Logic Parallel and click OK.
fUnder Device Status, select connected and connect at power on, and click OK.
gFrom the console window of the virtual machine, install the RHEL Server 6.x operating system
using the default settings for all settings except the following items:
You can select the language and time zone you want the operating system to use
n
You can specify that the swap partition use a smaller size to save disk space (for example,
n
500MB)
You can reduce the size of the swap partition because it is not used by Big Data Extensions.
n
Select Minimal in the Package Installation Defaults screen.
n
For more information, see the Red Hat Enterprise Linux Installation Guide, available on the Red Hat
website.
2Run the ifconfig command to ensure that the virtual machine has a valid IP and Internet connectivity.
This task assumes the use of Dynamic Host Configuration Protocol (DHCP).
If IP address information appears, skip to Step 4.
n
If no IP address information appears, which is the case when DHCP is configured, continue with
n
Step 3.
VMware, Inc. 55
VMware vSphere Big Data Extensions Administrator's and User's Guide
3Configure the network.
aUsing a text editor open the /etc/sysconfig/network-scripts/ifcfg-eth0 file.
bLocate the following parameters and specify the following configuration.
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
cSave your changes and close the file.
dRestart the network service.
sudo /sbin/service network restart
eRun the ifconfig command to ensure that the virtual machine has a valid IP and Internet
connectivity.
4Install the latest JDK 7 RPM.
aFrom the Oracle® Java SE 7 Downloads page, download the latest JDK 7 Linux x64 RPM and copy
it to the root folder of the virtual machine template.
bInstall the RPM.
rpm -Uvh jdk-7uxx-linux-x64.rpm
cDelete the RPM file.
rm -f jdk-7uxx-linux-x64.rpm
dEdit /etc/environment and add the following line: JAVA_HOME=/usr/java/default
5(Optional) In the vSphere Web Client, right-click the virtual machine and select Snapshot > Take
Snapshot.
Create a snapshot to use for recovery operations.
6Deploy the Big Data Extension vApp.
7Run the installation scripts to customize the virtual machine.
aRegister the RHEL operating system to enable the RHEL yum repositories. This allows the
installation script to download packages from the yum repository. See "Registering from the
Command Line" in the Red Hat Enterprise Linux 6 Deployment Guide, available on the Red Hat
website.
bDownload the scripts from https://deployed_serengeti_server_IP/custos/custos.tar.gz.
cCreate the directory /tmp/custos, make this your working directory, and run tar xf to uncompress
the tar file.
mkdir /tmp/custos
cd /tmp/custos
tar xf /tmp/custos/custos.tar.gz
dRun the installer.sh script specifying the /usr/java/default directory path.
./installer.sh /usr/java/default
You must use the same version of the installer.sh script as your Big Data Extensions deployment.
8Remove the /etc/udev/rules.d/70-persistent-net.rules file to prevent increasing the eth number
during the clone operation.
If you do not remove the file, virtual machines that are cloned from the template cannot get IP
addresses. If you power on the Hadoop Template virtual machine to make changes, remove the file
before you shut down this virtual machine.
56 VMware, Inc.
Chapter 4 Managing Hadoop Distributions
9Install VMware Tools for RHEL 6.x.
aRight-click the RHEL 6 virtual machine in vSphere Client, then select Guest > Install/Upgrade
VMware Tools.
bLog in to the virtual machine and mount the CD-ROM to access the VMware Tools installation
package.
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
mkdir /tmp/vmtools
cd /tmp/vmtools
cRun the tar xf command to extract the VMware Tools package tar file.
tar xf /mnt/cdrom/VMwareTools-*.tar.gz
dMake vmware-tools-distrib your working directory, and run the vmware-install.pl script.
cd vmware-tools-distrib
./vmware-install.pl
Press Enter to finish the installation.
eRemove the vmtools temporary (temp) file that is created as an artifact of the installation process.
rm -rf /tmp/vmtools
10 Shut down virtual machine.
11 If you created a snapshot as described in Step 5, delete it. In the vSphere Web Client, right-click the
virtual machine, select Snapshot > Snapshot Manager, select the serengeti-snapshot, and click Delete.
12 Synchronize the time on the Hadoop Template virtual machine with vCenter Server.
aIn the vSphere Web Client, right-click the Hadoop Template virtual machine and select Edit
Settings.
bOn the VM Options tab, click VMware Tools > Synchronize guest time with host.
13 On the Virtual Hardware tab of the Edit Settings dialog, uncheck the Connected checkbox. If the
CD/DVD Device is connected to the ISO file, the clone virtual machine process fails.
14 Replace the original Hadoop Template virtual machine with the customized virtual machine that you
created.
aMove the original Hadoop Template virtual machine out of the vApp.
bDrag the new template virtual machine that you just created into the vApp.
15 Log in to the Serengeti Management Server as the user serengeti, and restart the Tomcat service.
sudo /sbin/service tomcat restart
Restarting the Tomcat service enables the custom RHEL virtual machine template, making it your
Hadoop Template virtual machine.
Maintain a Customized Hadoop Template Virtual Machine
You can modify or update the Hadoop Template virtual machine operating system. When you make
updates, you must remove the snapshot that is created by the virtual machine.
If you create a custom Hadoop Template virtual machine that uses a version of RHEL 6.x, or modify the
operating system, you must remove the serengeti-snapshot that Big Data Extensions creates. If you do not
remove the serengeti-snapshot, changes you made to the Hadoop Template virtual machine will not take
effect.
VMware, Inc. 57
VMware vSphere Big Data Extensions Administrator's and User's Guide
Prerequisites
Deploy the Big Data Extensions vApp. See “Deploy the Big Data Extensions vApp in the vSphere Web
n
Client,” on page 23.
Create a customized Hadoop Template virtual machine using RHEL 6.x. See “Create a Hadoop
n
Template Virtual Machine using RHEL Server 6.x and VMware Tools,” on page 54
.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Power on the Hadoop Template virtual machine and apply changes or updates.
3Remove the /etc/udev/rules.d/70-persistent-net.rules file to prevent increasing the eth number
during the clone operation.
If you do not remove the file, virtual machines that are cloned from the template cannot get IP
addresses. If you power on the Hadoop Template virtual machine to make changes, remove the file
before you shut down this virtual machine.
4From the vSphere Web Client, shut down the Hadoop Template virtual machine.
5Delete the snapshot labeled serengeti-snapshot from the customized Hadoop Template virtual machine.
aIn the vSphere Web Client, right-click the Hadoop Template virtual machine and select Snapshot >
Snapshot Manager
bSelect the serengeti-snapshot, and click Delete.
The generated snapshot is removed.
6Synchronize the time on the Hadoop Template virtual machine with vCenter Server.
aIn the vSphere Web Client, right-click the Hadoop Template virtual machine and select Edit
Settings.
bOn the VM Options tab, click VMware Tools > Synchronize guest time with host.
58 VMware, Inc.
Managing the Big Data Extensions
Environment5
After you install Big Data Extensions, you can stop and start the Serengeti services, create user accounts,
manage passwords, update SSL certificates, and log in to cluster nodes to perform troubleshooting.
This chapter includes the following topics:
“Add Specific User Names to Connect to the Serengeti Management Server,” on page 59
n
“Change the Password for the Serengeti Management Server,” on page 60
n
“Configure vCenter Single Sign-On Settings for the Serengeti Management Server,” on page 61
n
“Create a User Name and Password for the Serengeti Command-Line Interface,” on page 61
n
“Stop and Start Serengeti Services,” on page 62
n
Add Specific User Names to Connect to the Serengeti Management
Server
You can add specific user names with which to login to the Serengeti Management Server. The user names
you add are the only users who can connect to the Serengeti Management Server using the Serengeti CLI or
the Big Data Extensions user interface for use with vSphere Web Client.
VMware, Inc.
Passwords are from 8 to 128 characters, and include only alphanumeric characters ([0-9, a-z, A-Z]) and the
following special characters: _ @ # $ % ^ & *.
Prerequisites
Deploy the Serengeti vApp.
n
Use the vSphere Web Client to log in to vCenter Server, and verify that the
n
Serengeti Management Server virtual machine is running.
Procedure
1Right-click the Serengeti Management Server virtual machine and select Open Console.
The password for the Serengeti Management Server appears.
NOTE If the password scrolls off the console screen, press Ctrl+D to return to the command prompt.
2Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
Use the IP address that appears in the Summary tab and the current password.
3Edit the /opt/serengeti/conf/Users.xml file to add additional user names.
vi /opt/serengeti/conf/Users.xml
59
VMware vSphere Big Data Extensions Administrator's and User's Guide
4Edit the <user name="*" /> attribute by replacing the asterisk (*) wildcard character with the user name
you wish to use. You can add multiple user names by adding a new <user name="name" /> attribute on
its own line. The User.xml file supports multiple lines.
Only the user names you add to the User.xml file can be used to login to the Serengeti Management Server
using the Serengeti CLI or the Big Data Extensions user interface for use with vSphere Web Client.
Change the Password for the Serengeti Management Server
When you power on the Serengeti Management Server for the first time, it generates a random password
that is used for the root and serengeti users. If you want an easier to remember password, you can use the
virtual machine console to change the random password for the root and serengeti users.
NOTE You can change the password for the virtual machine of any node by using this procedure.
Passwords are from 8 to 128 characters, and include only alphanumeric characters ([0-9, a-z, A-Z]) and the
following special characters: _ @ # $ % ^ & *.
Prerequisites
Deploy the Serengeti vApp.
n
Use the vSphere Web Client to log in to vCenter Server, and verify that the Serengeti Management
n
Server virtual machine is running.
Procedure
1Right-click the Serengeti Management Server virtual machine and select Open Console.
The password for the Serengeti Management Server appears.
NOTE If the password scrolls off the console screen, press Ctrl+D to return to the command prompt.
2Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
Use the IP address that appears in the Summary tab and the current password.
3Use the /opt/serengeti/sbin/set-password command to change the password for the root user and the
serengeti user.
sudo /opt/serengeti/sbin/set-password -u
4Enter a new password, and enter it again to confirm.
The next time you log in to the Serengeti Management Server, use the new password.
What to do next
You can create a new user name and password for the Serengeti Command-Line Interface Client.
60 VMware, Inc.
Chapter 5 Managing the Big Data Extensions Environment
Configure vCenter Single Sign-On Settings for the Serengeti
Management Server
If the Big Data Extensions Single Sign-On (SSO) authentication settings are not configured or if they change
after you install the Big Data Extensions plug-in, you can use the Serengeti Management Server
Administration Portal to enable SSO, update the certificate, and register the plug-in so that you can connect
to the Serengeti Management Server and continue managing clusters.
The SSL certificate for the Big Data Extensions plug-in can change for many reasons. For example, you
install a custom certificate or replace an expired certificate.
Prerequisites
Ensure that you know the IP address of the Serengeti Management Server to which you want to
n
connect.
Ensure that you have login credentials for the Serengeti Management Server root user.
n
Procedure
1Open a Web browser and go the URL of the Serengeti Management Server Administration Portal.
https://management-server-ip-address:5480
2Type root for the user name, type the password, and click Login.
3Select the SSO tab.
4Do one of the following.
OptionDescription
Update the certificate
Enable SSO for the first time
The Big Data Extensions and vCenter SSO server certificates are synchronized.
What to do next
Reregister the Big Data Extensions plug-in with the Serengeti Management Server. See “Connect to a
Serengeti Management Server,” on page 28.
Click Update Certificate.
Type the Lookup Service URL, and click Enable SSO.
Create a User Name and Password for the Serengeti Command-Line
Interface
The Serengeti Command-Line Interface Client uses the vCenter Server login credentials with read
permissions on the Serengeti Management Server. If you do not create a user name and password for the
Serengeti Command-Line Interface Client, it will use the default vCenter Server administrator credentials.
However, for security reasons, it's best to create a user account specifically for use with the Serengeti
Command-Line Interface Client.
Passwords are from 8 to 128 characters, and include only alphanumeric characters ([0-9, a-z, A-Z]) and the
following special characters: _ @ # $ % ^ & *.
Prerequisites
Deploy the Big Data Extensions vApp. See “Deploy the Big Data Extensions vApp in the vSphere Web
n
Client,” on page 23.
Install the Serengeti Command-Line Interface Client. See “Install the Serengeti Remote Command-Line
n
Interface Client,” on page 29.
VMware, Inc. 61
VMware vSphere Big Data Extensions Administrator's and User's Guide
Procedure
1Open a Web browser and go to: https://vc-hostname:port/vsphere-client.
The vc-hostname can be either the DNS host name or IP address of vCenter Server. By default the port is
9443, but this can change during the installation of the vSphere Web Client.
2Type the user name and password that has administrative privileges on vCenter Server, and click
Login.
NOTE vCenter Server 5.5 users must use a local domain to perform SSO related operations.
3From the vSphere Web Client Navigator panel, select Administration, SSO Users and Groups.
4Change the login credentials.
The login credentials are updated. The next time you access the Serengeti Command-Line Interface use the
new login credentials.
What to do next
You can change the password of the Serengeti Management Server. See “Change the Password for the
Serengeti Management Server,” on page 60.
Stop and Start Serengeti Services
You can stop and start Serengeti services to make a reconfiguration take effect, or to recover from an
operational anomaly.
Procedure
1Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
2Run the serengeti-stop-services.sh script to stop the Serengeti services.
serengeti-stop-services.sh
3Run the serengeti-start-services.sh script to start the Serengeti services.
serengeti-start-services.sh
62 VMware, Inc.
Managing vSphere Resources for
Clusters6
Big Data Extensions lets you manage the resource pools, datastores, and networks that you use in the
clusters that you create.
This chapter includes the following topics:
“Add a Resource Pool with the Serengeti Command-Line Interface,” on page 63
n
“Remove a Resource Pool with the Serengeti Command-Line Interface,” on page 64
n
“Add a Datastore in the vSphere Web Client,” on page 64
n
“Remove a Datastore in the vSphere Web Client,” on page 65
n
“Add a Network in the vSphere Web Client,” on page 65
n
“Reconfigure a Static IP Network in the vSphere Web Client,” on page 66
n
“Remove a Network in the vSphere Web Client,” on page 66
n
Add a Resource Pool with the Serengeti Command-Line Interface
You add resource pools to make them available for use by Hadoop clusters. Resource pools must be located
at the top level of a cluster. Nested resource pools are not supported.
When you add a resource pool to Big Data Extensions it symbolically represents the actual vSphere resource
pool as recognized by vCenter Server. This symbolic representation lets you use the Big Data Extensions
resource pool name, instead of the full path of the resource pool in vCenter Server, in cluster specification
files.
NOTE After you add a resource pool to Big Data Extensions, do not rename the resource pool in vSphere. If
you rename it, you cannot perform Serengeti operations on clusters that use that resource pool.
Procedure
1Access the Serengeti Command-Line Interface client.
2Run the resourcepool add command.
The --vcrp parameter is optional.
This example adds a Serengeti resource pool named myRP to the vSphere rp1 resource pool that is
contained by the cluster1 vSphere cluster.
VMware vSphere Big Data Extensions Administrator's and User's Guide
Remove a Resource Pool with the Serengeti Command-Line Interface
You can remove resource pools from Serengeti that are not in use by a Hadoop cluster. You remove resource
pools when you do not need them or if you want the Hadoop clusters you create in the Serengeti
Management Server to be deployed under a different resource pool. Removing a resource pool removes its
reference in vSphere. The resource pool is not deleted.
Procedure
1Access the Serengeti Command-Line Interface client.
2Run the resourcepool delete command.
If the command fails because the resource pool is referenced by a Hadoop cluster, you can use the
resourcepool list command to see which cluster is referencing the resource pool.
This example deletes the resource pool named myRP.
resourcepool delete --name myRP
Add a Datastore in the vSphere Web Client
You can add datastores to Big Data Extensions to make them available to big data clusters.
Big Data Extensions supports both shared datastores and local datastores.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3From the Inventory Lists, select Resources.
4Expand the Inventory Lists, and select Datastores.
5Click the Add (+) icon.
6In the Name text box, type a name with which to identify the datastore in Big Data Extensions.
Passwords are from 8 to 128 characters, and include only alphanumeric characters ([0-9, a-z, A-Z]) and
the following special characters: _ @ # $ % ^ & *.
7From the Type list, select the datastore type in vSphere.
TypeDescription
Shared
Local
Recommended for master nodes. Enables you to leverage vMotion, HA,
and Fault Tolerance.
NOTE If you do not specify shared storage and try to provision a cluster
using vMotion, HA, or Fault Tolerance, the provisioning fails.
Recommended for worker nodes. Throughput is scalable and the cost of
storage is lower.
8Select one or more vSphere datastores to make available to the Big Data Extensions datastore that you
are adding.
9Click OK to save your changes.
The vSphere datastores are available for use by big data clusters deployed within Big Data Extensions.
64 VMware, Inc.
Remove a Datastore in the vSphere Web Client
You remove a datastore from Big Data Extensions when you no longer want the Hadoop clusters you create
to use that datastore.
Prerequisites
Remove all Hadoop clusters associated with the datastore. See “Delete a Cluster in the vSphere Web Client,”
on page 90.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3From the Inventory Lists, select Resources.
4Expand Resources, select Inventory Lists, and select Datastores.
5Select the datastore that you want to remove, right-click, and select Remove.
6Click Yes to confirm.
If you did not remove the cluster that uses the datastore, you receive an error message indicating that
the datastore cannot be removed because it is currently in use.
Chapter 6 Managing vSphere Resources for Clusters
The datastore is removed from Big Data Extensions.
Add a Network in the vSphere Web Client
You add networks to Big Data Extensions to make the IP addresses contained by those networks available to
big data clusters.
Prerequisites
If your network uses static IP addresses, be sure that the addresses are not occupied before you add the
network.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
6In the Name text box, type a name with which to identify the network resource in Big Data Extensions.
Passwords are from 8 to 128 characters, and include only alphanumeric characters ([0-9, a-z, A-Z]) and
the following special characters: _ @ # $ % ^ & *.
7From the Port group name list, select the vSphere port group that you want to add to Big Data
Extensions.
8Choose the type of addressing to use for the network: Use DHCP to obtain IP addresses or Use static
IP addresses.
9(Optional) If you chose Use static IP addresses in Step 8, enter one or more IP address ranges.
10 Click OK to save your changes.
VMware, Inc. 65
VMware vSphere Big Data Extensions Administrator's and User's Guide
The IP addresses of the network are available to big data clusters that you create within Big Data Extensions.
Reconfigure a Static IP Network in the vSphere Web Client
You can reconfigure a Big Data Extensions static IP network by adding IP address segments to it. You might
need to add IP address segments so that there is enough capacity for a cluster that you want to create.
Prerequisites
If your network uses static IP addresses, be sure that the addresses are not occupied before you add the
network.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
5Select the static IP network to reconfigure, right-click, and select Add IP Range.
6Click Add IP range, and enter the IP address information.
7Click OK to save your changes.
IP address segments are added to the network.
Remove a Network in the vSphere Web Client
You can remove an existing network from Big Data Extensions when you no longer need it. Removing an
unused network frees the IP addresses for use by other services.
Prerequisites
Remove clusters assigned to the network. See “Delete a Cluster in the vSphere Web Client,” on page 90.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
5Select the network to remove, right-click, and select Remove.
6Click Yes to confirm.
If you have not removed the cluster that uses the network, you receive an error message indicating that
the network cannot be removed because it is currently in use.
The network is removed, and the IP addresses are available for use.
66 VMware, Inc.
Creating Hadoop and HBase Clusters7
Big Data Extensions you can create and deploy Hadoop and HBase clusters. A big data cluster is a type of
computational cluster designed for storing and analyzing large amounts of unstructured data in a
distributed computing environment.
Restrictions
When you create an HBase only cluster, you must use the default application manager because the
n
other application managers do not support HBase only clusters.
You cannot rename a cluster that was created with Cloudera Manager or Ambari application manager.
n
Requirements
The resource requirements are different for clusters created with the Serengeti Command-Line Interface and
the Big Data Extensions plug-in for the vSphere Web Client because the clusters use different default
templates. The default clusters created by using the Serengeti CLI are targeted for Project Serengeti users
and proof-of-concept applications, and are smaller than the Big Data Extensions plug-in templates, which
are targeted for larger deployments for commercial use.
Some deployment configurations require more resources than other configurations. For example, if you
create a Greenplum HD 1.2 cluster, you cannot use the small size virtual machine. If you create a default
MapR or Greenplum HD cluster by using the Serengeti CLI, at least 550 GB of storage and 55 GB of memory
are recommended. For other Hadoop distributions, at least 350 GB of storage and 35 GB of memory are
recommended.
VMware, Inc.
CAUTION When you create a cluster with Big Data Extensions, Big Data Extensions disables the cluster's
virtual machine automatic migration. Although this prevents vSphere from automatically migrating the
virtual machines, it does not prevent you from inadvertently migrating cluster nodes to other hosts by using
the vCenter Server user interface. Do not use the vCenter Server user interface to migrate clusters.
Performing such management functions outside of the Big Data Extensions environment can make it
impossible for you to perform some Big Data Extensions operations, such as disk failure recovery.
The requirements for passwords are that passwords be from 8 to 128 characters, and include only
alphanumeric characters ([0-9, a-z, A-Z]) and the following special characters: _ @ # $ % ^ & *.
This chapter includes the following topics:
“About Hadoop and HBase Cluster Deployment Types,” on page 68
n
“Hadoop Distributions Supporting MapReduce v1 and MapReduce v2 (YARN),” on page 68
n
“About Cluster Topology,” on page 69
n
“About HBase Database Access,” on page 69
n
67
VMware vSphere Big Data Extensions Administrator's and User's Guide
“Create a Big Data Cluster in the vSphere Web Client,” on page 70
n
“Create an HBase Only Cluster in Big Data Extensions,” on page 73
n
“Create a Cluster with an Application Manager by Using the vSphere Web Client,” on page 75
n
“Create a Compute Workers Only Cluster by Using the Web Client,” on page 75
n
About Hadoop and HBase Cluster Deployment Types
With Big Data Extensions, you can create and use several types of big data clusters.
You can create the following types of clusters.
Basic Hadoop Cluster
HBase Cluster
Data and Compute
Separation Cluster
Compute Only Cluster
Compute Workers Only
Cluster
HBase Only Cluster
Simple Hadoop deployment for proof of concept projects and other smallscale data processing tasks. The Basic Hadoop cluster contains HDFS and the
MapReduce framework. The MapReduce framework processes problems in
parallel across huge datasets in the HDFS.
Runs on top of HDFS and provides a fault-tolerant way of storing large
quantities of sparse data.
Separates the data and compute nodes. or clusters that contain compute
nodes only. In this type of cluster, the data node and compute node are not
on the same virtual machine.
You can create a cluster that contain only compute nodes, for example
Jobtracker, Tasktracker, ResourceManager and NodeManager nodes, but not
Namenode and Datanodes. A compute only cluster is used to run
MapReduce jobs on an external HDFS cluster.
Contains only compute worker nodes, for example, Tasktracker and
NodeManager nodes, but not Namenodes and Datanodes. A compute
workers only cluster is used to add more compute worker nodes to an
existing Hadoop cluster.
Contains HBase Master, HBase RegionServer, and Zookeeper nodes, but not
Namenodes or Datanodes. Multiple HBase only clusters can use the same
external HDFS cluster.
Customized Cluster
Uses a cluster specification file to create clusters using the same
configuration as your previously created clusters. You can edit the cluster
specification file to customize the cluster configuration.
Hadoop Distributions Supporting MapReduce v1 and MapReduce v2
(YARN)
If you use either Cloudera CDH4 or CDH5 Hadoop distributions, which support both MapReduce v1 and
MapReduce v2 (YARN), the default Hadoop cluster configurations are different. The default hadoop cluster
configuration for CDH4 is a MapReduce v1 cluster. The default hadoop cluster configuration for CDH5 is a
MapReduce v2 cluster. All other distributions support either MapReduce v1 or MapReduce v2 (YARN), but
not both.
68 VMware, Inc.
About Cluster Topology
You can improve workload balance across your cluster nodes, and improve performance and throughput,
by specifying how Hadoop virtual machines are placed using topology awareness. For example, you can
have separate data and compute nodes, and improve performance and throughput by placing the nodes on
the same set of physical hosts.
To get maximum performance out of your big data cluster, configure your cluster so that it has awareness of
the topology of your environment's host and network information. Hadoop performs better when it uses
within-rack transfers, where more bandwidth is available, to off-rack transfers when assigning MapReduce
tasks to nodes. HDFS can place replicas more intelligently to trade off performance and resilience. For
example, if you have separate data and compute nodes, you can improve performance and throughput by
placing the nodes on the same set of physical hosts.
CAUTION When you create a cluster with Big Data Extensions, Big Data Extensions disables the virtual
machine automatic migration of the cluster. Although this prevents vSphere from migrating the virtual
machines, it does not prevent you from inadvertently migrating cluster nodes to other hosts by using the
vCenter Server user interface. Do not use the vCenter Server user interface to migrate clusters. Performing
such management functions outside of the Big Data Extensions environment might break the placement
policy of the cluster, such as the number of instances per host and the group associations. Even if you do not
specify a placement policy, using vCenter Server to migrate clusters can break the default ROUNDROBIN
placement policy constraints.
Chapter 7 Creating Hadoop and HBase Clusters
You can specify the following topology awareness configurations.
Hadoop Virtualization
Extensions (HVE)
RACK_AS_RACK
HOST_AS_RACK
None
Enhanced cluster reliability and performance provided by refined Hadoop
replica placement, task scheduling, and balancer policies. Hadoop clusters
implemented on a virtualized infrastructure have full awareness of the
topology on which they are running when using HVE.
To use HVE, your Hadoop distribution must support HVE and you must
create and upload a topology rack-hosts mapping file.
Standard topology for Apache Hadoop distributions. Only rack and host
information are exposed to Hadoop. To use RACK_AS_RACK, create and
upload a server topology file.
Simplified topology for Apache Hadoop distributions. To avoid placing all
HDFS data block replicas on the same physical host, each physical host is
treated as a rack. Because data block replicas are never placed on a rack, this
avoids the worst case scenario of a single host failure causing the complete
loss of any data block.
Use HOST_AS_RACK if your cluster uses a single rack, or if you do not have
rack information with which to decide about topology configuration options.
No topology is specified.
About HBase Database Access
Serengeti supports several methods of HBase database access.
Log in to the client node virtual machine and run hbase shell commands.
n
Log in to the client node virtual machine and run HBase jobs by using the hbase command.
VMware vSphere Big Data Extensions Administrator's and User's Guide
The default Serengeti-deployed HBase cluster does not contain Hadoop JobTracker or Hadoop
TaskTracker daemons. To run an HBase MapReduce job, you must deploy a customized cluster that
includes JobTracker and TaskTracker nodes.
Use the client node Rest-ful Web Services, which listen on port 8080, by using the curl command.
n
curl –I http://client_node_ip:8080/status/cluster
Use the client node Thrift gateway, which listens on port 9090.
n
Create a Big Data Cluster in the vSphere Web Client
After you complete deployment of the Hadoop distribution, you can create big data clusters to process data.
You can create multiple clusters in your Big Data Extensions environment but your environment must meet
all prerequisites and have adequate resources.
Prerequisites
Start the Big Data Extensions vApp.
n
Install the Big Data Extensions plug-in.
n
Connect to a Serengeti Management Server.
n
Configure one or more Hadoop distributions.
n
Understand the topology configuration options that you want to use with your cluster.
n
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions > Big Data Clusters.
3In the Objects tab, click New Big Data Cluster.
4Follow the prompts to create the new cluster. The table describes the information to enter for the cluster
that you want to create.
OptionDescription
Hadoop cluster name
Application manager
Hadoop distro
Type a name to identify the cluster.
The only valid characters for cluster names are alphanumeric and
underscores. When you choose the cluster name, also consider the
applicable vApp name. Together, the vApp and cluster names must be < 80
characters.
Select an application manager. The list contains the default application
manager and the application managers that you added to your Big Data
Extensions environment. For example, Cloudera Manager and Ambari.
Select the Hadoop distribution. The list contains the default Apache
Hadoop distribution for Big Data Extensions and the distributions that you
added to your Big Data Extensions environment. The distribution names
match the value of the --name parameter that was passed to the config-distro.rb script when the Hadoop distribution was configured. For
example, cdh4 and mapr.
NOTE To create an Apache Bigtop, Cloudera CDH4 and CDH5,
Hortonworks HDP 2.x, or Pivotal PHD 1.1 cluster, you must configure a
valid DNS and FQDN for the cluster's HDFS and MapReduce traffic. If the
DNS server cannot provide valid forward and reverse FQDN/IP
resolution, the cluster creation process might fail or the cluster is created
but does not function.
70 VMware, Inc.
OptionDescription
Local repository URL
Type a local repository URL. This is an optional item for all of application
managers. If you specify a local repository URL, the Cloudera Manager or
Ambari application manager downloads the required Red Hat Package
Managers (RPMs) from the local repository that you specify instead of
from a remote repository, which could affect your system performance.
Deployment type
Select the type of cluster you want to create.
Basic Hadoop Cluster
n
Basic HBase Cluster
n
Compute Only Hadoop Cluster
n
Compute Workers Only Cluster
n
HBase Only Cluster
n
Data/Compute Separation Hadoop Cluster
n
Customized
n
The type of cluster you create determines the available node group
selections.
If you select Customize, you can load an existing cluster specification file.
DataMaster Node Group
The DataMaster node is a virtual machine that runs the Hadoop
NameNode service. This node manages HDFS data and assigns tasks to
Hadoop TaskTracker services deployed in the worker node group.
Select a resource template from the drop-down menu, or select Customize
to customize a resource template.
For the master node, use shared storage so that you protect this virtual
machine with vSphere HA and vSphere FT.
ComputeMaster Node Group
The ComputeMaster node is a virtual machine that runs the Hadoop
JobTracker service. This node assigns tasks to Hadoop TaskTracker
services deployed in the worker node group.
Select a resource template from the drop-down menu, or select Customize
to customize a resource template.
For the master node, use shared storage so that you protect this virtual
machine with vSphere HA and vSphere FT.
HBaseMaster Node Group (HBase
cluster only)
The HBaseMaster node is a virtual machine that runs the HBase master
service. This node orchestrates a cluster of one or more RegionServer slave
nodes.
Select a resource template from the drop-down menu, or select Customize
to customize a resource template.
For the master node, use shared storage so that you protect this virtual
machine with vSphere HA and vSphere FT.
Worker Node Group
Worker nodes are virtual machines that run the Hadoop DataNode,
TaskTracker, and HBase HRegionServer services. These nodes store HDFS
data and execute tasks.
Select the number of nodes and the resource template from the drop-down
menu, or select Customize to customize a resource template.
For worker nodes, use local storage.
NOTE You can add nodes to the worker node group by using Scale Out
Cluster. You cannot reduce the number of nodes.
Client Node Group
A client node is a virtual machine that contains Hadoop client components.
From this virtual machine you can access HDFS, submit MapReduce jobs,
run Pig scripts, run Hive queries, and HBase commands.
Select the number of nodes and a resource template from the drop-down
menu, or select Customize to customize a resource template.
NOTE You can add nodes to the client node group by using Scale Out
Cluster. You cannot reduce the number of nodes.
Chapter 7 Creating Hadoop and HBase Clusters
VMware, Inc. 71
VMware vSphere Big Data Extensions Administrator's and User's Guide
OptionDescription
Hadoop Topology
Select the topology configuration that you want the cluster to use.
n
n
n
n
If you do not see the topology configuration that you want, define it in a
topology rack-hosts mapping file, and use the Serengeti Command-Line
Interface to upload the file to the Serengeti Management Server. See
“About Cluster Topology,” on page 69
Network
Select one or more networks for the cluster to use.
For optimal performance, use the same network for HDFS and MapReduce
traffic in Hadoop and Hadoop+HBase clusters. HBase clusters use the
HDFS network for traffic related to the HBase Master and HBase
RegionServer services.
IMPORTANT You cannot configure multiple networks for clusters that use
the MapR Hadoop distribution.
n
n
Resource Pools
VM Password
Select one or more resource pools that you want the cluster to use.
Choose how initial administrator passwords are assigned to the virtual
machine nodes of the cluster.
n
n
To assign a custom initial administrator password to all the nodes in the
cluster, choose Set password, and type and confirm the initial password.
Passwords are from 8 to 128 characters, and include only alphanumeric
characters ([0-9, a-z, A-Z]) and the following special characters: _ @ # $ % ^
& *.
IMPORTANT If you set an initial administrator password, it is used for
nodes that are created by future scaling and disk failure recovery
operations. If you use the random password, nodes that are created by
future scaling and disk failure recovery operations will use new, random
passwords.
Local repository URL
Type a local repository URL.
This is an optional item for all application managers. If you specify a local
repository URL, the Cloudera Manager or Ambari application manager
downloads the required Red Hat Package Managers (RPMs) from the local
repository that you specify instead of from a remote repository, which
could affect your system performance.
The Serengeti Management Server clones the template virtual machine to create the nodes in the cluster.
When each virtual machine starts, the agent on that virtual machine pulls the appropriate Big Data
Extensions software components to that node and deploys the software.
RACK_AS_RACK
HOST_AS_RACK
HVE
NONE
To use one network for all traffic, select the network from the Network
list.
To use separate networks for the management, HDFS, and MapReduce
traffic, select Customize the HDFS network and MapReducenetwork, and select a network from each network list.
Use random password.
Set password.
72 VMware, Inc.
Chapter 7 Creating Hadoop and HBase Clusters
Create an HBase Only Cluster in Big Data Extensions
With Big Data Extensions, you can create an HBase only cluster, which contain only HBase Master, HBase
RegionServer, and Zookeeper nodes, but not Namenodes and Datanodes. The advantage of having an
HBase only cluster is that multiple HBase clusters can use the same external HDFS.
Procedure
1Prerequisites for Creating an HBase Only Cluster on page 73
Before you can create an HBase only cluster, you must verify that your system meets all of the
prerequisites.
2Prepare the EMC Isilon OneFS as the External HDFS Cluster on page 73
If you use EMC Isilon OneFS as the external HDFS cluster to the HBase only cluster, you must create
and configure users and user groups, and prepare your Isilon OneFS environment.
3Create an HBase Only Cluster by Using the vSphere Web Client on page 74
You can use the vSphere Web Client to create an HBase only cluster.
Prerequisites for Creating an HBase Only Cluster
Before you can create an HBase only cluster, you must verify that your system meets all of the prerequisites.
Prerequisites
Verify that you started the Serengeti vApp.
n
Verify that you have more than one distribution if you want to use a distribution other than the default
n
distribution.
Verify that you have an existing HDFS cluster to use as the external HDFS cluster.
n
To avoid conflicts between the HBase only cluster and the external HDFS cluster, the clusters should
use the same Hadoop distribution and version.
If the external HDFS cluster was not created using Big Data Extensions, verify that the HDFS
n
directory /hadoop/hbase, the group hadoop, and the following users exist in the external HDFS cluster:
hdfs
n
hbase
n
serengeti
n
If you use the EMC Isilon OneFS as the external HDFS cluster, verify that your Isilon environment is
n
prepared.
For information about how to prepare your environment, see “Prepare the EMC Isilon OneFS as the
External HDFS Cluster,” on page 73.
Prepare the EMC Isilon OneFS as the External HDFS Cluster
If you use EMC Isilon OneFS as the external HDFS cluster to the HBase only cluster, you must create and
configure users and user groups, and prepare your Isilon OneFS environment.
Procedure
1Log in to one of the Isilon HDFS nodes as user root.
2Create the users.
hdfs
n
VMware, Inc. 73
VMware vSphere Big Data Extensions Administrator's and User's Guide
hbase
n
serengeti
n
mapred
n
The yarn and mapred users should have write, read, and execute permissions to the entire exported
HDFS directory.
3Create the user group hadoop.
4Create the directory tmp under the root HDFS directory.
5Set the owner as hdfs:hadoop with the read and write permissions set as 777.
6Create the directory hadoop under the root HDFS directory.
7Set the owner as hdfs:hadoop with the read and write permissions set as 775.
8Create the directory hbase under the directory hadoop.
9Set the owner as hbase:hadoop with the read and write permissions set as 775.
10 Set the owner of the root HDFS directory as hdfs:hadoop.
Example: Configuring the EMC Isilon OneFS Environment
You are now ready to create the HBase only cluster with the EMC Isilon OneFS as the external cluster.
Create an HBase Only Cluster by Using the vSphere Web Client
You can use the vSphere Web Client to create an HBase only cluster.
You must use the default application manager because the other application managers do not support
HBase only clusters.
Procedure
1In the Big Data Clusters page, click New Big Data Cluster.
2On the General page, enter a name for the cluster.
3Select Default from the Application Manager drop-down menu.
4Select a distribution from the Hadoop Distribution drop-down menu.
5On the Set Node Groups page, select HBase Only Cluster from the Deployment Type drop-down
menu.
74 VMware, Inc.
Chapter 7 Creating Hadoop and HBase Clusters
6In the NameNode URI text box, enter the external HDFS NameNode URI.
The NameNode URI is the URI of the NameNode, for example hdfs://namenode_hostname:8020.
7Follow the prompts to complete the HBase cluster creation process.
Create a Cluster with an Application Manager by Using the vSphere
Web Client
To create and manage a cluster with an application manager other than the default application manager,
you must specify the application manager to use before you create the cluster.
NOTE If you want to use a local yum repository, after you select either Cloudera Manager or Ambari for
your application manager, a text box appears where you can enter the URL of the local repository you want
to use. It is important that you have created the repository before you create the cluster. For more
information about setting up a yum repository, see “Set Up a Local Yum Repository for Ambari Application
Manager,” on page 81 or “Set Up a Local Yum Repository for Cloudera Manager Application Manager,”
on page 78.
Prerequisites
Connect to an application manager.
n
Ensure that you have adequate resources allocated to run the Hadoop cluster. For information about
n
resource requirements, see the documentation for your application manager.
Configure one or more Hadoop distributions.
n
Procedure
1In the Big Data Clusters page, click New Big Data Cluster.
2Follow the prompts to create the new cluster.
What to do next
To view the new cluster, from theBig Data Extensions navigation pane, under Inventory Lists, click Big
Data Clusters.
If you do not specify an application manager, the default application manager is used.
Create a Compute Workers Only Cluster by Using the Web Client
If you already have a physical Hadoop cluster and want to do more CPU or memory intensive operations,
you can increase the compute capacity by provisioning a workers only cluster. The workers only cluster is a
part of the physical Hadoop cluster and can be scaled out elastically.
With the compute workers only clusters, you can "burst out to virtual." It is a temporary operation that
involves borrowing resources when you need them and then returning the resources when you no longer
need them. With "burst out to virtual," you spin up compute only workers nodes and add them to either an
existing physical or virtual Hadoop cluster.
Worker only clusters are not supported on Ambari and Cloudera Manager application managers.
Prerequisites
Ensure that you have an existing Hadoop cluster.
n
Verify that you have the IP addresses of the NameNode and ResourceManager node.
n
Procedure
1Click Create Big Data Cluster on the objects pane.
VMware, Inc. 75
VMware vSphere Big Data Extensions Administrator's and User's Guide
2In the Create Big Data Cluster wizard, choose the same distribution as the Hadoop cluster.
3Set the DataMaster URL HDFS:namenode ip or fqdn:8020.
4Set the ComputeMaster URL nodeManager ip or fqdn.
5Follow the steps in the wizard and add the other resources.
There will be three node managers in the cluster. The three new node managers are registered to the
resource manager.
76 VMware, Inc.
Managing Hadoop and HBase
Clusters8
You can use the vSphere Web Client to start and stop your big data cluster and modify the cluster
configuration. You can also manage a cluster using the Serengeti Command-Line Interface.
CAUTION Do not use vSphere management functions such as migrating cluster nodes to other hosts for
clusters that you create with Big Data Extensions. Performing such management functions outside of the
Big Data Extensions environment can make it impossible for you to perform some Big Data Extensions
operations, such as disk failure recovery.
This chapter includes the following topics:
“Set Up a Local Yum Repository for Cloudera Manager Application Manager,” on page 78
n
“Set Up a Local Yum Repository for Ambari Application Manager,” on page 81
n
“Stop and Start a Hadoop Cluster in the vSphere Web Client,” on page 86
n
“Scale Out a Hadoop Cluster in the vSphere Web Client,” on page 87
n
“Scale CPU and RAM in the vSphere Web Client,” on page 87
n
“Reconfigure a Big Data Cluster with the Serengeti Command-Line Interface,” on page 88
n
“Delete a Cluster in the vSphere Web Client,” on page 90
n
“About Resource Usage and Elastic Scaling,” on page 90
n
“Use Disk I/O Shares to Prioritize Cluster Virtual Machines in the vSphere Web Client,” on page 95
n
“About vSphere High Availability and vSphere Fault Tolerance,” on page 95
n
“Recover from Disk Failure with the Serengeti Command-Line Interface Client,” on page 95
n
“Log in to Hadoop Nodes with the Serengeti Command-Line Interface Client,” on page 96
n
“Change the User Password on All of the Nodes of a Cluster,” on page 97
n
VMware, Inc.
77
VMware vSphere Big Data Extensions Administrator's and User's Guide
Set Up a Local Yum Repository for Cloudera Manager Application
Manager
When you create a new cluster with an external application manager, you must install agents and
distribution packages on each cluster node. If the installation downloads the agents and packages from the
Internet, the process might be slow. If you do not have an Internet connection, the cluster creation process is
not possible. To avoid these problems, you can create a local yum repository.
Procedure
1Prepare the Software Environment for the Local Repository for Cloudera Manager on page 78
The first step to create a local yum repository for Cloudera Manager is to prepare the software
environment by setting up necessary servers and directories.
2Set Up the Local CentOS Yum Repository on page 79
You must copy all the RPM packages from the CentOS 6 DVD ISO images to set up the local CentOS
yum repository.
3Download Packages for Cloudera Manager on page 80
After you set up the local CentOS yum repository, you must download the packages for Cloudera
Manager.
4Configure the Yum Repository Server and the Local Parcel Repository on page 80
You must configure the yum repository server and the local parcel repository before you can
distribute the parcels file.
Prepare the Software Environment for the Local Repository for Cloudera
Manager
The first step to create a local yum repository for Cloudera Manager is to prepare the software environment
by setting up necessary servers and directories.
Prerequisites
Verify that you have the following conditions in place.
High-speed Internet access.
n
CentOS 6.x 64-bit or Red Hat Enterprise Linux (RHEL) 6.x 64-bit.
n
The hadoop-template virtual machine in the Serengeti vApp contains CentOS 6.5 64-bit. You can clone
the hadoop-template virtual machine to a new virtual machine and create the yum repository on it.
An HTTP server with which to create the yum repository. For example, Apache HTTP server.
n
If your system has a firewall, ensure that the firewall does not block the network port number that your
n
HTTP server proxy uses. Typically, this is port 80.
For more information about the yum repository placeholder values, see “Yum Repository
n
Configuration Values,” on page 46.
78 VMware, Inc.
Chapter 8 Managing Hadoop and HBase Clusters
Procedure
1If your yum repository server requires an HTTP proxy server, perform the steps:
aOpen a command shell, such as Bash or PuTTY.
bLog in to the yum repository server.
cExport the http_proxy environment variable.
# switch to root user
sudo su
export http_proxy=http://host:port
OptionDescription
host
port
The hostname or the IP address of the proxy server.
The network port number to use with the proxy server.
2Install the HTTP server to use as a yum server.
This example installs the Apache HTTP Server and enables the httpd server to start whenever the
machine restarts.
yum install -y httpd
/sbin/service httpd start
/sbin/chkconfig httpd on
3Make the CentOS directory.
mkdir -p /var/www/html/yum/centos6
4Make the Cloudera Manager directory.
mkdir -p /var/www/html/yum/cm
5Install the createrepo RPM.
yum install -y createrepo
Set Up the Local CentOS Yum Repository
You must copy all the RPM packages from the CentOS 6 DVD ISO images to set up the local CentOS yum
repository.
Prerequisites
Verify that you prepared the software environment for the CentOS yum repository creation, including the
directories for CentOS and the application manager. Refer to your CentOS documentation.
Procedure
1Download the CentOS-6.5-x86_64-bin-DVD1.iso and CentOS-6.5-x86_64-bin-DVD2.iso CentOS 6 DVD
ISO images from the CentOS official website.
2Download the ISO images to the virtual machine servers.
VMware, Inc. 79
VMware vSphere Big Data Extensions Administrator's and User's Guide
3Copy all of the CentOS RPM packages to /var/www/html/yum/centos6.
mkdir /mnt/centos6-1
mount -o loop CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos6-1
cp /mnt/centos6-1/Packages/* /var/www/html/yum/centos6
mkdir /mnt/centos6-2
mount -o loop CentOS-6.5-x86_64-bin-DVD2.iso /mnt/centos6-2
cp /mnt/centos6-2/Packages/* /var/www/html/yum/centos6
4Create the CentOS 6 yum repository.
createrepo /var/www/html/yum/centos6
Download Packages for Cloudera Manager
After you set up the local CentOS yum repository, you must download the packages for Cloudera Manager.
7In the manifest.json file, remove all items except for CDH-5.0.1-1.cdh5.0.1.p0.47-el6.parcel
8Open a browser, go to http://your_cloudera_manager_server:7180/cmf/parcel/status and click Edit
Settings.
9Select one minute in the Parcel Update Frequency text box.
10 Remove the remote parcel repository URL that was replaced by the target parcel URL.
11 Add theURL http://yum_repo_server_ip/parcels.
You can now create clusters for the Cloudera Manager by using the local yum repository.
Set Up a Local Yum Repository for Ambari Application Manager
When you create a new cluster with an external application manager, you must install agents and
distribution packages on each cluster node. If the installation downloads the agents and packages from the
Internet, the process might be slow. If you do not have an Internet connection, the cluster creation process is
impossible. To avoid these problems, you can create a local yum repository.
Procedure
1Prepare the Software Environment for the Local Repository for Ambari on page 81
The first step to create a local yum repository for Ambari is to prepare the software environment.
2Set Up the Local CentOS Yum Repository on page 82
You must copy all the RPM packages from the CentOS 6 DVD ISO images to set up the local CentOS
yum repository.
3Download Packages for Ambari on page 83
After you set up the local CentOS yum repository, you must download the packages for the Ambari
application manager.
4Configure the Ambari Repository File on the Ambari Server on page 83
To set up the local yum repository, you must configure the Ambari repository file.
5Configure the HDP Repository URL on the Local Yum Server on page 84
After you configure the Ambari repository on the Ambari server, you must configure the HDP
repository URL on the local yum server.
6Configure the HDP Repository on the Ambari Server on page 85
After you configure the Ambari repository on the Ambari server, you must configure the HDP
repository on the Ambari server.
Prepare the Software Environment for the Local Repository for Ambari
The first step to create a local yum repository for Ambari is to prepare the software environment.
Prerequisites
Verify that you have the following conditions in place.
High-speed Internet access.
n
CentOS 6.x 64-bit or Red Hat Enterprise Linux (RHEL) 6.x 64-bit.
n
The hadoop-template virtual machine in the Serengeti vApp contains CentOS 6.5 64-bit. You can clone
the hadoop-template virtual machine to a new virtual machine and create the yum repository on it.
VMware, Inc. 81
VMware vSphere Big Data Extensions Administrator's and User's Guide
An HTTP server with which to create the yum repository. For example, Apache HTTP server.
n
If your system has a firewall, ensure that the firewall does not block the network port number that your
n
HTTP server proxy uses. Typically, this is port 80.
For more information about the yum repository placeholder values, see “Yum Repository
n
Configuration Values,” on page 46.
Procedure
1If your yum repository server requires an HTTP proxy server, open a command shell, such as Bash or
PuTTY, log in to the yum repository server, and export the http_proxy environment variable.
# switch to root user
sudo su
export http_proxy=http://host:port
OptionDescription
host
port
The hostname or the IP address of the proxy server.
The network port number to use with the proxy server.
2Install the HTTP server to use as a yum server.
This example installs the Apache HTTP Server and enables the httpd server to start whenever the
machine restarts.
yum install -y httpd
/sbin/service httpd start
/sbin/chkconfig httpd on
3Make the CentOS directory.
mkdir -p /var/www/html/yum/centos6
4Make the Ambari directory.
mkdir -p /var/www/html/yum/ambari
5Install the createrepo RPM.
yum install -y createrepo
Set Up the Local CentOS Yum Repository
You must copy all the RPM packages from the CentOS 6 DVD ISO images to set up the local CentOS yum
repository.
Prerequisites
Verify that you prepared the software environment for the CentOS yum repository creation, including the
directories for CentOS and the application manager. Refer to your CentOS documentation.
Procedure
1Download the CentOS-6.5-x86_64-bin-DVD1.iso and CentOS-6.5-x86_64-bin-DVD2.iso CentOS 6 DVD
ISO images from the CentOS official website.
2Download the ISO images to the virtual machine servers.
82 VMware, Inc.
Chapter 8 Managing Hadoop and HBase Clusters
3Copy all of the CentOS RPM packages to /var/www/html/yum/centos6.
mkdir /mnt/centos6-1
mount -o loop CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos6-1
cp /mnt/centos6-1/Packages/* /var/www/html/yum/centos6
mkdir /mnt/centos6-2
mount -o loop CentOS-6.5-x86_64-bin-DVD2.iso /mnt/centos6-2
cp /mnt/centos6-2/Packages/* /var/www/html/yum/centos6
4Create the CentOS 6 yum repository.
createrepo /var/www/html/yum/centos6
Download Packages for Ambari
After you set up the local CentOS yum repository, you must download the packages for the Ambari
application manager.
You are ready to create clusters for the Ambari server by using the local yum repository.
Stop and Start a Hadoop Cluster in the vSphere Web Client
You can stop a running Hadoop cluster and start a stopped Hadoop cluster from the vSphere Web Client.
Prerequisites
To stop a cluster it must be running.
n
To start a cluster it must be stopped.
n
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3From the Inventory Lists, click Big Data Clusters.
4Select the cluster to stop or start from the Hadoop Cluster Name column, and right-click to display the
Actions menu.
5Select Shut Down Big Data Cluster to stop a running cluster, or select Start Big Data Cluster to start a
cluster.
86 VMware, Inc.
Chapter 8 Managing Hadoop and HBase Clusters
Scale Out a Hadoop Cluster in the vSphere Web Client
You specify the number of nodes to use when you create Hadoop clusters. You can scale out the cluster by
increasing the number of worker nodes and client nodes.
You can scale the cluster by using the vSphere Web Client or the Serengeti CLI Client. The command-line
interface provides more configuration options than the vSphere Web Client. See the VMware vSphere BigData Extensions Command-Line Interface Guide.
You cannot decrease the number of worker and client nodes from the vSphere Web Client.
IMPORTANT Even if you changed the user password on the cluster's nodes, the changed password is not
used for the new nodes that are create when you scale out a cluster. If you set the cluster's initial
administrator password when you created the cluster, that initial administrator password is used for the
new nodes. If you did not set the cluster's initial administrator password when you created the cluster, new
random passwords are used for the new nodes.
Prerequisites
Verify that the cluster is running. See “Stop and Start a Hadoop Cluster in the vSphere Web Client,” on
n
page 86.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3From the Inventory List, select Big Data Clusters.
4From the Hadoop Cluster Name column, select the cluster to scale out.
5Click the All Actions icon, and select Scale Out.
6From the Node Group list, select the worker or client node group to scale out.
If a node group does not have any nodes, it does not appear in the Node group list.
7In the Instance number text box, type the target number of node instances to add, and click OK.
You cannot decrease the number of nodes. If you specify an instance number that is less than or equal
to the current number of instances, a Scale Out Failed error occurs.
The cluster is updated to include the specified number of nodes.
Scale CPU and RAM in the vSphere Web Client
You can increase or decrease the compute capacity of a cluster to prevent CPU or memory resource
contention among running jobs.
You can adjust compute resources without increasing the workload on the Master node. If increasing or
decreasing the CPU or RAM of a cluster is unsuccessful for a node, which is commonly because of
insufficient resources being available, the node is returned to its original CPU or RAM setting.
All node types support CPU and RAM scaling, but do not scale the master node CPU or RAM of a cluster
because Big Data Extensions powers down the virtual machine during the scaling process.
When you scale the CPU or RAM of a cluster, the number of CPUs must be a multiple of the number of
cores per socket, and you must scale the amount of RAM as a multiple of 4, allowing a minimum of 3748
MB.
VMware, Inc. 87
VMware vSphere Big Data Extensions Administrator's and User's Guide
Prerequisites
Verify that the cluster that you want to scale is running. See “Stop and Start a Hadoop Cluster in the
n
vSphere Web Client,” on page 86.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3From the Inventory Lists, select Big Data Clusters.
4From the Hadoop Cluster Name column, select the cluster that you want to scale up or down.
5Click the All Actions icon, and select Scale Up/Down.
6From the Node group drop-down menu, select the ComputeMaster, DataMaster, Worker, Client, or
Customized node group whose CPU or RAM you want to scale up or down.
7Enter the number of vCPUs to use and the amount of RAM and click OK.
After applying new values for CPU and RAM, the cluster is placed into Maintenance mode as it applies the
new values. You can monitor the status of the cluster as the new values are applied.
Reconfigure a Big Data Cluster with the Serengeti Command-Line
Interface
You can reconfigure any big data cluster that you create with Big Data Extensions.
The cluster configuration is specified by attributes in Hadoop distribution XML configuration files such as:
core-site.xml, hdfs-site.xml, mapred-site.xml, hadoop-env.sh, yarn-env.sh, yarn-site.sh, and hadoopmetrics.properties.
NOTE Always use the cluster config command to change the parameters specified by the configuration
files. If you manually modify these files, your changes will be erased if the virtual machine is rebooted, or
you use the cluster config, cluster start, cluster stop, or cluster resize commands.
Procedure
1Use the cluster export command to export the cluster specification file for the cluster that you want to
Name of the cluster that you want to reconfigure. Passwords are from 8 to
128 characters, and include only alphanumeric characters ([0-9, a-z, A-Z])
and the following special characters: _ @ # $ % ^ & * .
The file system path to which to export the specification file.
The name with which to label the exported cluster specification file.
2Edit the configuration information located near the end of the exported cluster specification file.
If you are modeling your configuration file on existing Hadoop XML configuration files, use the
convert-hadoop-conf.rb conversion tool to convert Hadoop XML configuration files to the required
// check for all settings at http://hadoop.apache.org/common/docs/stable/coredefault.html
// note: any value (int, float, boolean, string) must be enclosed in double quotes
and here is a sample:
// "io.file.buffer.size": "4096"
},
"hdfs-site.xml": {
// check for all settings at http://hadoop.apache.org/common/docs/stable/hdfsdefault.html
},
"mapred-site.xml": {
// check for all settings at http://hadoop.apache.org/common/docs/stable/mapreddefault.html
},
"hadoop-env.sh": {
// "HADOOP_HEAPSIZE": "",
// "HADOOP_NAMENODE_OPTS": "",
// "HADOOP_DATANODE_OPTS": "",
// "HADOOP_SECONDARYNAMENODE_OPTS": "",
// "HADOOP_JOBTRACKER_OPTS": "",
// "HADOOP_TASKTRACKER_OPTS": "",
// "HADOOP_CLASSPATH": "",
// "JAVA_HOME": "",
// "PATH": "",
},
"log4j.properties": {
// "hadoop.root.logger": "DEBUG, DRFA ",
// "hadoop.security.logger": "DEBUG, DRFA ",
},
"fair-scheduler.xml": {
// check for all settings at
http://hadoop.apache.org/docs/stable/fair_scheduler.html
// "text": "the full content of fair-scheduler.xml in one line"
},
"capacity-scheduler.xml": {
// check for all settings at
http://hadoop.apache.org/docs/stable/capacity_scheduler.html
}
}
}
…
3(Optional) If the JAR files of your Hadoop distribution are not in the $HADOOP_HOME/lib directory, add
the full path of the JAR file in $HADOOP_CLASSPATH to the cluster specification file.
This action lets the Hadoop daemons locate the distribution JAR files.
For example, the Cloudera CDH3 Hadoop Fair Scheduler JAR files are
in /usr/lib/hadoop/contrib/fairscheduler/. Add the following to the cluster specification file to
enable Hadoop to use the JAR files.
6(Optional) Reset an existing configuration attribute to its default value.
aRemove the attribute from the configuration section of the cluster configuration file or comment
out the attribute using double back slashes (//).
bRe-run the cluster config command.
Delete a Cluster in the vSphere Web Client
You can delete a cluster by using the vSphere Web Client. When you delete a cluster, it is removed from the
inventory and the datastore.
When you create a cluster, Big Data Extensions creates a folder and a resource pool for each cluster, and
resource pools for each node group in the cluster. When you delete a cluster all of these organizational
folders and resource pools are also removed.
When you delete a cluster, it is removed from the inventory and the datastore.
You can delete a running cluster, a stopped cluster, or a cluster that is in an error state.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2In the object navigator, select Big Data Extensions.
3In Inventory Lists, select Big Data Clusters.
4From the Objects Name column, select the cluster to delete.
5Click the All Actions icon, and select Delete Big Data Cluster.
The cluster and all the virtual machines it contains are removed from your Big Data Extensions
environment.
About Resource Usage and Elastic Scaling
Scaling lets you adjust the compute capacity of Hadoop data-compute separated clusters. When you enable
elastic scaling for a Hadoop cluster, the Serengeti Management Server can stop and start compute nodes to
match resource requirements to available resources. You can use manual scaling for more explicit cluster
control.
Manual scaling is appropriate for static environments where capacity planning can predict resource
availability for workloads. Elastic scaling is best suited for mixed workload environments where resource
requirements and availability fluctuate.
90 VMware, Inc.
Chapter 8 Managing Hadoop and HBase Clusters
When you select manual scaling, Big Data Extensions disables elastic scaling. You can configure the target
number of compute nodes for manual scaling. If you do not configure the target number of compute nodes,
Big Data Extensions sets the number of active compute nodes to the current number of active compute
nodes. If nodes become unresponsive, they remain in the cluster and the cluster operates with fewer
functional nodes. In contrast, when you enable elastic scaling, Big Data Extensions manages the number of
active TaskTracker nodes according to the range that you specify, replacing unresponsive or faulty nodes
with live, responsive nodes.
For both manual and elastic scaling, Big Data Extensions, not vCenter Server, controls the number of active
nodes. However, vCenter Server applies the usual reservations, shares, and limits to the resource pool of a
cluster according to the vSphere configuration of the cluster. vSphere DRS operates as usual, allocating
resources between competing workloads, which in turn influences how Big Data Extensions dynamically
adjusts the number of active nodes in competing Hadoop clusters while elastic scaling is in effect.
Big Data Extensions also lets you adjust the access priority for the datastores of cluster nodes by using the
vSphere Storage I/O Control feature. Clusters configured for HIGH I/O shares receive higher priority access
than clusters with NORMAL priority. Clusters configured for NORMAL I/O shares receive higher priority
access than clusters with LOW priority. In general, higher priority provides better disk I/O performance.
Scaling Modes
To change between manual and elastic scaling, you change the scaling mode.
MANUAL. Big Data Extensions disables elastic scaling. When you change to manual scaling, you can
n
configure the target number of compute nodes. If you do not configure the target number of compute
nodes, Big Data Extensions sets the number of active compute nodes to the current number of active
compute nodes.
AUTO. Enables elastic scaling. Big Data Extensions manages the number of active compute nodes,
n
maintaining the number of compute nodes in the range from the configured minimum to the
configured maximum number of compute nodes in the cluster. If the minimum number of compute
nodes is undefined, the lower limit is 0. If the maximum number of compute nodes is undefined, the
upper limit is the number of available compute nodes.
Elastic scaling operates on a per-host basis, at a node-level granularity. That is, the more compute nodes
a Hadoop cluster has on a host, the finer the control that Big Data Extensions elasticity can exercise. The
tradeoff is that the more compute nodes you have, the higher the overhead in terms of runtime resource
cost, disk footprint, I/O requirements, and so on.
When resources are overcommitted, elastic scaling reduces the number of powered on compute nodes.
Conversely, if the cluster receives all the resources it requested from vSphere, and Big Data Extensions
determines that the cluster can make use of additional capacity, elastic scaling powers on additional
compute nodes.
Resources can become overcommitted for many reasons, such as:
The compute nodes have lower resource entitlements than a competing workload, according to
n
how vCenter Server applies the usual reservations, shares, and limits as configured for the cluster.
Physical resources are configured to be available, but another workload is consuming those
n
resources.
In elastic scaling, Big Data Extensions has two different behaviors for deciding how many active
compute nodes to maintain. In both behaviors, Big Data Extensions replaces unresponsive or faulty
nodes with live, responsive nodes.
Variable. The number of active, healthy TaskTracker compute nodes is maintained from the
n
configured minimum number of compute nodes to the configured maximum number of compute
nodes. The number of active compute nodes varies as resource availability fluctuates.
Fixed. The number of active, healthy TaskTracker compute nodes is maintained at a fixed number
n
when the same value is configured for the minimum and maximum number of compute nodes.
VMware, Inc. 91
VMware vSphere Big Data Extensions Administrator's and User's Guide
Default Cluster Scaling Parameter Values
When you create a cluster, its scaling configuration is as follows.
The cluster's scaling mode is MANUAL, for manual scaling.
n
The cluster's minimum number of compute nodes is -1. It appears as "Unset" in the Serengeti CLI
n
displays. Big Data Extensions elastic scaling treats a minComputeNodeNum value of -1 as if it were zero (0).
The cluster's maximum number of compute nodes is -1. It appears as "Unset" in the Serengeti CLI
n
displays. Big Data Extensions elastic scaling treats a maxComputeNodeNum value of -1 as if it were
unlimited.
The cluster's target number of nodes is not applicable. Its value is -1. Big Data Extensions manual
n
scaling operations treat a targetComputeNodeNum value of -1 as if it were unspecified upon a change to
manual scaling.
Interactions Between Scaling and Other Cluster Operations
Some cluster operations cannot be performed while Big Data Extensions is actively scaling a cluster.
If you try to perform the following operations while Big Data Extensions is scaling a cluster in MANUAL
mode, Big Data Extensions warns you that in the cluster's current state, the operation cannot be performed.
Concurrent attempt at manual scaling
n
Switch to AUTO mode while manual scaling operations are in progress
n
If a cluster is in AUTO mode for elastic scaling when you perform the following cluster operations on it, Big
Data Extensions changes the scaling mode to MANUAL and changes the cluster to manual scaling. You can
re-enable the AUTO mode for elastic scaling after the cluster operation finishes, except if you delete the
cluster.
Delete the cluster
n
Repair the cluster
n
Stop the cluster
n
If a cluster is in AUTO mode for elastic scaling when you perform the following cluster operations on it, Big
Data Extensions temporarily switches the cluster to MANUAL mode. When the cluster operation finishes,
Big Data Extensions returns the scaling mode to AUTO, which re-enables elastic scaling.
Resize the cluster
n
Reconfigure the cluster
n
If Big Data Extensions is scaling a cluster when you perform an operation that changes the scaling mode to
MANUAL, your requested operation waits until the scaling finishes, and then the requested operation
begins.
Optimize Cluster Resource Usage with Elastic Scaling in the
vSphere Web Client
You can specify the scaling mode of a cluster. Scaling lets you specify the number of nodes that the cluster
can use, and whether it adds nodes or uses nodes within a targeted range.
When you enable elastic scaling for a cluster, Big Data Extensions optimizes cluster performance and use of
nodes that have a Hadoop TaskTracker role.
92 VMware, Inc.
Chapter 8 Managing Hadoop and HBase Clusters
When you set a cluster's scaling mode to AUTO, configure the minimum number of compute nodes. If you
do not configure the minimum and maximum number of compute nodes, the previous settings are retained.
When you set a cluster's scaling mode to MANUAL, configure the target number of compute nodes. If you
do not configure the target number of compute nodes, Big Data Extensions sets the number of active
compute nodes to the current number of active compute nodes.
In elastic scaling, Big Data Extensions has two different behaviors for deciding how many active compute
nodes to maintain. In both behaviors, Big Data Extensions replaces unresponsive or faulty nodes with live,
responsive nodes.
Variable. The number of active, healthy TaskTracker compute nodes is maintained from the configured
n
minimum number of compute nodes to the configured maximum number of compute nodes. The
number of active compute nodes varies as resource availability fluctuates.
Fixed. The number of active, healthy TaskTracker compute nodes is maintained at a fixed number when
n
the same value is configured for the minimum and maximum number of compute nodes.
Prerequisites
Understand how elastic scaling and resource usage work. See “About Resource Usage and Elastic
n
Scaling,” on page 90.
Verify that the cluster you want to optimize is data-compute separated. See “About Hadoop and HBase
n
Cluster Deployment Types,” on page 68
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2In the object navigator select Big Data Extensions.
3Under Inventory Lists click Big Data Clusters.
4Select the cluster whose elasticity mode you want to set from the Hadoop Cluster Name column.
5Click the All Actions icon, and select Set Elasticity Mode.
6Specify the elasticity settings for the cluster that you want to modify.
OptionDescription
Elasticity mode
Target compute nodes
Min compute nodes
Max compute nodes
Select the type of elasticity mode you want to use. You can choose manual
or automatic.
Specify the number of compute nodes the cluster should target for use.
This option is applicable only to manual scaling (manual elasticity mode).
If you do not specify the target number of compute nodes, the node setting
remains unconfigured, and Big Data Extensions sets the number of active
compute nodes to the current number of active compute nodes.
NOTE A value of "Unset" or "-1" means that the node setting has not been
configured and is not applicable.
Specify the minimum number (the lower limit) of active compute nodes to
maintain in the cluster. This option is applicable only to elastic scaling
(automatic elasticity mode).
To ensure that under contention elasticity keeps a cluster operating with
more than a cluster’s initial default setting of zero compute nodes,
configure the minimum number of compute nodes to a nonzero number.
Specify the maximum number (the upper limit) of active compute nodes to
maintain in the cluster. This option is applicable only to elastic scaling
(automatic elasticity mode).
What to do next
Specify the cluster's access priority for datastores. See “Use Disk I/O Shares to Prioritize Cluster Virtual
Machines in the vSphere Web Client,” on page 95.
VMware, Inc. 93
VMware vSphere Big Data Extensions Administrator's and User's Guide
Schedule Fixed Elastic Scaling for a Hadoop Cluster
You can enable fixed, elastic scaling according to a preconfigured schedule. Scheduled fixed, elastic scaling
provides more control than variable, elastic scaling while still improving efficiency, allowing explicit
changes in the number of active compute nodes during periods of predictable usage.
For example, in an office with typical workday hours, there is likely a reduced load on a VMware View
resource pool after the office staff goes home. You could configure scheduled fixed, elastic scaling to specify
a greater number of compute nodes from 8 PM to 4 AM, when you know that the workload would
otherwise be very light.
Prerequisites
From the Serengeti Command-Line Interface, enable the cluster for elastic scaling, and set the
minComputeNodeNum and MaxComputeNodeNum parameters to the same value: the number of active TaskTracker
nodes that you want during the period of scheduled fixed elasticity.
Procedure
1Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
serengeti.
2Use any scheduling mechanism that you want to call
the /opt/serengeti/sbin/set_compute_node_num.sh script to set the number of active TaskTracker
compute nodes that you want.
After the scheduling mechanism calls the set_compute_node_num.sh script, fixed, elastic scaling remains
in effect with the configured number of active TaskTracker compute nodes until the next scheduling
mechanism change or until a user changes the scaling mode or parameters in either the vSphere Web
Client or the Serengeti Command-Line Interface.
This example shows how to use a crontab file on the Serengeti Management Server to schedule specific
numbers of active TaskTracker compute nodes.
# cluster_A: use 20 active TaskTracker compute nodes from 11:00 to 16:00, and 30 compute
nodes the rest of the day
00 11 * * * /opt/serengeti/sbin/set_compute_node_num.sh --name cluster_A
# cluster_C: reset the number of active TaskTracker compute nodes every 6 hours to 15
0 */6 * * * /opt/serengeti/sbin/set_compute_node_num.sh --name cluster_B
Use Disk I/O Shares to Prioritize Cluster Virtual Machines in the
vSphere Web Client
You can set the disk I/O shares for the virtual machines running a cluster. Disk shares distinguish highpriority virtual machines from low-priority virtual machines.
Disk shares is a value that represents the relative metric for controlling disk bandwidth to all virtual
machines. The values are compared to the sum of all shares of all virtual machines on the server and, on an
ESXi host, the service console. Big Data Extensions can adjust disk shares for all virtual machines in a
cluster. Using disk shares you can change a cluster's I/O bandwidth to improve the cluster's I/O
performance.
For more information about using disk shares to prioritize virtual machines, see the VMware vSphere ESXi
and vCenter Server documentation.
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2In the object navigator select Big Data Extensions.
3In the Inventory Lists click Big Data Clusters.
4Select the cluster whose disk IO shares you want to set from the Hadoop Cluster Name column.
5Click the Actions icon, and select Set Disk IO Share.
6Specify a value to allocate a number of shares of disk bandwidth to the virtual machine running the
cluster.
Clusters configured for HIGH I/O shares receive higher priority access than those with NORMAL and
LOW priorities, which provides better disk I/O performance. Disk shares are commonly set LOW for
compute virtual machines and NORMAL for data virtual machines. The master node virtual machine is
commonly set to NORMAL.
7Click OK to save your changes.
About vSphere High Availability and vSphere Fault Tolerance
The Serengeti Management Server leverages vSphere HA to protect the Hadoop master node virtual
machine, which can be monitored by vSphere.
When a Hadoop NameNode or JobTracker service stops unexpectedly, vSphere restarts the Hadoop virtual
machine in another host, reducing unplanned downtime. If vsphere Fault Tolerance is configured and the
master node virtual machine stops unexpectedly because of host failover or loss of network connectivity, the
secondary node is used, without downtime.
Recover from Disk Failure with the Serengeti Command-Line Interface
Client
If there is a disk failure in a Hadoop cluster, and the disk does not perform management roles such as
NameNode, JobTracker, ResourceManager, HMaster, or ZooKeeper, you can recover by running the
Serengeti cluster fix command.
Big Data Extensions uses a large number of inexpensive disk drives for data storage (configured as Just a
Bunch of Disks). If several disks fail, the Hadoop data node might shutdown. Big Data Extensions lets you
to recover from disk failures.
VMware, Inc. 95
VMware vSphere Big Data Extensions Administrator's and User's Guide
Serengeti supports recovery from swap and data disk failure on all supported Hadoop distributions. Disks
are recovered and started in sequence to avoid the temporary loss of multiple nodes at once. A new disk
matches the corresponding failed disk’s storage type and placement policies.
The MapR distribution does not support recovery from disk failure by using the cluster fix command.
IMPORTANT Even if you changed the user password on the cluster's nodes, the changed password is not
used for the new nodes that are created by the disk recovery operation. If you set the cluster's initial
administrator password when you created the cluster, that initial administrator password is used for the
new nodes. If you did not set the cluster's initial administrator password when you created the cluster, new
random passwords are used for the new nodes.
Log in to Hadoop Nodes with the Serengeti Command-Line Interface
Client
To perform troubleshooting or to run your management automation scripts, log in to Hadoop master,
worker, and client nodes with password-less SSH from the Serengeti Management Server using SSH client
tools such as SSH, PDSH, ClusterSSH, and Mussh.
You can use a user name and password authenticated login to connect to Hadoop cluster nodes over SSH.
All deployed nodes are password-protected with either a random password or a user-specified password
that was assigned when the cluster was created.
Prerequisites
Use the vSphere Web Client to log in to vCenter Server, and verify that the Serengeti Management Server
virtual machine is running.
Procedure
1Right-click the Serengeti Management Server virtual machine and select Open Console.
The password for the Serengeti Management Server appears.
NOTE If the password scrolls off the console screen, press Ctrl+D to return to the command prompt.
2Use the vSphere Web Client to log in to the Hadoop node.
The password for the root user appears on the virtual machine console in the vSphere Web Client.
3Change the Hadoop node’s password by running the set-password -u command.
sudo /opt/serengeti/sbin/set-password -u
96 VMware, Inc.
Chapter 8 Managing Hadoop and HBase Clusters
Change the User Password on All of the Nodes of a Cluster
You can change the user password for all nodes in a cluster. The user password that you can change
includes the serengeti and root users.
You can change a user's password on all nodes within a given cluster. Passwords are from 8 to 128
characters, and include only alphanumeric characters ([0-9, a-z, A-Z]) and the following special characters: _
@ # $ % ^ & *.
IMPORTANT If you scale out or perform disk recovery operations on a cluster after you change the user
password for the cluster's original nodes, the changed password is not used for the new cluster nodes that
are created by the scale out or disk recovery operation. If you set the cluster's initial administrator password
when you created the cluster, that initial administrator password is used for the new nodes. If you did not
set the cluster's initial administrator password when you created the cluster, new random passwords are
used for the new nodes.
Prerequisites
Deploy the Big Data Extensions vApp. See “Deploy the Big Data Extensions vApp in the vSphere Web
n
Client,” on page 23 .
Configure a Hadoop distribution to use with Big Data Extensions.
n
Create a cluster.
n
Procedure
1Open a command shell, such as Bash or PuTTY, and log in to the Serengeti Management Server as user
The password for the user account that you specify changes on all the nodes in the cluster.
VMware, Inc. 97
VMware vSphere Big Data Extensions Administrator's and User's Guide
98 VMware, Inc.
Monitoring the Big Data Extensions
Environment9
You can monitor the status of Serengeti-deployed clusters, including their datastores, networks, and
resource pools through the Serengeti Command-Line Interface. You can also view a list of available Hadoop
distributions. Monitoring capabilities are also available in the vSphere Web Client.
This chapter includes the following topics:
“View Serengeti Management Server Initialization Status,” on page 99
n
“View Clusters in the vSphere Web Client,” on page 100
n
“View Provisioned Clusters in the vSphere Web Client,” on page 100
n
“View Cluster Information in the vSphere Web Client,” on page 101
n
“Monitor the Hadoop Distributed File System Status in the vSphere Web Client,” on page 102
n
“Monitor MapReduce Status in the vSphere Web Client,” on page 103
n
“Monitor HBase Status in the vSphere Web Client,” on page 103
n
View Serengeti Management Server Initialization Status
You can you view the initialization status of the Serengeti Management Server services, view error messages
to help troubleshoot problems, and recover services that may not have successfully started.
Big Data Extensions may not successfully start for many reasons. The Serengeti Management Server
Administration Portal lets you view the initialization status of the Serengeti services, view error messages
for individual services to help troubleshoot problems, and recover services that may not have successfully
started.
Prerequisites
Ensure that you know the IP address of the Serengeti Management Server to which you want to
n
connect.
Ensure that you have login credentials for the Serengeti Management Server root user.
n
Procedure
1Open a Web browser and go the URL of the Serengeti Management Server Administration Portal.
https://management-server-ip-address:5480
2Type root for the user name, type the password, and click Login.
3Click the Summary tab.
The Serengeti Management Server services and their operational status is displayed in the Summary
page.
VMware, Inc.
99
VMware vSphere Big Data Extensions Administrator's and User's Guide
4Do one of the following.
OptionDescription
View Initialize Status
View Chef Server Services
Recover a Stopped or Failed
Service
Refresh
Click Details. The Serengeti Server Setup dialog box lets you view the
initialization status of the Serengeti Management Server. If the Serengeti
Management Server fails to initialize, an error message with
troubleshooting information displays. Once you resolve the error, a Retry
button lets you restart the failed service.
Click the Chef Server tree control to expand the list of Chef services.
Click Recover to restart a stopped or failed service. If a service fails due to
a configuration error, you must first resolve the problem that caused the
service to fail before you can successfully recover the failed service.
Click Refresh to update the information displayed in the Summary page.
What to do next
If there is an error that you need to resolve, the troubleshooting topics provide solutions to problems you
might encounter when using Big Data Extensions. See Chapter 11, “Troubleshooting,” on page 109.
View Clusters in the vSphere Web Client
You can view your clusters and the details about them in the vSphere Web Client.
Procedure
From Big Data Extensions, expand the inventory lists and click Big Data Clusters.
u
The Big Data Clusters list opens where you can view the cluster name, status, distribution, and many
more details.
View Provisioned Clusters in the vSphere Web Client
You can view the clusters deployed within Big Data Extensions, including information about whether the
cluster is running, the type of Hadoop distribution used by a cluster, and the number and type of nodes in
the cluster.
Prerequisites
Create one or more clusters whose information you can view.
n
Procedure
1Use the vSphere Web Client to log in to vCenter Server.
2Select Big Data Extensions.
3In the Inventory Lists, select Big Data Clusters.
4Select Big Data Clusters.
Information about all provisioned clusters appears in the right pane.
Table 9‑1. Cluster Information
OptionDescription
NameName of the cluster.
StatusStatus of the cluster.
DistributionHadoop distribution in use by the cluster.
Elasticity ModeThe elasticity mode in use by the cluster.
100 VMware, Inc.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.