pyspark
from pyspark.sql import SQLContext
df1 = sqlContext.sql("select * from smart_car where age >= 18")
df1.show()
df1.write.saveAsTable("smart_over_18")
select * from smar_over_18 limit 10
https://wikidocs.net/16565
https://www.inflearn.com/course/%EB%B9%85%EB%8D%B0%EC%9D%B4%ED%84%B0-%ED%8C%8C%EC%9D%BC%EB%9F%BF-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8/