Scenario-Based Interview Questions, Command Cheat Sheet and Career Roadmap

Big Data and Hadoop Administrator 15 min min read Updated: Nov 17, 2026 Intermediate
Scenario-Based Interview Questions, Command Cheat Sheet and Career Roadmap
Intermediate Topic 3 of 3

Scenario Questions with Model Answers

Scenario 1: HDFS is 92 percent full and still growing. What do you do?

  1. Stabilise: find top consumers (hdfs dfs -du -h /), clear trash and temp (/tmp, staging, old logs), stop runaway jobs
  2. Protect: make sure NameNode and DataNodes still have headroom, avoid balancer overload, set quotas on abused directories
  3. Short term: move cold data to erasure coding, delete expired data with owner approval, add nodes quickly if budget exists
  4. Long term: capacity plan with triggers, lifecycle policies, report to management

Scenario 2: The active NameNode crashed at night. What is your response?

  1. Check that the standby became active (hdfs haadmin -getAllServiceState) and jobs are running
  2. Collect evidence: logs, GC log, thread dump if possible, dmesg
  3. Restart the failed NameNode so it becomes standby, verify it catches up
  4. Find root cause (OOM, disk, hardware), fix and write a post-incident review with preventions

Scenario 3: A user accidentally deleted /data/finance/2026.

  1. Do not panic and ask the user to stop further changes
  2. Check trash /user/<name>/.Trash
  3. Check snapshots: hdfs dfs -ls /data/finance/.snapshot and copy back
  4. If no snapshot, restore from backup via distcp
  5. Afterwards: enable snapshots, trash and tighter permissions

Scenario 4: Jobs suddenly 3 times slower since yesterday.

  1. Ask what changed (configs, patches, new jobs, data volume)
  2. Check NameNode RPC latency, YARN queue wait time and utilisation, network and disk metrics
  3. Compare per-host task times to find one bad node or rack
  4. Review audit log for a noisy user or job
  5. Roll back the last change if it correlates

Scenario 5: Security team asks, 'Who accessed customer data last month?'

Use the HDFS audit log and Ranger audit (Solr/OpenSearch) filtered by path and tag for the period, export a report grouped by user, group and action, and confirm retention covers the dates. Improve by sending audit to a SIEM and tagging PII with Atlas.

Scenario 6: Management wants to cut storage costs by 40 percent.

  • Measure: data by age, owner and access frequency
  • Delete expired and duplicate data
  • Convert text/CSV to compressed Parquet or ORC
  • Move cold data to erasure coding or cheaper storage
  • Lower replication for non-critical data
  • Report savings and risks

Scenario 7: A new team wants to join the cluster next week.

  • Create group, queue, quotas and Ranger policies
  • Provision Kerberos principals and edge access
  • Share onboarding guide with limits and best practices
  • Set up monitoring and chargeback tags

Command Cheat Sheet

HDFS

bash hdfs dfs -ls -h /path hdfs dfs -du -h -s /path hdfs dfs -count -q -h /path hdfs dfs -put local /hdfs hdfs dfs -get /hdfs local hdfs dfs -rm -r [-skipTrash] /path hdfs dfs -chmod / -chown / -setfacl / -getfacl hdfs dfs -setrep -w 3 /path hdfs dfsadmin -report hdfs dfsadmin -safemode get|enter|leave hdfs dfsadmin -refreshNodes hdfs dfsadmin -saveNamespace hdfs dfsadmin -fetchImage /dir hdfs dfsadmin -setQuota N /p hdfs dfsadmin -setSpaceQuota 10t /p hdfs fsck / [-files -blocks -locations] [-list-corruptfileblocks] hdfs balancer -threshold 10 hdfs diskbalancer -plan <host> hdfs mover -p /path hdfs haadmin -getAllServiceState hdfs haadmin -failover nn1 nn2 hdfs storagepolicies -setStoragePolicy -path /p -policy COLD hdfs ec -setPolicy -path /p -policy RS-6-3-1024k hdfs crypto -createZone -keyName k -path /p hadoop key create k hdfs oiv -p Delimited -i fsimage -o out.tsv hdfs oev -i edits -o edits.xml hadoop distcp -update -p -m 50 src dst hadoop distcp -update -diff s1 s2 src dst hdfs --daemon start|stop|status namenode|datanode|journalnode|zkfc

