title: connecting hive to from spark in intellij
body: <p>I'm trying to connect to remote hive from within my spark program in Intellij installed on local machine.</p>
  
  <p>I placed the hadoop cluster config files on local machine and configured environment variables HADOOP_CONF_DIR in Intellij run configurations of this spark program to be able to detect this hadoop cluster but intelliJ is somehow not reading these files and spark program defaults to local hive metastore instance.</p>
  
  <p>Is there anyway to configure intelliJ to read hadoop config files locally. Any help is highly appreciated.</p>