Solving simple text mining problems with Apache Spark