View a markdown version of this page

Gathering Requirements - Amazon EMR Migration Guide

Gathering Requirements

Before designing your target Amazon EMR architecture or estimating costs, you need a clear picture of your current on-premises environment. This chapter provides a framework for gathering the metrics, configurations, and workload characteristics from your existing Hadoop clusters that inform every subsequent decision — from cluster sizing to storage layout to network topology. The sections walk through what to collect, where to find it, and how it maps to the migration planning questionnaire in Appendix A: Questionnaire for Requirements Gathering.

Obtaining on-premises metrics

These metrics are essential for cost estimation and Amazon EMR deployment planning. Capture each from your existing Hadoop clusters.

Infrastructure metrics

  • Aggregate number of physical CPUs and vCPUs.

  • CPU clock speed and core counts for each node.

  • Aggregate and per-node memory size.

  • Amount of HDFS storage (without replication) and monthly growth rate.

  • Aggregate maximum network throughput and inter-rack bandwidth.

  • Disk I/O throughput for each node (sequential read/write, IOPS).

Utilization metrics

  • At least one week (ideally 30 days) of utilization graphs for CPU, memory, disk I/O, and network.

  • Peak and average utilization ratios for each resource dimension.

  • Time-of-day and day-of-week usage patterns.

  • YARN queue utilization breakdown (if multiple queues).

Workload metrics

  • Job counts, schedule, and average durations (by framework: Spark, Hive, MapReduce, Pig).

  • Peak concurrency (max simultaneously running applications).

  • Job failure rates and common failure categories.

  • Data read/written for each job.

Note

For a full inventory and migration requirements, refer to Appendix A: Questionnaire for Requirements Gathering. The "Current Cluster Setup" section covers infrastructure metrics, "Cluster Use" covers utilization, and "Use Cases" covers workload characteristics.

How to collect on-premises metrics

How you collect these metrics depends on your Hadoop distribution and cluster configuration.

Cloudera (CDH/CDP) environments

Cloudera Manager exposes a REST API.

Cloudera Manager API
Metric category API endpoint What it returns
Cluster hosts GET /api/v41/clusters/{cluster}/hosts Node count, CPU cores, memory, rack assignment.
CPU/memory time series GET /api/v41/timeseries?query=select cpu_percent, physical_memory_used Historical utilization at configurable granularity.
HDFS usage GET /api/v41/clusters/{cluster}/services/hdfs/roles Capacity, used bytes, replication factor, block count.
YARN resource pools GET /api/v41/clusters/{cluster}/services/yarn/yarnApplications Application history with resource consumption.
Service configurations GET /api/v41/clusters/{cluster}/services/{service}/config Full configuration export for each service.

Export tip — use the Cloudera Manager diagnostic bundle (Support > Send Diagnostic Data > Collect Diagnostic Data) to generate a full cluster snapshot to share with AWS solutions architects.

Cloudera Manager Reports — Clusters > Utilization Report downloads CSV utilization data, including per-tenant consumption when the YARN fair scheduler is configured.

Hortonworks (HDP) / Apache Ambari environments

Ambari REST API
Metric category API endpoint What it returns
Cluster hosts GET /api/v1/clusters/{cluster}/hosts Hostnames, CPU, memory, disk, OS.
Host metrics GET /api/v1/clusters/{cluster}/hosts/{host}?fields=metrics CPU, memory, disk, network time series.
YARN queues GET /api/v1/clusters/{cluster}/services/YARN/components/RESOURCEMANAGER Queue capacity, used resources.
Service configurations GET /api/v1/clusters/{cluster}/configurations All service configs with version history.
Installed components GET /api/v1/clusters/{cluster}/services List of deployed services and status.

Ambari Metrics Collector (AMS) — query /ws/v1/timeline/metrics for higher-resolution historical metrics (10-second resolution recent, hourly aggregates for longer ranges).

Direct Hadoop component APIs

Regardless of distribution, you can query components directly.

YARN ResourceManager REST API

GET http://<rm-host>:8088/ws/v1/cluster/metrics GET http://<rm-host>:8088/ws/v1/cluster/apps?states=FINISHED&startedTimeBegin=<epoch_ms> GET http://<rm-host>:8088/ws/v1/cluster/scheduler

The /cluster/metrics endpoint returns totalMB, availableMB, allocatedMB, totalVirtualCores, availableVirtualCores, and allocatedVirtualCores.

HDFS NameNode REST API

GET http://<nn-host>:9870/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState GET http://<nn-host>:9870/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem

Key metrics are CapacityTotal, CapacityUsed, CapacityRemaining, FilesTotal, BlocksTotal, and UnderReplicatedBlocks. Capacity excludes replication — multiply by the replication factor, typically 3.

Spark History Server

GET http://<shs-host>:18080/api/v1/applications?status=completed GET http://<shs-host>:18080/api/v1/applications/{app-id}

Extract executor counts, memory for each executor, and stage runtimes.

Important

These component web user interfaces and REST endpoints (YARN ResourceManager, HDFS NameNode, Spark History Server) are shown with http as they typically run on-premises. Access them over TLS, an SSH tunnel, or a private network (bastion/VPN), and never expose these ports to the public internet. On Amazon EMR, restrict access using security groups and prefer the Amazon EMR console application user interfaces or a proxy over direct public access.

Linux-level collection

For bare-metal or VM clusters without a management platform, collect from each node.

Linux-level metric collection
Tool Command What it captures
sar sar -u -r -d -n DEV 60 1440 > metrics.txt CPU, memory, disk, network — 1-minute intervals for 24 hours.
vmstat vmstat 60 1440 > vmstat.txt Processes, memory, swap, I/O, CPU.
iostat iostat -x 60 1440 > iostat.txt Per-device I/O utilization, latency, throughput.
free free -g Total and available memory.
lscpu lscpu CPU architecture, cores, threads, clock speed.
df df -h Filesystem capacity and usage.
Note

Run these on a representative sample of data nodes during a typical workload period (at least one full business day covering peak hours).

Automated collection with assessment tools

  • AWS Migration Hub. The Migration Hub Strategy Recommendations collector agent gathers server inventory, CPU, memory, and network metrics over a 14-day assessment.

  • Unravel Data. An automated assessment that generates a migration readiness report.

  • Partner assessment tools. Several AWS Partners in the Service Delivery Program offer proprietary tools. For more information, see Support for Your Migration.

Workload inventory

You need a complete catalog of what runs on your clusters.

Cataloging jobs by framework

Create a spreadsheet or structured inventory with one row for each job or pipeline.

Job inventory fields
Field Description Where to Find It
Job name / ID Unique identifier or meaningful name Scheduler (Oozie, Airflow, cron), YARN app name
Framework Spark, Hive, MapReduce, Pig, and Sqoop YARN application type field
Language Scala, PySpark, Java, HiveQL, SQL Source repository or YARN application tags
Schedule Cron expression or trigger Oozie coordinator, Airflow DAG, crontab
SLA Required completion time Business owner documentation, scheduler alerts
Upstream dependencies Input tables, files, or signals this job waits for DAG definitions, Oozie workflows
Downstream consumers Tables, files, or signals produced Data lineage tools, DAG definitions
Average runtime Typical end-to-end duration YARN app history, scheduler logs
Peak resources Max vCPU and memory consumed YARN application attempt metrics
Data volumes Input and output size (GB/TB) HDFS audit logs, Spark UI I/O metrics
Tip

Query the YARN application history API (/ws/v1/cluster/apps) with a 30-day window and group by applicationType and name to generate this inventory programmatically.

Hive table inventory

If your cluster uses Apache Hive or a Hive-compatible metastore, export the full table catalog.

-- List all databases and table counts SELECT d.NAME AS database_name, COUNT(t.TBL_ID) AS table_count FROM DBS d LEFT JOIN TBLS t ON d.DB_ID = t.DB_ID GROUP BY d.NAME ORDER BY table_count DESC; -- Table details: type, format, location, and row count SELECT d.NAME AS database_name, t.TBL_NAME AS table_name, t.TBL_TYPE AS table_type, s.INPUT_FORMAT AS input_format, s.LOCATION AS hdfs_location, p.PARAM_VALUE AS num_rows FROM TBLS t JOIN DBS d ON t.DB_ID = d.DB_ID JOIN SDS s ON t.SD_ID = s.SD_ID LEFT JOIN TABLE_PARAMS p ON t.TBL_ID = p.TBL_ID AND p.PARAM_KEY = 'numRows' ORDER BY d.NAME, t.TBL_NAME;

