Have you ever tried to use join? Both RDD and Dataframe have this method and it does a join like traditional relational database does.
On Sat, Mar 5, 2016 at 3:17 AM, Agro [via Apache Spark User List] < ml-node+s1001560n26403...@n3.nabble.com> wrote: > So, initially, I have an RDD[Int] that I've loaded from my database, where > each Int is a user ID. For each of these user IDs, I need to gather a bunch > of other data (a list of recommended product IDs), which makes use of an > RDD as well. I've tried doing this out, but Spark doesn't allow nesting RDD > operations on two different RDDs together. I feel like this a common > problem, so are there any general solutions you guys know about? > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Aggregations-Joins-tp26403.html > To start a new topic under Apache Spark User List, email > ml-node+s1001560n1...@n3.nabble.com > To unsubscribe from Apache Spark User List, click here > <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=cmljYXJkby5wYWl2YUBjb3JwLmdsb2JvLmNvbXwxfDQ1MDcxMTc2Mw==> > . > NAML > <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Ricardo Paiva Big Data / Semântica 2483-6432 *globo.com* <http://www.globo.com> -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Aggregations-Joins-tp26403p26418.html Sent from the Apache Spark User List mailing list archive at Nabble.com.