You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Daniel Haviv <da...@gmail.com> on 2018/05/30 16:13:39 UTC
Thrift server not exposing temp tables (spark.sql.hive.thriftServer.singleSession=true)
Hi,
I would like to expose a DF through the Thrift server, but even though I
enable spark.sql.hive.thriftServer.singleSession I still can't see the temp
table.
I'm using Spark 2.2.0:
spark-shell --conf spark.sql.hive.thriftServer.singleSession=true
import org.apache.spark.sql.hive.thriftserver.HiveThriftServer2
import org.apache.spark.sql.hive.thriftserver._
val df = spark.read.orc( "s3://sparkdemoday/crimes_orc")
df.createOrReplaceTempView("cached_df")
df.cache
df.count
val sql = spark.sqlContext
HiveThriftServer2.startWithContext(sql)
Thank you.
Daniel