Apache Spark. Consult MongoDB database

0

I am working with Apache Spark and MongoDB in Java. I have a database with a lot of documents, maybe more than 30,000,000 million documents.

Every time I make a connection in my project I charge this entire collection in a Dataset which is very heavy.

I would like to know how I can do to obtain certain Mongo data and store it in a Dataset. That is, the documents that are between the "Date" 2017005 and 2017010.

Greetings and thanks.

    
asked by CCantona 10.10.2018 в 18:34
source

0 answers