Description
org.apache.hadoop.yarn.client.cli.ApplicationCLI#run is 630 lines long, contains a long if-else chain and many many conditions.
As a start, the bodies of the conditions could be extracted to methods and a more clean solution could be introduced to parse the argument values.