I am playing with a 2 node HDP 2.1 configuration installed by Ambari 1.5.1 . And Hue is not installed by Ambari, so I followed the manual install guide :http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1-latest/bk_installing_manually_book/content/rpm-chap-hue.html
Ambari installed hive (include HiveServer2, Hive MetaStore and 1 Hive client) on node 2.
However, I installed Hue on node1, so when I tried to start Hue on node1, it failed. with following error message in /var/log/hue/beeswax_server.out
14/05/22 19:04:49 ERROR beeswax.Server: Error while trying to check/create /tmp and warehouse directory /user/hive/warehouse
org.apache.hadoop.security.AccessControlException: Permission denied: user=hue, access=WRITE, inode=”/user/hive”:hive:hdfs:drwxrwxr-x
… 14 more
14/05/22 19:04:49 INFO beeswax.Server: Starting metastore at port 8003
14/05/22 19:04:49 INFO beeswax.Server: Starting beeswaxd at port 8002
14/05/22 19:04:49 INFO beeswax.Server: Parsed core-default.xml sucessfully. Learned 146 descriptions.
14/05/22 19:04:49 INFO beeswax.Server: Parsed hdfs-default.xml sucessfully. Learned 171 descriptions.
14/05/22 19:04:49 INFO beeswax.Server: Parsed mapred-default.xml sucessfully. Learned 191 descriptions.
14/05/22 19:04:49 WARN beeswax.Server: Could not parse or find: hive-default.xml. Learned 0 description, this is not a problem.
14/05/22 19:04:49 INFO beeswax.Server: Starting beeswax server on port 8002, talking back to Desktop at 172.29.164.34:8000
14/05/22 19:04:49 FATAL beeswax.Server: hive.metastore.local is set to false. The Beeswax internal metastore is not supposed to run.
[root@sgh1vhdp03 hue]# ^C
[root@sgh1vhdp03 hue]# 14/05/22 19:04:49 FATAL beeswax.Server: hive.metastore.local is set to false. The Beeswax internal metastore is not supposed to run.
In my hue.ini, I configured following
# Host where Beeswax server Thrift daemon is running.
# If Kerberos security is enabled, the fully-qualified domain name (FQDN) is
# required, even if the Thrift daemon is running on the same host as Hue.
beeswax_server_host=172.29.164.34 #the node 1 ip
# Port where Beeswax Thrift server runs on.
# Host where internal metastore Thrift daemon is running.
# The backend to contact for queries/metadata requests
# Choices are ‘beeswax’ (default), ‘hiveserver2′.
So how can I configure the beeswax/Hue on a node which is remote to the Hive installation ?