#NEWLINE# def validate( self , cluster_spec , cluster ) : #NEWLINE# #INDENT# count = cluster_spec . get_deployed_node_group_count ( 'HISTORYSERVER' ) #NEWLINE# if ( count != 1 ) : #NEWLINE# #INDENT# raise ex . InvalidComponentCountException ( 'HISTORYSERVER' , 1 , cluster_spec )