Spark-sql context

I am trying to use Spar.SQL context in Lab and I want to navigate to my Database, How I can go there? I want to access my table which I created in the HIVE and access them from the SPARK.SQL context

There are multiple ways to do so


or launch spark-shell and use sqlContext.sql("use database_name") and then sqlContext.sql("show tables")

You can follow dataframes and spark sql related videos from this playlist for now.