Title
Create new category
Edit page index title
Edit category
Edit link
Tez and MapReduce Service Checks Fail After ODP Upgrade
After upgrading an ODP cluster, Tez and MapReduce service checks may fail with errors indicating that YARN cannot download required application resources from HDFS.
This issue typically occurs when the Tez or MapReduce application archives stored in HDFS are missing, corrupted, or have a file size of zero bytes.
Symptoms
Tez Service Check Failure
xxxxxxxxxxFailed to download resource hdfs:///odp/apps/<version>/tez/tez.tar.gz org.apache.hadoop.yarn.exceptions.YarnException:Download and unpack failedMapReduce Service Check Failure
xxxxxxxxxxFailed to download resource hdfs:///odp/apps/<version>/mapreduce/mapreduce.tar.gz org.apache.hadoop.yarn.exceptions.YarnException:Download and unpack failedApplications may repeatedly fail with:
xxxxxxxxxxAM Container exited with exitCode: -1000Cause
Tez and MapReduce rely on application archives stored in HDFS under:
xxxxxxxxxx/odp/apps/<version>/tez//odp/apps/<version>/mapreduce/During service startup or service checks, YARN distributes these archives to containers.
If the archive:
- Does not exist
- Is corrupted
- Has a size of 0 bytes
YARN cannot unpack the application resources and the service check fails.
Verify the Issue
Check the file sizes:
xxxxxxxxxxhdfs dfs -ls /odp/apps/<version>/tezhdfs dfs -ls /odp/apps/<version>/mapreduceExample of a problematic archive:
xxxxxxxxxx-rw-r--r-- 0 hdfs hdfs 0 tez.tar.gz-rw-r--r-- 0 hdfs hdfs 0 mapreduce.tar.gzResolution
Restore MapReduce Archive
Copy the archive from a healthy local installation:
xxxxxxxxxxhdfs dfs -put -f \/usr/odp/<version>/hadoop/mapreduce.tar.gz \/odp/apps/<version>/mapreduce/Restore Tez Archive
xxxxxxxxxxhdfs dfs -put -f \/usr/odp/<version>/tez/tez.tar.gz \/odp/apps/<version>/tez/Verify:
xxxxxxxxxxhdfs dfs -ls /odp/apps/<version>/tezhdfs dfs -ls /odp/apps/<version>/mapreduceConfirm the files are no longer zero bytes.
Validation
Test Tez
Run the Tez service check from Ambari.
Test MapReduce
xxxxxxxxxxyarn jar \/usr/odp/current/hadoop-mapreduce-client/hadoop-mapreduce-examples.jar \pi 2 10Both service checks should complete successfully.
Best Practices
- Verify /odp/apps/<version>/ contents immediately after upgrade.
- Validate archive file sizes before running service checks.
- Ensure HDFS permissions remain intact.
- Keep a backup of application archives prior to major upgrades.