Spark Programming Spark SQL

teenagers.map(t => "Name: " + t(0)).collect().foreach(println) Spark SQL // The results of SQL queries are SchemaRDDs // normal RDD operations. // The columns of a row in the result can be. Hive Interoperability Spark SQL is compatible with Hive. It not only supports HiveQL, but can also access Hive metastore, SerDes, and UDFs. You can also replace Hive with Spark SQL to get better performance ... ................
................