We recognize spark based on command line arguments. It needs to contain one of the following:
when spark app is deployed to spark standalone server.
when deployed to hadoop yarn.
when deployed in client mode.
In order to confirm that the app is really a spark app, you can check it from the command line arguments ( spark history server ) :