Is it possible to use deeplearning with spark (with a distributed databases as HDFS or Cassandra)?
Yes, it is possible to use deep learning architecture with Apache Spark now. Databricks have Spark-deep-learning which is a pipeline based in python and uses tensorflow and keras.

https://github.com/databricks/spark-deep-learning

You can check this. There is also BigDL by Intel analytics.
https://github.com/intel-analytics/BigDL