[CDH] Add validation for spark
[CDH] Add validation for spark

We add validation code for spark service. SPARK_YARN_HISTORY_SERVER
number should be 0 or 1, and it requires YARN service existing (we
use RESOURCEMANAGER process number to check).

Closes-Bug: #1398679

Change-Id: If96ce6a13005ba2a54dc4a1b060f98405ff67cde

redhat-openstack/sahara,matips/iosr-2015,bigfootproject/sahara,crobby/sahara,zhujzhuo/Sahara,henaras/sahara,tellesnobrega/sahara,redhat-openstack/sahara,bigfootproject/sahara,esikachev/scenario,matips/iosr-2015,openstack/sahara,esikachev/sahara-backup,esikachev/sahara-backup,zhangjunli177/sahara,esikachev/scenario,zhangjunli177/sahara,esikachev/sahara-backup,zhujzhuo/Sahara,openstack/sahara,zhangjunli177/sahara,ekasitk/sahara,henaras/sahara,ekasitk/sahara,esikachev/scenario,zhujzhuo/Sahara,redhat-openstack/sahara,matips/iosr-2015,crobby/sahara,crobby/sahara,egafford/sahara,tellesnobrega/sahara,bigfootproject/sahara,egafford/sahara,ekasitk/sahara,henaras/sahara