By default the hive warehouse directory is located at  the hdfs location /user/hive/warehouse

If you want to change this location, you can add the following property to hive-site.xml.

Everyone using hive should have appropriate read/write permissions to this warehouse directory.

<property>
<name>hive.metastore.warehouse.dir</name>
<value>/user/hivestore/warehouse</value>
<description>location of the warehouse directory</description>
</property>

I hope this tip is useful. Feel free to comment if you have any queries or suggestions.

Advertisement