Home:ALL Converter>Hive not storing Warehouse in HDFS

Hive not storing Warehouse in HDFS

Ask Time:2016-05-06T01:22:22         Author:Ankit

Json Formatter

I have downloaded hive installation on my local system and copied hive-site.xml into Spark conf directory. I tried to create a managed table in Hive context using spark shell.

I have put following property in hive-site.xml (present in spark's conf directory):

<property>
   <name>hive.metastore.warehouse.dir</name>
   <value>/user/hive/warehouse</value>
</property>

Also I have put HADOOP_HOME in spark-env.sh:

export HADOOP_CONF_DIR=/opt/hadoop/conf

As per Hive documentation, the hive warehouse should get stored in HDFS, but the warehouse is getting stored in local drive (/user/hive/warehouse). Please help me out in understanding why Hive is not storing warehouse directory in HDFS.

Author:Ankit,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37056583/hive-not-storing-warehouse-in-hdfs
yy