Comparison between Apache spark framework and DNN framework

Please state the Comparison between Apache spark framework and DNN framework.which is better for Big data Analysis. I have worked on Ipython notebooks using Apache spark So caffe framework is better than Apache spark or not .how should I differentiate?