6099/convert-the-given-spar-rdd-object-to-spark-dataframe
You can create a DataFrame from the given RDD using createDataFrame operation:
def createDataFrame(rowRDD: RDD[Row], schema: StructType): DataFrame
SqlContext has a number of createDataFrame methods ...READ MORE
Save it to a text file: line.saveAsTextFile("alicia.txt") Print contains ...READ MORE
Hi@akhtar, In your error, it shows that you ...READ MORE
Hi, @Ritu, When creating a pair RDD from ...READ MORE
Instead of spliting on '\n'. You should ...READ MORE
JDBC is not required here. Create a hive ...READ MORE
Please check the below mentioned links for ...READ MORE
Spark has various components: Spark SQL (Shark)- for ...READ MORE
Assuming your RDD[row] is called rdd, you ...READ MORE
You can save the RDD using saveAsObjectFile and saveAsTextFile method. ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.