YARN

bash yarn node -list -all yarn application -list -appStates RUNNING yarn application -status <id> yarn application -kill <id> yarn logs -applicationId <id> yarn queue -status <queue> yarn rmadmin -refreshQueues yarn rmadmin -refreshNodes [-g timeout] yarn rmadmin -getAllServiceState yarn rmadmin -failover rm1 rm2 yarn cluster --list-node-labels mapred job -status <jobId>

Security, Linux and JVM

bash kinit user@REALM / kinit -kt keytab principal klist kdestroy klist -kt keytab kadmin -q "addprinc -randkey svc/host" kadmin -q "xst -k file svc/host" keytool -list -keystore ks.jks openssl x509 -in cert.pem -noout -dates jps jstack <pid> jmap -histo:live <pid> jstat -gcutil <pid> 5000 jcmd <pid> VM.flags iostat -x 5 sar -n DEV 5 ss -ltnp df -h free -m dmesg -T | tail curl -s http://nn:9870/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem

Ports Cheat Sheet (Hadoop 3)

ServicePorts
NameNode8020 (RPC), 8022 (service RPC if configured), 9870 HTTP / 9871 HTTPS
DataNode9866 data transfer, 9864 HTTP / 9865 HTTPS, 9867 IPC
JournalNode8485 RPC, 8480 HTTP / 8481 HTTPS
ResourceManager8032 client, 8030 scheduler, 8031 tracker, 8033 admin, 8088 HTTP / 8090 HTTPS
NodeManager8042 HTTP / 8044 HTTPS (RPC port is set by the NodeManager address)
JobHistory10020 RPC, 19888 HTTP
ZooKeeper2181 clients, 2888 quorum, 3888 election
Hive10000 HiveServer2, 9083 metastore
HBase16000 master, 16010 master UI, 16020 RegionServer, 16030 RS UI
Kafka9092 broker, 9093 controller (KRaft)
KMS9600
Ports can differ: Vendors and your own configs change defaults. Check your configs with hdfs getconf -confKey and the documentation for your version.

Resume Tips for Administrators

  • Show numbers: cluster size, TB managed, uptime, jobs per day, cost saved
  • List tools: Hadoop, Ambari/Cloudera Manager, Ansible, Terraform, Kerberos, Ranger, Prometheus, Grafana, Kafka, Spark, Linux, one cloud
  • Describe outcomes: reduced failover time, cut storage by 30 percent, automated patching
  • Include your lab project and GitHub links
  • Honestly mark what is lab experience versus production

Learning Roadmap

StageFocusTime (typical)
1Linux administration, networking, shell and Python basics1 to 2 months
2HDFS, YARN, MapReduce, installation (this course sections 1 to 4)1 to 2 months
3Security, ecosystem services, monitoring (sections 5 to 7)2 months
4Tuning, backup, DR, upgrades, troubleshooting (sections 8 to 10)2 months
5Cloud, Kubernetes, lakehouse, Terraform, CI/CD (section 11)2 to 3 months
6Labs, capstone, interviews (sections 12 and 13)1 month

Career Paths

RoleWhat changes
Big Data / Hadoop AdministratorOperate and secure on-premises clusters
Data Platform EngineerBuild self-service platforms with automation and cloud
Site Reliability Engineer for dataReliability, SLOs, incident management
Cloud Data Engineer / ArchitectDesign and cost-control data estates in the cloud
Security Engineer (data)Specialise in access control, encryption and compliance

Certifications to Consider

Vendor Hadoop certifications have changed over time. Today cloud provider data engineering and architect certifications, Kubernetes (CKA), Linux (RHCSA/LFCS) and Terraform are widely valued. Check the current exam lists before you choose.

Last advice: Employers hire administrators who stay calm, communicate clearly and write things down. Build your lab, keep a runbook notebook and keep learning how the platform is changing.

Conclusion

Use scenario answers that stabilise first, then find the cause and prevent repeats. Keep a command and port cheat sheet, build a lab-based portfolio and follow a roadmap into data platform and cloud roles.

Quick Summary: stabilise -> diagnose -> fix -> prevent; cheat sheets; roadmap.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators