1170 lines
58 KiB
HTML
1170 lines
58 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!--
|
|
| Generated by Apache Maven Doxia at 2023-03-08
|
|
| Rendered using Apache Maven Stylus Skin 1.5
|
|
-->
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Apache Hadoop 3.4.0-SNAPSHOT – Hadoop Cluster Setup</title>
|
|
<style type="text/css" media="all">
|
|
@import url("./css/maven-base.css");
|
|
@import url("./css/maven-theme.css");
|
|
@import url("./css/site.css");
|
|
</style>
|
|
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
|
|
<meta name="Date-Revision-yyyymmdd" content="20230308" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
</head>
|
|
<body class="composite">
|
|
<div id="banner">
|
|
<a href="http://hadoop.apache.org/" id="bannerLeft">
|
|
<img src="http://hadoop.apache.org/images/hadoop-logo.jpg" alt="" />
|
|
</a>
|
|
<a href="http://www.apache.org/" id="bannerRight">
|
|
<img src="http://www.apache.org/images/asf_logo_wide.png" alt="" />
|
|
</a>
|
|
<div class="clear">
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
<div id="breadcrumbs">
|
|
|
|
<div class="xright"> <a href="http://wiki.apache.org/hadoop" class="externalLink">Wiki</a>
|
|
|
|
|
<a href="https://gitbox.apache.org/repos/asf/hadoop.git" class="externalLink">git</a>
|
|
|
|
|
<a href="http://hadoop.apache.org/" class="externalLink">Apache Hadoop</a>
|
|
|
|
| Last Published: 2023-03-08
|
|
| Version: 3.4.0-SNAPSHOT
|
|
</div>
|
|
<div class="clear">
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
<div id="leftColumn">
|
|
<div id="navcolumn">
|
|
|
|
<h5>General</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../index.html">Overview</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/SingleCluster.html">Single Node Setup</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/ClusterSetup.html">Cluster Setup</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/CommandsManual.html">Commands Reference</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/FileSystemShell.html">FileSystem Shell</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/Compatibility.html">Compatibility Specification</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/DownstreamDev.html">Downstream Developer's Guide</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/AdminCompatibilityGuide.html">Admin Compatibility Guide</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/InterfaceClassification.html">Interface Classification</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/filesystem/index.html">FileSystem Specification</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Common</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/CLIMiniCluster.html">CLI Mini Cluster</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/FairCallQueue.html">Fair Call Queue</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/NativeLibraries.html">Native Libraries</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/Superusers.html">Proxy User</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/RackAwareness.html">Rack Awareness</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/SecureMode.html">Secure Mode</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/ServiceLevelAuth.html">Service Level Authorization</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/HttpAuthentication.html">HTTP Authentication</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/CredentialProviderAPI.html">Credential Provider API</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-kms/index.html">Hadoop KMS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/Tracing.html">Tracing</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/UnixShellGuide.html">Unix Shell Guide</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/registry/index.html">Registry</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/AsyncProfilerServlet.html">Async Profiler</a>
|
|
</li>
|
|
</ul>
|
|
<h5>HDFS</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsDesign.html">Architecture</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsUserGuide.html">User Guide</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSCommands.html">Commands Reference</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html">NameNode HA With QJM</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html">NameNode HA With NFS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/ObserverNameNode.html">Observer NameNode</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/Federation.html">Federation</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/ViewFs.html">ViewFs</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/ViewFsOverloadScheme.html">ViewFsOverloadScheme</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html">Snapshots</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsEditsViewer.html">Edits Viewer</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsImageViewer.html">Image Viewer</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html">Permissions and HDFS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html">Quotas and HDFS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/LibHdfs.html">libhdfs (C API)</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/WebHDFS.html">WebHDFS (REST API)</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-hdfs-httpfs/index.html">HttpFS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/ShortCircuitLocalReads.html">Short Circuit Local Reads</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/CentralizedCacheManagement.html">Centralized Cache Management</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsNfsGateway.html">NFS Gateway</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsRollingUpgrade.html">Rolling Upgrade</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/ExtendedAttributes.html">Extended Attributes</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/TransparentEncryption.html">Transparent Encryption</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsMultihoming.html">Multihoming</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html">Storage Policies</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/MemoryStorage.html">Memory Storage Support</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/SLGUserGuide.html">Synthetic Load Generator</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSErasureCoding.html">Erasure Coding</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSDiskbalancer.html">Disk Balancer</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsUpgradeDomain.html">Upgrade Domain</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsDataNodeAdminGuide.html">DataNode Admin</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs-rbf/HDFSRouterFederation.html">Router Federation</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsProvidedStorage.html">Provided Storage</a>
|
|
</li>
|
|
</ul>
|
|
<h5>MapReduce</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html">Tutorial</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapredCommands.html">Commands Reference</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduce_Compatibility_Hadoop1_Hadoop2.html">Compatibility with 1.x</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/EncryptedShuffle.html">Encrypted Shuffle</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/PluggableShuffleAndPluggableSort.html">Pluggable Shuffle/Sort</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/DistributedCacheDeploy.html">Distributed Cache Deploy</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/SharedCacheSupport.html">Support for YARN Shared Cache</a>
|
|
</li>
|
|
</ul>
|
|
<h5>MapReduce REST APIs</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapredAppMasterRest.html">MR Application Master</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-hs/HistoryServerRest.html">MR History Server</a>
|
|
</li>
|
|
</ul>
|
|
<h5>YARN</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/YARN.html">Architecture</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/YarnCommands.html">Commands Reference</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html">Capacity Scheduler</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/FairScheduler.html">Fair Scheduler</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceManagerRestart.html">ResourceManager Restart</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceManagerHA.html">ResourceManager HA</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceModel.html">Resource Model</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeLabel.html">Node Labels</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeAttributes.html">Node Attributes</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/WebApplicationProxy.html">Web Application Proxy</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServer.html">Timeline Server</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServiceV2.html">Timeline Service V.2</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/WritingYarnApplications.html">Writing YARN Applications</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/YarnApplicationSecurity.html">YARN Application Security</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeManager.html">NodeManager</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/DockerContainers.html">Running Applications in Docker Containers</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/RuncContainers.html">Running Applications in runC Containers</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeManagerCgroups.html">Using CGroups</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/SecureContainer.html">Secure Containers</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/ReservationSystem.html">Reservation System</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/GracefulDecommission.html">Graceful Decommission</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/OpportunisticContainers.html">Opportunistic Containers</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/Federation.html">YARN Federation</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/SharedCache.html">Shared Cache</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/UsingGpus.html">Using GPU</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/UsingFPGA.html">Using FPGA</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/PlacementConstraints.html">Placement Constraints</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/YarnUI2.html">YARN UI2</a>
|
|
</li>
|
|
</ul>
|
|
<h5>YARN REST APIs</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/WebServicesIntro.html">Introduction</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html">Resource Manager</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeManagerRest.html">Node Manager</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServer.html#Timeline_Server_REST_API_v1">Timeline Server</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServiceV2.html#Timeline_Service_v.2_REST_API">Timeline Service V.2</a>
|
|
</li>
|
|
</ul>
|
|
<h5>YARN Service</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/Overview.html">Overview</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html">QuickStart</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/Concepts.html">Concepts</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/YarnServiceAPI.html">Yarn Service API</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html">Service Discovery</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/SystemServices.html">System Services</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Hadoop Compatible File Systems</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-aliyun/tools/hadoop-aliyun/index.html">Aliyun OSS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-aws/tools/hadoop-aws/index.html">Amazon S3</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-azure/index.html">Azure Blob Storage</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-azure-datalake/index.html">Azure Data Lake Storage</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-cos/cloud-storage/index.html">Tencent COS</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-huaweicloud/cloud-storage/index.html">Huaweicloud OBS</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Auth</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-auth/index.html">Overview</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-auth/Examples.html">Examples</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-auth/Configuration.html">Configuration</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-auth/BuildingIt.html">Building</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Tools</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-streaming/HadoopStreaming.html">Hadoop Streaming</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-archives/HadoopArchives.html">Hadoop Archives</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-archive-logs/HadoopArchiveLogs.html">Hadoop Archive Logs</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-distcp/DistCp.html">DistCp</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-federation-balance/HDFSFederationBalance.html">HDFS Federation Balance</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-gridmix/GridMix.html">GridMix</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-rumen/Rumen.html">Rumen</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-resourceestimator/ResourceEstimator.html">Resource Estimator Service</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-sls/SchedulerLoadSimulator.html">Scheduler Load Simulator</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/Benchmarking.html">Hadoop Benchmarking</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-dynamometer/Dynamometer.html">Dynamometer</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Reference</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/release/">Changelog and Release Notes</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../api/index.html">Java API docs</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/UnixShellAPI.html">Unix Shell API</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/Metrics.html">Metrics</a>
|
|
</li>
|
|
</ul>
|
|
<h5>Configuration</h5>
|
|
<ul>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/core-default.xml">core-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs/hdfs-default.xml">hdfs-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-hdfs-rbf/hdfs-rbf-default.xml">hdfs-rbf-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-default.xml">mapred-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-yarn/hadoop-yarn-common/yarn-default.xml">yarn-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-kms/kms-default.html">kms-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-hdfs-httpfs/httpfs-default.html">httpfs-default.xml</a>
|
|
</li>
|
|
<li class="none">
|
|
<a href="../../hadoop-project-dist/hadoop-common/DeprecatedProperties.html">Deprecated Properties</a>
|
|
</li>
|
|
</ul>
|
|
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
|
|
<img alt="Built by Maven" src="./images/logos/maven-feather.png"/>
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
<div id="bodyColumn">
|
|
<div id="contentBox">
|
|
<!---
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License. See accompanying LICENSE file.
|
|
-->
|
|
<h1>Hadoop Cluster Setup</h1>
|
|
<ul>
|
|
<li><a href="#Purpose">Purpose</a></li>
|
|
<li><a href="#Prerequisites">Prerequisites</a></li>
|
|
<li><a href="#Installation">Installation</a></li>
|
|
<li><a href="#Configuring_Hadoop_in_Non-Secure_Mode">Configuring Hadoop in Non-Secure Mode</a>
|
|
<ul>
|
|
<li><a href="#Configuring_Environment_of_Hadoop_Daemons">Configuring Environment of Hadoop Daemons</a></li>
|
|
<li><a href="#Configuring_the_Hadoop_Daemons">Configuring the Hadoop Daemons</a></li></ul></li>
|
|
<li><a href="#Monitoring_Health_of_NodeManagers">Monitoring Health of NodeManagers</a></li>
|
|
<li><a href="#Slaves_File">Slaves File</a></li>
|
|
<li><a href="#Hadoop_Rack_Awareness">Hadoop Rack Awareness</a></li>
|
|
<li><a href="#Logging">Logging</a></li>
|
|
<li><a href="#Operating_the_Hadoop_Cluster">Operating the Hadoop Cluster</a>
|
|
<ul>
|
|
<li><a href="#Hadoop_Startup">Hadoop Startup</a></li>
|
|
<li><a href="#Hadoop_Shutdown">Hadoop Shutdown</a></li></ul></li>
|
|
<li><a href="#Web_Interfaces">Web Interfaces</a></li></ul>
|
|
<section>
|
|
<h2><a name="Purpose"></a>Purpose</h2>
|
|
<p>This document describes how to install and configure Hadoop clusters ranging from a few nodes to extremely large clusters with thousands of nodes. To play with Hadoop, you may first want to install it on a single machine (see <a href="./SingleCluster.html">Single Node Setup</a>).</p>
|
|
<p>This document does not cover advanced topics such as High Availability.</p>
|
|
<p><i>Important</i>: all production Hadoop clusters use Kerberos to authenticate callers and secure access to HDFS data as well as restriction access to computation services (YARN etc.).</p>
|
|
<p>These instructions do not cover integration with any Kerberos services, -everyone bringing up a production cluster should include connecting to their organisation’s Kerberos infrastructure as a key part of the deployment.</p>
|
|
<p>See <a href="./SecureMode.html">Security</a> for details on how to secure a cluster.</p></section><section>
|
|
<h2><a name="Prerequisites"></a>Prerequisites</h2>
|
|
<ul>
|
|
|
|
<li>Install Java. See the <a class="externalLink" href="https://cwiki.apache.org/confluence/display/HADOOP/Hadoop+Java+Versions">Hadoop Wiki</a> for known good versions.</li>
|
|
<li>Download a stable version of Hadoop from Apache mirrors.</li>
|
|
</ul></section><section>
|
|
<h2><a name="Installation"></a>Installation</h2>
|
|
<p>Installing a Hadoop cluster typically involves unpacking the software on all the machines in the cluster or installing it via a packaging system as appropriate for your operating system. It is important to divide up the hardware into functions.</p>
|
|
<p>Typically one machine in the cluster is designated as the NameNode and another machine as the ResourceManager, exclusively. These are the masters. Other services (such as Web App Proxy Server and MapReduce Job History server) are usually run either on dedicated hardware or on shared infrastructure, depending upon the load.</p>
|
|
<p>The rest of the machines in the cluster act as both DataNode and NodeManager. These are the workers.</p></section><section>
|
|
<h2><a name="Configuring_Hadoop_in_Non-Secure_Mode"></a>Configuring Hadoop in Non-Secure Mode</h2>
|
|
<p>Hadoop’s Java configuration is driven by two types of important configuration files:</p>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<p>Read-only default configuration - <code>core-default.xml</code>, <code>hdfs-default.xml</code>, <code>yarn-default.xml</code> and <code>mapred-default.xml</code>.</p>
|
|
</li>
|
|
<li>
|
|
|
|
<p>Site-specific configuration - <code>etc/hadoop/core-site.xml</code>, <code>etc/hadoop/hdfs-site.xml</code>, <code>etc/hadoop/yarn-site.xml</code> and <code>etc/hadoop/mapred-site.xml</code>.</p>
|
|
</li>
|
|
</ul>
|
|
<p>Additionally, you can control the Hadoop scripts found in the bin/ directory of the distribution, by setting site-specific values via the <code>etc/hadoop/hadoop-env.sh</code> and <code>etc/hadoop/yarn-env.sh</code>.</p>
|
|
<p>To configure the Hadoop cluster you will need to configure the <code>environment</code> in which the Hadoop daemons execute as well as the <code>configuration parameters</code> for the Hadoop daemons.</p>
|
|
<p>HDFS daemons are NameNode, SecondaryNameNode, and DataNode. YARN daemons are ResourceManager, NodeManager, and WebAppProxy. If MapReduce is to be used, then the MapReduce Job History Server will also be running. For large installations, these are generally running on separate hosts.</p><section>
|
|
<h3><a name="Configuring_Environment_of_Hadoop_Daemons"></a>Configuring Environment of Hadoop Daemons</h3>
|
|
<p>Administrators should use the <code>etc/hadoop/hadoop-env.sh</code> and optionally the <code>etc/hadoop/mapred-env.sh</code> and <code>etc/hadoop/yarn-env.sh</code> scripts to do site-specific customization of the Hadoop daemons’ process environment.</p>
|
|
<p>At the very least, you must specify the <code>JAVA_HOME</code> so that it is correctly defined on each remote node.</p>
|
|
<p>Administrators can configure individual daemons using the configuration options shown below in the table:</p>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Daemon </th>
|
|
<th align="left"> Environment Variable </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> NameNode </td>
|
|
<td align="left"> HDFS_NAMENODE_OPTS </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> DataNode </td>
|
|
<td align="left"> HDFS_DATANODE_OPTS </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> Secondary NameNode </td>
|
|
<td align="left"> HDFS_SECONDARYNAMENODE_OPTS </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> ResourceManager </td>
|
|
<td align="left"> YARN_RESOURCEMANAGER_OPTS </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> NodeManager </td>
|
|
<td align="left"> YARN_NODEMANAGER_OPTS </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> WebAppProxy </td>
|
|
<td align="left"> YARN_PROXYSERVER_OPTS </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> Map Reduce Job History Server </td>
|
|
<td align="left"> MAPRED_HISTORYSERVER_OPTS </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<p>For example, To configure Namenode to use parallelGC and a 4GB Java Heap, the following statement should be added in hadoop-env.sh :</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre> export HDFS_NAMENODE_OPTS="-XX:+UseParallelGC -Xmx4g"
|
|
</pre></div></div>
|
|
|
|
<p>See <code>etc/hadoop/hadoop-env.sh</code> for other examples.</p>
|
|
<p>Other useful configuration parameters that you can customize include:</p>
|
|
<ul>
|
|
|
|
<li><code>HADOOP_PID_DIR</code> - The directory where the daemons’ process id files are stored.</li>
|
|
<li><code>HADOOP_LOG_DIR</code> - The directory where the daemons’ log files are stored. Log files are automatically created if they don’t exist.</li>
|
|
<li><code>HADOOP_HEAPSIZE_MAX</code> - The maximum amount of memory to use for the Java heapsize. Units supported by the JVM are also supported here. If no unit is present, it will be assumed the number is in megabytes. By default, Hadoop will let the JVM determine how much to use. This value can be overriden on a per-daemon basis using the appropriate <code>_OPTS</code> variable listed above. For example, setting <code>HADOOP_HEAPSIZE_MAX=1g</code> and <code>HADOOP_NAMENODE_OPTS="-Xmx5g"</code> will configure the NameNode with 5GB heap.</li>
|
|
</ul>
|
|
<p>In most cases, you should specify the <code>HADOOP_PID_DIR</code> and <code>HADOOP_LOG_DIR</code> directories such that they can only be written to by the users that are going to run the hadoop daemons. Otherwise there is the potential for a symlink attack.</p>
|
|
<p>It is also traditional to configure <code>HADOOP_HOME</code> in the system-wide shell environment configuration. For example, a simple script inside <code>/etc/profile.d</code>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre> HADOOP_HOME=/path/to/hadoop
|
|
export HADOOP_HOME
|
|
</pre></div></div>
|
|
</section><section>
|
|
<h3><a name="Configuring_the_Hadoop_Daemons"></a>Configuring the Hadoop Daemons</h3>
|
|
<p>This section deals with important parameters to be specified in the given configuration files:</p>
|
|
<ul>
|
|
|
|
<li><code>etc/hadoop/core-site.xml</code></li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>fs.defaultFS</code> </td>
|
|
<td align="left"> NameNode URI </td>
|
|
<td align="left"> <a class="externalLink" href="hdfs://host:port/">hdfs://host:port/</a> </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>io.file.buffer.size</code> </td>
|
|
<td align="left"> 131072 </td>
|
|
<td align="left"> Size of read/write buffer used in SequenceFiles. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<p><code>etc/hadoop/hdfs-site.xml</code></p>
|
|
</li>
|
|
<li>
|
|
|
|
<p>Configurations for NameNode:</p>
|
|
</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>dfs.namenode.name.dir</code> </td>
|
|
<td align="left"> Path on the local filesystem where the NameNode stores the namespace and transactions logs persistently. </td>
|
|
<td align="left"> If this is a comma-delimited list of directories then the name table is replicated in all of the directories, for redundancy. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>dfs.hosts</code> / <code>dfs.hosts.exclude</code> </td>
|
|
<td align="left"> List of permitted/excluded DataNodes. </td>
|
|
<td align="left"> If necessary, use these files to control the list of allowable datanodes. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>dfs.blocksize</code> </td>
|
|
<td align="left"> 268435456 </td>
|
|
<td align="left"> HDFS blocksize of 256MB for large file-systems. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>dfs.namenode.handler.count</code> </td>
|
|
<td align="left"> 100 </td>
|
|
<td align="left"> More NameNode server threads to handle RPCs from large number of DataNodes. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>Configurations for DataNode:</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>dfs.datanode.data.dir</code> </td>
|
|
<td align="left"> Comma separated list of paths on the local filesystem of a <code>DataNode</code> where it should store its blocks. </td>
|
|
<td align="left"> If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<p><code>etc/hadoop/yarn-site.xml</code></p>
|
|
</li>
|
|
<li>
|
|
|
|
<p>Configurations for ResourceManager and NodeManager:</p>
|
|
</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.acl.enable</code> </td>
|
|
<td align="left"> <code>true</code> / <code>false</code> </td>
|
|
<td align="left"> Enable ACLs? Defaults to <i>false</i>. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.admin.acl</code> </td>
|
|
<td align="left"> Admin ACL </td>
|
|
<td align="left"> ACL to set admins on the cluster. ACLs are of for <i>comma-separated-usersspacecomma-separated-groups</i>. Defaults to special value of <b>*</b> which means <i>anyone</i>. Special value of just <i>space</i> means no one has access. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.log-aggregation-enable</code> </td>
|
|
<td align="left"> <i>false</i> </td>
|
|
<td align="left"> Configuration to enable or disable log aggregation </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>Configurations for ResourceManager:</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.resourcemanager.address</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> host:port for clients to submit jobs. </td>
|
|
<td align="left"> <i>host:port</i> If set, overrides the hostname set in <code>yarn.resourcemanager.hostname</code>. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.resourcemanager.scheduler.address</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> host:port for ApplicationMasters to talk to Scheduler to obtain resources. </td>
|
|
<td align="left"> <i>host:port</i> If set, overrides the hostname set in <code>yarn.resourcemanager.hostname</code>. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.resourcemanager.resource-tracker.address</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> host:port for NodeManagers. </td>
|
|
<td align="left"> <i>host:port</i> If set, overrides the hostname set in <code>yarn.resourcemanager.hostname</code>. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.resourcemanager.admin.address</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> host:port for administrative commands. </td>
|
|
<td align="left"> <i>host:port</i> If set, overrides the hostname set in <code>yarn.resourcemanager.hostname</code>. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.resourcemanager.webapp.address</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> web-ui host:port. </td>
|
|
<td align="left"> <i>host:port</i> If set, overrides the hostname set in <code>yarn.resourcemanager.hostname</code>. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.resourcemanager.hostname</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> host. </td>
|
|
<td align="left"> <i>host</i> Single hostname that can be set in place of setting all <code>yarn.resourcemanager*address</code> resources. Results in default ports for ResourceManager components. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.resourcemanager.scheduler.class</code> </td>
|
|
<td align="left"> <code>ResourceManager</code> Scheduler class. </td>
|
|
<td align="left"> <code>CapacityScheduler</code> (recommended), <code>FairScheduler</code> (also recommended), or <code>FifoScheduler</code>. Use a fully qualified class name, e.g., <code>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler</code>. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.scheduler.minimum-allocation-mb</code> </td>
|
|
<td align="left"> Minimum limit of memory to allocate to each container request at the <code>Resource Manager</code>. </td>
|
|
<td align="left"> In MBs </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.scheduler.maximum-allocation-mb</code> </td>
|
|
<td align="left"> Maximum limit of memory to allocate to each container request at the <code>Resource Manager</code>. </td>
|
|
<td align="left"> In MBs </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.resourcemanager.nodes.include-path</code> / <code>yarn.resourcemanager.nodes.exclude-path</code> </td>
|
|
<td align="left"> List of permitted/excluded NodeManagers. </td>
|
|
<td align="left"> If necessary, use these files to control the list of allowable NodeManagers. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>Configurations for NodeManager:</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.resource.memory-mb</code> </td>
|
|
<td align="left"> Resource i.e. available physical memory, in MB, for given <code>NodeManager</code> </td>
|
|
<td align="left"> Defines total available resources on the <code>NodeManager</code> to be made available to running containers </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.nodemanager.vmem-pmem-ratio</code> </td>
|
|
<td align="left"> Maximum ratio by which virtual memory usage of tasks may exceed physical memory </td>
|
|
<td align="left"> The virtual memory usage of each task may exceed its physical memory limit by this ratio. The total amount of virtual memory used by tasks on the NodeManager may exceed its physical memory usage by this ratio. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.local-dirs</code> </td>
|
|
<td align="left"> Comma-separated list of paths on the local filesystem where intermediate data is written. </td>
|
|
<td align="left"> Multiple paths help spread disk i/o. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.nodemanager.log-dirs</code> </td>
|
|
<td align="left"> Comma-separated list of paths on the local filesystem where logs are written. </td>
|
|
<td align="left"> Multiple paths help spread disk i/o. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.log.retain-seconds</code> </td>
|
|
<td align="left"> <i>10800</i> </td>
|
|
<td align="left"> Default time (in seconds) to retain log files on the NodeManager Only applicable if log-aggregation is disabled. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.nodemanager.remote-app-log-dir</code> </td>
|
|
<td align="left"> <i>/logs</i> </td>
|
|
<td align="left"> HDFS directory where the application logs are moved on application completion. Need to set appropriate permissions. Only applicable if log-aggregation is enabled. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.remote-app-log-dir-suffix</code> </td>
|
|
<td align="left"> <i>logs</i> </td>
|
|
<td align="left"> Suffix appended to the remote log dir. Logs will be aggregated to ${yarn.nodemanager.remote-app-log-dir}/${user}/${thisParam} Only applicable if log-aggregation is enabled. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.nodemanager.aux-services</code> </td>
|
|
<td align="left"> mapreduce_shuffle </td>
|
|
<td align="left"> Shuffle service that needs to be set for Map Reduce applications. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.env-whitelist</code> </td>
|
|
<td align="left"> Environment properties to be inherited by containers from NodeManagers </td>
|
|
<td align="left"> For mapreduce application in addition to the default values HADOOP_MAPRED_HOME should to be added. Property value should JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PREPEND_DISTCACHE,HADOOP_YARN_HOME,HADOOP_HOME,PATH,LANG,TZ,HADOOP_MAPRED_HOME </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>Configurations for History Server (Needs to be moved elsewhere):</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.log-aggregation.retain-seconds</code> </td>
|
|
<td align="left"> <i>-1</i> </td>
|
|
<td align="left"> How long to keep aggregation logs before deleting them. -1 disables. Be careful, set this too small and you will spam the name node. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.log-aggregation.retain-check-interval-seconds</code> </td>
|
|
<td align="left"> <i>-1</i> </td>
|
|
<td align="left"> Time between checks for aggregated log retention. If set to 0 or a negative value then the value is computed as one-tenth of the aggregated log retention time. Be careful, set this too small and you will spam the name node. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<p><code>etc/hadoop/mapred-site.xml</code></p>
|
|
</li>
|
|
<li>
|
|
|
|
<p>Configurations for MapReduce Applications:</p>
|
|
</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>mapreduce.framework.name</code> </td>
|
|
<td align="left"> yarn </td>
|
|
<td align="left"> Execution framework set to Hadoop YARN. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>mapreduce.map.memory.mb</code> </td>
|
|
<td align="left"> 1536 </td>
|
|
<td align="left"> Larger resource limit for maps. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>mapreduce.map.java.opts</code> </td>
|
|
<td align="left"> -Xmx1024M </td>
|
|
<td align="left"> Larger heap-size for child jvms of maps. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>mapreduce.reduce.memory.mb</code> </td>
|
|
<td align="left"> 3072 </td>
|
|
<td align="left"> Larger resource limit for reduces. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>mapreduce.reduce.java.opts</code> </td>
|
|
<td align="left"> -Xmx2560M </td>
|
|
<td align="left"> Larger heap-size for child jvms of reduces. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>mapreduce.task.io.sort.mb</code> </td>
|
|
<td align="left"> 512 </td>
|
|
<td align="left"> Higher memory-limit while sorting data for efficiency. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>mapreduce.task.io.sort.factor</code> </td>
|
|
<td align="left"> 100 </td>
|
|
<td align="left"> More streams merged at once while sorting files. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>mapreduce.reduce.shuffle.parallelcopies</code> </td>
|
|
<td align="left"> 50 </td>
|
|
<td align="left"> Higher number of parallel copies run by reduces to fetch outputs from very large number of maps. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<ul>
|
|
|
|
<li>Configurations for MapReduce JobHistory Server:</li>
|
|
</ul>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>mapreduce.jobhistory.address</code> </td>
|
|
<td align="left"> MapReduce JobHistory Server <i>host:port</i> </td>
|
|
<td align="left"> Default port is 10020. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>mapreduce.jobhistory.webapp.address</code> </td>
|
|
<td align="left"> MapReduce JobHistory Server Web UI <i>host:port</i> </td>
|
|
<td align="left"> Default port is 19888. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>mapreduce.jobhistory.intermediate-done-dir</code> </td>
|
|
<td align="left"> /mr-history/tmp </td>
|
|
<td align="left"> Directory where history files are written by MapReduce jobs. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>mapreduce.jobhistory.done-dir</code> </td>
|
|
<td align="left"> /mr-history/done </td>
|
|
<td align="left"> Directory where history files are managed by the MR JobHistory Server. </td></tr>
|
|
</tbody>
|
|
</table></section></section><section>
|
|
<h2><a name="Monitoring_Health_of_NodeManagers"></a>Monitoring Health of NodeManagers</h2>
|
|
<p>Hadoop provides a mechanism by which administrators can configure the NodeManager to run an administrator supplied script periodically to determine if a node is healthy or not.</p>
|
|
<p>Administrators can determine if the node is in a healthy state by performing any checks of their choice in the script. If the script detects the node to be in an unhealthy state, it must print a line to standard output beginning with the string ERROR. The NodeManager spawns the script periodically and checks its output. If the script’s output contains the string ERROR, as described above, the node’s status is reported as <code>unhealthy</code> and the node is black-listed by the ResourceManager. No further tasks will be assigned to this node. However, the NodeManager continues to run the script, so that if the node becomes healthy again, it will be removed from the blacklisted nodes on the ResourceManager automatically. The node’s health along with the output of the script, if it is unhealthy, is available to the administrator in the ResourceManager web interface. The time since the node was healthy is also displayed on the web interface.</p>
|
|
<p>The following parameters can be used to control the node health monitoring script in <code>etc/hadoop/yarn-site.xml</code>.</p>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Parameter </th>
|
|
<th align="left"> Value </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.health-checker.script.path</code> </td>
|
|
<td align="left"> Node health script </td>
|
|
<td align="left"> Script to check for node’s health status. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.nodemanager.health-checker.script.opts</code> </td>
|
|
<td align="left"> Node health script options </td>
|
|
<td align="left"> Options for script to check for node’s health status. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> <code>yarn.nodemanager.health-checker.interval-ms</code> </td>
|
|
<td align="left"> Node health script interval </td>
|
|
<td align="left"> Time interval for running health script. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> <code>yarn.nodemanager.health-checker.script.timeout-ms</code> </td>
|
|
<td align="left"> Node health script timeout interval </td>
|
|
<td align="left"> Timeout for health script execution. </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<p>The health checker script is not supposed to give ERROR if only some of the local disks become bad. NodeManager has the ability to periodically check the health of the local disks (specifically checks nodemanager-local-dirs and nodemanager-log-dirs) and after reaching the threshold of number of bad directories based on the value set for the config property yarn.nodemanager.disk-health-checker.min-healthy-disks, the whole node is marked unhealthy and this info is sent to resource manager also. The boot disk is either raided or a failure in the boot disk is identified by the health checker script.</p></section><section>
|
|
<h2><a name="Slaves_File"></a>Slaves File</h2>
|
|
<p>List all worker hostnames or IP addresses in your <code>etc/hadoop/workers</code> file, one per line. Helper scripts (described below) will use the <code>etc/hadoop/workers</code> file to run commands on many hosts at once. It is not used for any of the Java-based Hadoop configuration. In order to use this functionality, ssh trusts (via either passphraseless ssh or some other means, such as Kerberos) must be established for the accounts used to run Hadoop.</p></section><section>
|
|
<h2><a name="Hadoop_Rack_Awareness"></a>Hadoop Rack Awareness</h2>
|
|
<p>Many Hadoop components are rack-aware and take advantage of the network topology for performance and safety. Hadoop daemons obtain the rack information of the workers in the cluster by invoking an administrator configured module. See the <a href="./RackAwareness.html">Rack Awareness</a> documentation for more specific information.</p>
|
|
<p>It is highly recommended configuring rack awareness prior to starting HDFS.</p></section><section>
|
|
<h2><a name="Logging"></a>Logging</h2>
|
|
<p>Hadoop uses the <a class="externalLink" href="http://logging.apache.org/log4j/2.x/">Apache log4j</a> via the Apache Commons Logging framework for logging. Edit the <code>etc/hadoop/log4j.properties</code> file to customize the Hadoop daemons’ logging configuration (log-formats and so on).</p></section><section>
|
|
<h2><a name="Operating_the_Hadoop_Cluster"></a>Operating the Hadoop Cluster</h2>
|
|
<p>Once all the necessary configuration is complete, distribute the files to the <code>HADOOP_CONF_DIR</code> directory on all the machines. This should be the same directory on all machines.</p>
|
|
<p>In general, it is recommended that HDFS and YARN run as separate users. In the majority of installations, HDFS processes execute as ‘hdfs’. YARN is typically using the ‘yarn’ account.</p><section>
|
|
<h3><a name="Hadoop_Startup"></a>Hadoop Startup</h3>
|
|
<p>To start a Hadoop cluster you will need to start both the HDFS and YARN cluster.</p>
|
|
<p>The first time you bring up HDFS, it must be formatted. Format a new distributed filesystem as <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/bin/hdfs namenode -format
|
|
</pre></div></div>
|
|
|
|
<p>Start the HDFS NameNode with the following command on the designated node as <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon start namenode
|
|
</pre></div></div>
|
|
|
|
<p>Start a HDFS DataNode with the following command on each designated node as <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon start datanode
|
|
</pre></div></div>
|
|
|
|
<p>If <code>etc/hadoop/workers</code> and ssh trusted access is configured (see <a href="./SingleCluster.html">Single Node Setup</a>), all of the HDFS processes can be started with a utility script. As <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/sbin/start-dfs.sh
|
|
</pre></div></div>
|
|
|
|
<p>Start the YARN with the following command, run on the designated ResourceManager as <i>yarn</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/bin/yarn --daemon start resourcemanager
|
|
</pre></div></div>
|
|
|
|
<p>Run a script to start a NodeManager on each designated host as <i>yarn</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/bin/yarn --daemon start nodemanager
|
|
</pre></div></div>
|
|
|
|
<p>Start a standalone WebAppProxy server. Run on the WebAppProxy server as <i>yarn</i>. If multiple servers are used with load balancing it should be run on each of them:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/bin/yarn --daemon start proxyserver
|
|
</pre></div></div>
|
|
|
|
<p>If <code>etc/hadoop/workers</code> and ssh trusted access is configured (see <a href="./SingleCluster.html">Single Node Setup</a>), all of the YARN processes can be started with a utility script. As <i>yarn</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/sbin/start-yarn.sh
|
|
</pre></div></div>
|
|
|
|
<p>Start the MapReduce JobHistory Server with the following command, run on the designated server as <i>mapred</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[mapred]$ $HADOOP_HOME/bin/mapred --daemon start historyserver
|
|
</pre></div></div>
|
|
</section><section>
|
|
<h3><a name="Hadoop_Shutdown"></a>Hadoop Shutdown</h3>
|
|
<p>Stop the NameNode with the following command, run on the designated NameNode as <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon stop namenode
|
|
</pre></div></div>
|
|
|
|
<p>Run a script to stop a DataNode as <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon stop datanode
|
|
</pre></div></div>
|
|
|
|
<p>If <code>etc/hadoop/workers</code> and ssh trusted access is configured (see <a href="./SingleCluster.html">Single Node Setup</a>), all of the HDFS processes may be stopped with a utility script. As <i>hdfs</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[hdfs]$ $HADOOP_HOME/sbin/stop-dfs.sh
|
|
</pre></div></div>
|
|
|
|
<p>Stop the ResourceManager with the following command, run on the designated ResourceManager as <i>yarn</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/bin/yarn --daemon stop resourcemanager
|
|
</pre></div></div>
|
|
|
|
<p>Run a script to stop a NodeManager on a worker as <i>yarn</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/bin/yarn --daemon stop nodemanager
|
|
</pre></div></div>
|
|
|
|
<p>If <code>etc/hadoop/workers</code> and ssh trusted access is configured (see <a href="./SingleCluster.html">Single Node Setup</a>), all of the YARN processes can be stopped with a utility script. As <i>yarn</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/sbin/stop-yarn.sh
|
|
</pre></div></div>
|
|
|
|
<p>Stop the WebAppProxy server. Run on the WebAppProxy server as <i>yarn</i>. If multiple servers are used with load balancing it should be run on each of them:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[yarn]$ $HADOOP_HOME/bin/yarn stop proxyserver
|
|
</pre></div></div>
|
|
|
|
<p>Stop the MapReduce JobHistory Server with the following command, run on the designated server as <i>mapred</i>:</p>
|
|
|
|
<div class="source">
|
|
<div class="source">
|
|
<pre>[mapred]$ $HADOOP_HOME/bin/mapred --daemon stop historyserver
|
|
</pre></div></div>
|
|
</section></section><section>
|
|
<h2><a name="Web_Interfaces"></a>Web Interfaces</h2>
|
|
<p>Once the Hadoop cluster is up and running check the web-ui of the components as described below:</p>
|
|
<table border="0" class="bodyTable">
|
|
<thead>
|
|
|
|
<tr class="a">
|
|
<th align="left"> Daemon </th>
|
|
<th align="left"> Web Interface </th>
|
|
<th align="left"> Notes </th></tr>
|
|
</thead><tbody>
|
|
|
|
<tr class="b">
|
|
<td align="left"> NameNode </td>
|
|
<td align="left"> <a class="externalLink" href="http://nn_host:port/">http://nn_host:port/</a> </td>
|
|
<td align="left"> Default HTTP port is 9870. </td></tr>
|
|
<tr class="a">
|
|
<td align="left"> ResourceManager </td>
|
|
<td align="left"> <a class="externalLink" href="http://rm_host:port/">http://rm_host:port/</a> </td>
|
|
<td align="left"> Default HTTP port is 8088. </td></tr>
|
|
<tr class="b">
|
|
<td align="left"> MapReduce JobHistory Server </td>
|
|
<td align="left"> <a class="externalLink" href="http://jhs_host:port/">http://jhs_host:port/</a> </td>
|
|
<td align="left"> Default HTTP port is 19888. </td></tr>
|
|
</tbody>
|
|
</table></section>
|
|
</div>
|
|
</div>
|
|
<div class="clear">
|
|
<hr/>
|
|
</div>
|
|
<div id="footer">
|
|
<div class="xright">
|
|
© 2008-2023
|
|
Apache Software Foundation
|
|
|
|
- <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
|
|
Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
|
|
</div>
|
|
<div class="clear">
|
|
<hr/>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|