I have just started using spark session, with hive enabled. but i am facing some issue while updating hive warehouse directory post spark session creation,

usecase: i want to read data from hive one cluster and write to hive on another cluster 

Please suggest if this can be done?