Yarn job got failed. Need help

-bash-4.2$ yarn jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar randomtextwriter -Ddfs.replication=1 /user/hdfs/randomwriter
WARNING: YARN_OPTS has been replaced by HADOOP_OPTS. Using value of YARN_OPTS.
20/05/14 19:56:36 INFO client.RMProxy: Connecting to ResourceManager at bds-5.us-central1-a.c.clouderademo.internal/10.128.0.19:8032
Running 30 maps.
Job started: Thu May 14 19:56:37 UTC 2020
20/05/14 19:56:37 INFO client.RMProxy: Connecting to ResourceManager at bds-5.us-central1-a.c.clouderademo.internal/10.128.0.19:8032
20/05/14 19:56:37 INFO mapreduce.JobResourceUploader: Disabling Erasure Coding for path: /user/hdfs/.staging/job_1589463869951_0721
20/05/14 19:56:39 INFO mapreduce.JobSubmitter: number of splits:30
20/05/14 19:56:39 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1589463869951_0721
20/05/14 19:56:39 INFO mapreduce.JobSubmitter: Executing with tokens: []
20/05/14 19:56:39 INFO conf.Configuration: resource-types.xml not found
20/05/14 19:56:39 INFO resource.ResourceUtils: Unable to find ‘resource-types.xml’.
20/05/14 19:56:39 INFO impl.YarnClientImpl: Submitted application application_1589463869951_0721
20/05/14 19:56:40 INFO mapreduce.Job: The url to track the job: http://bds-5.us-central1-a.c.clouderademo.internal:8088/proxy/application_1589463869951_0721/
20/05/14 19:56:40 INFO mapreduce.Job: Running job: job_1589463869951_0721
20/05/14 19:56:49 INFO mapreduce.Job: Job job_1589463869951_0721 running in uber mode : false
20/05/14 19:56:49 INFO mapreduce.Job: map 0% reduce 0%
20/05/14 19:56:54 INFO mapreduce.Job: Task Id : attempt_1589463869951_0721_m_000000_0, Status : FAILED
[2020-05-14 19:56:54.205]org.apache.hadoop.yarn.exceptions.YarnException: Download and unpack failed

20/05/14 19:56:58 INFO mapreduce.Job: Task Id : attempt_1589463869951_0721_m_000002_0, Status : FAILED
[2020-05-14 19:56:57.326]org.apache.hadoop.yarn.exceptions.YarnException: Download and unpack failed

20/05/14 19:57:03 INFO mapreduce.Job: Task Id : attempt_1589463869951_0721_m_000000_1, Status : FAILED
[2020-05-14 19:57:01.616]org.apache.hadoop.yarn.exceptions.YarnException: Download and unpack failed

20/05/14 19:57:07 INFO mapreduce.Job: Task Id : attempt_1589463869951_0721_m_000002_1, Status : FAILED
[2020-05-14 19:57:06.647]org.apache.hadoop.yarn.exceptions.YarnException: Download and unpack failed

20/05/14 19:57:11 INFO mapreduce.Job: map 3% reduce 0%
20/05/14 19:57:11 INFO mapreduce.Job: Task Id : attempt_1589463869951_0721_m_000000_2, Status : FAILED
[2020-05-14 19:57:09.467]org.apache.hadoop.yarn.exceptions.YarnException: Download and unpack failed

20/05/14 19:57:15 INFO mapreduce.Job: Task Id : attempt_1589463869951_0721_m_000002_2, Status : FAILED
[2020-05-14 19:57:13.309]org.apache.hadoop.yarn.exceptions.YarnException: Download and unpack failed

20/05/14 19:57:19 INFO mapreduce.Job: map 97% reduce 0%
20/05/14 19:57:21 INFO mapreduce.Job: map 100% reduce 0%
20/05/14 19:57:22 INFO mapreduce.Job: Job job_1589463869951_0721 failed with state FAILED due to: Task failed task_1589463869951_0721_m_000000
Job failed as tasks failed. failedMaps:1 failedReduces:0 killedMaps:0 killedReduces: 0

20/05/14 19:57:22 INFO mapreduce.Job: Counters: 37
File System Counters
FILE: Number of bytes read=0
FILE: Number of bytes written=217760
FILE: Number of read operations=0
FILE: Number of large read operations=0
FILE: Number of write operations=0
HDFS: Number of bytes read=154
HDFS: Number of bytes written=1093302197
HDFS: Number of read operations=6
HDFS: Number of large read operations=0
HDFS: Number of write operations=2
HDFS: Number of bytes read erasure-coded=0
Job Counters
Failed map tasks=7
Killed map tasks=28
Launched map tasks=10
Other local map tasks=10
Total time spent by all maps in occupied slots (ms)=50975
Total time spent by all reduces in occupied slots (ms)=0
Total time spent by all map tasks (ms)=50975
Total vcore-milliseconds taken by all map tasks=50975
Total megabyte-milliseconds taken by all map tasks=52198400
Map-Reduce Framework
Map input records=1
Map output records=1638045
Input split bytes=154
Spilled Records=0
Failed Shuffles=0
Merged Map outputs=0
GC time elapsed (ms)=176
CPU time spent (ms)=18970
Physical memory (bytes) snapshot=402661376
Virtual memory (bytes) snapshot=2579554304
Total committed heap usage (bytes)=342360064
Peak Map Physical memory (bytes)=402661376
Peak Map Virtual memory (bytes)=2579554304
org.apache.hadoop.examples.RandomTextWriter$Counters
BYTES_WRITTEN=1073742676
RECORDS_WRITTEN=1638045
File Input Format Counters
Bytes Read=0
File Output Format Counters
Bytes Written=1093302197
Job ended: Thu May 14 19:57:22 UTC 2020
The job took 44 seconds.

From your logs it is evident that your map tasks are failing :

Failed map tasks=7
Killed map tasks=28

and also the input and output record counts for map tasks are:

Map input records=1
Map output records=1638045

can you please specify what is your input format, how it is stored on HDFS and what are you trying to achieve in your program?