from pyspark import SparkConf, SparkContext from pyspark.sql import SQLContext conf = SparkConf().setAppName(\"Test\").set(\"spark.driver.memory\", \"1g\") sc = Spa
I'm not sure will it answer your question. But if you intend to run query on existing table you can use,
spark-sql -i
One more thing, if you have pyspark script you can use spark-submit details in here.