I know if I submit the query from Hive,a shared lock will be acquired and then the hive table will get locked by the query: https://cwiki.apache.org/confluence/display/Hive/Locking
So I just wonder if the query is executed by Spark Hivecontext, will the lock required and will the table get locked as well? Also, if I insert the data into table through Spark Hivecontext, will it require a exclusive lock?
Thanks