Configure Separate Hive Data and Metadata Directories for Hue
About this task
If you want to store Hue data and metadata in separate directories from Hive data and metadata, follow these steps:
Procedure
-
Copy
hive-site.xmlto a new location. (The originalhive-site.xmlfile remains in the previous location for use by Hive.) -
Edit
hue.iniand change thehive_conf_dirproperty so it points to the new location forhive-site.xml. -
Change the
hive.metastore.warehouse.dirproperty in the newhive-site.xmlfile so it points to the directory where Hue data will be located. -
Change the
hive.metastore.urisproperty so it points to the directory for Hue'smetastore_db. -
Set the
hive.metastore.execute.setugiproperty totrue.<property> <name>hive.metastore.execute.setugi</name> <value>true</value> <description> Set this property to enable Hive Metastore service impersonation in non-secure mode. In non-secure mode, setting this property to true causes the metastore to execute DFS operations using the client's reported user and group permissions. Note that this property must be set on BOTH the client and server sides. </description> </property>