Loading data into an RDD can be done by using SparkContext. Some of the most common methods are:. textFile wholeTextFiles load from a JDBC datasource