@gimp077
To my knowledge, there are two wasy to interact spark with hive. This is the very high level information to interact hive with spark
# Login to hive and try the below steps
Run the query in hive itself with spark engine
# To check the current execution engine
hive> set hive.execution.engine;
hive.execution.engine=mr # by default it is mr
# To setup the current execution engine to spark. Note: This is session specific
hive> set hive.execution.engine=spark;
# To check the execution engine after setup
hive> set hive.execution.engine;
hive.execution.engine=spark
run your quries now
# Login to spark and try the below steps
>Spark-shell
scala> sqlContext.sql("select * from tbl1").collect().foreach(println) ## An example