My below code does not work with Spark-submit.
sqlContext.sql(s"""
create external table if not exists landing (
date string,
referrer string)
partitioned by (partnerid string,dt string)
row format delimited fields terminated by '\t' lines terminated by '\n'
STORED AS TEXTFILE LOCATION 's3n://....'
""")
It gives error: Exception in thread "main" java.lang.RuntimeException: [1.2] failure: ``with'' expected but identifier create found
This code works in Spark-shell but not in Spark-submit. What can be the reason?
import sqlContext.implicits._? - Reactormonk