Scala error-sqlcontext error not found

Hi ,

I am trying to run a basic query in scala, i followed the video https://www.youtube.com/watch?v=IiOvhIqPKvE&list=PLf0swTFhTI8rJvGpOp-LujOcpk-Rlz-yE&index=29 and did the following.

sudo ln -s /etc/hive/conf/hive-site.xml /etc/spark/conf/hive-site.xml

view /etc/spark/conf/hive-site.xml

sqlcontext.sql(“select * from categories”).collect().foreach(println)
:26: error: not found: value sqlcontext**
sqlcontext.sql(“select * from categories”).collect().foreach(println)**
^sudo ln -s /etc/hive/conf/hive-site.xml /etc/spark/conf/hive-site.xml**

view /etc/spark/conf/hive-site.xml

sqlcontext.sql(“select * from categories”).collect().foreach(println)
:26: error: not found: value sqlcontext
sqlcontext.sql(“select * from categories”).collect().foreach(println)
^

Depeartments and categories tables exist in hive, could you please help me where I am going wrong here