This identifies active and stale tables, file formats (Parquet, ORC, Avro, text), and HDFS locations, and it informs table-format migration (Incremental Data Processing) and catalog migration (Data Catalog Migration).

Identifying job dependencies and scheduling

  • Oozie workflows and coordinators. Export workflow XML and coordinator schedules. <action> nodes are jobs, and <fork> and <join> reveal parallelism.

  • Apache Airflow DAGs. Export DAG Python files, and use airflow dags show <dag_id>.

  • Custom schedulers (cron, Autosys, Control-M). Extract job definitions and dependency chains.

  • Event-driven pipelines. Document HDFS directory sensors, Kafka topics, or database triggers.

The dependency map determines migration phasing.

Configuration and dependency mapping

The third pillar focuses on software configurations, custom code, and integration dependencies to replicate or replace on Amazon EMR.

Custom code inventory

  • Custom JARs and libraries (UDFs, custom input/output formats, SerDes, custom Spark listeners or accumulators).

  • Python packages (non-standard libraries used by PySpark jobs; check virtualenvs and pip freeze on gateway nodes).

  • Shell scripts and wrappers (bootstrap scripts, pre/post-processing scripts).

  • Configuration overlays (custom spark-defaults.conf, hive-site.xml, core-site.xml, and mapred-site.xml properties).

Export configurations systematically. For Cloudera, Clusters > {cluster} > Actions > Download Client Configuration exports a ZIP. For Ambari, call GET /api/v1/clusters/{cluster}/configurations?type={config-type} for each service config type.

Authentication and authorization configuration

Authentication and authorization mapping
On-Premises Component What to Capture EMR Equivalent
Kerberos KDC Realm name, trust relationships, keytab management process EMR Kerberos config, cross-realm trust to Active Directory
Apache Ranger All policies (HDFS, Hive, Spark SQL, HBase), user/group mappings EMR-native RBAC through Lake Formation, or Apache Ranger on EMR
Apache Sentry Database/table/column-level policies Lake Formation permissions
LDAP/Active Directory User/group structure, service accounts, LDAP search bases IAM Identity Center, LDAP integration through EMR security config
Network segmentation Firewall rules between zones, allowed ports VPC security groups, NACLs, PrivateLink endpoints
Encryption At-rest (HDFS TDE, KMS), in-transit (TLS/SSL configs) EMR security configuration (S3 SSE/CSE, EBS encryption, TLS)
Note

Capture the actual policy definitions, not just the policy types, so they can be converted to equivalent Amazon EMR and Lake Formation permissions (Securing your Resources on Amazon EMR).

Network and integration dependencies

  • Data sources (RDBMS JDBC URLs, Kafka brokers, FTP/SFTP servers, API endpoints).

  • Data consumers (BI tools like Tableau and Power BI, downstream databases, reporting systems).

  • Identity systems (Active Directory, LDAP endpoints, Kerberos KDC addresses).

  • Monitoring and alerting (Nagios, Zabbix, Datadog, Splunk).

  • DNS and service discovery (internal DNS names, Zookeeper quorums).

Document the network path (source IP/port to destination IP/port, protocols) for each integration. This drives VPC design, security group rules, and whether Direct Connect or VPN is required.

Requirements gathering checklist

Use this checklist to confirm completeness before planning and design.

Requirements gathering checklist
Category Collected Notes
Infrastructure metrics (CPU, memory, storage, network) Per-node and aggregate.
30-day utilization data (minimum 7 days) Peak, average, time-of-day.
Workload inventory (all jobs cataloged) By framework, schedule, SLA.
Dependency map (job-to-job, table-to-table) Upstream and downstream.
Hive/metastore table catalog With formats, sizes, access patterns.
Custom code inventory (JARs, UDFs, scripts) Source location and owners identified.
Security configuration export Kerberos, Ranger/Sentry policies, LDAP.
Network integration map All external systems documented.
Service configuration export Core-site, HDFS, YARN, Hive, Spark configs.
Growth projections (storage, compute, users) 12-month and 3-year.

Once these requirements are gathered, proceed to Cost Estimation and Optimization to translate metrics into Amazon EMR sizing and cost projections, Amazon EMR Cluster Segmentation Schemes to determine how workloads map to clusters, and Securing your Resources on Amazon EMR to translate your security posture to Amazon EMR controls.