You can join two dataframes like this.
df1.join(df2, df1.col("column").equalTo(df2("column")));
If you are looking for Union, then you can do something like this.
df1.unionAll(df2); // spark 1.6
Spark 2.0, unionAll
was renamed to union
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…