title: How do you perform basic joins of two RDD tables in Spark using Python?
body: <p>How would you perform basic joins in Spark using python?  In R you could use merg() to do this.  What is the syntax using python on spark for:</p>
  
  <ol>
  <li>Inner Join</li>
  <li>Left Outer Join</li>
  <li>Cross Join</li>
  </ol>
  
  <p>With two tables (RDD) with a single column in each that has a common key.</p>
  
  <pre><code>RDD(1):(key,U)
  RDD(2):(key,V)
  </code></pre>
  
  <p>I think an inner join is something like this:</p>
  
  <pre><code>rdd1.join(rdd2).map(case (key, u, v) =&gt; (key, ls ++ rs));
  </code></pre>
  
  <p>Is that right?  I have searched the internet and can't find a good example of joins.  Thanks in advance.</p>