We are trying to access same table or database in multithreading. we are getting concurrent database modification issue.. can i use table locks and wait other thread until one thread completes the transcation. can i use that. or can i use any scala multi threading api to block the database creation or saving table in overwrite mode in multithreading environment. i bit confused could you please help me out in spark.. how we gona handle tables or databases concurrently...
using locks or using multithreaded api in scala...
any suggessions is grately help ful..
i am bit stuck over here
Thanks in advance