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
MetaStoreClient.lock(LockRequest)returning aLockResponse(cf. hive.apache.org/javadocs/r2.1.1/api/index.html?org/apache/…) but at first glance, the Spark code base does not use eitherLockRequestorLockResponse. So I guess Spark can be locked out by a Hive query (cf. stackoverflow.com/questions/42421883/…), but Spark will not take locks by itself... - Samson Scharfrichter