One way is to create an in-memory temporary table and store them in hive table using sqlContext.
Lets set a data frame as myDf. You can create one temporary table using:
myDf.createOrReplaceTempView("mytempTable")
Then, simply use a hive statement to create table and from your temp table dump the data into it:
sqlContext.sql("create table mytable as select * from mytempTable");
If you want to know more about Spark, then do check out this awesome video tutorial: