You can submit YARN applications (MapReduce version 2 and other applications that run on YARN) to the same cluster. An application can be submitted to the cluster in the following ways:
hadoop jar command submits an MRv2 application.yarn jar command submits an application.hadoop job command submits an MRv2 application.mapred job command submits an MRv2 application.When you submit a non-MapReduce application to the cluster, such a Spark application, it is
automatically processed using yarn mode (ResourceManager, NodeManager, and
MapReduce ApplicationMaster).