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.xml
to a new location. (The originalhive-site.xml
file remains in the previous location for use by Hive.) -
Edit
hue.ini
and change thehive_conf_dir
property so it points to the new location forhive-site.xml
. -
Change the
hive.metastore.warehouse.dir
property in the newhive-site.xml
file so it points to the directory where Hue data will be located. -
Change the
hive.metastore.uris
property so it points to the directory for Hue'smetastore_db
. -
Set the
hive.metastore.execute.setugi
property 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>