Home Forums Hue Hue(Beeswax) failed to start to when it is remote to the hive installation

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Dave 3 months ago.

  • Creator
    Topic
  • #54346

    Tim Fei
    Participant

    Hi,
    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
    at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkFsPermission(FSPermissionChecker.java:265)

    … 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
    [beeswax]

    # 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.
    beeswax_server_port=8002
    # Host where internal metastore Thrift daemon is running.
    beeswax_meta_server_host=localhost
    # The backend to contact for queries/metadata requests
    # Choices are ‘beeswax’ (default), ‘hiveserver2′.
    server_interface=beeswax

    So how can I configure the beeswax/Hue on a node which is remote to the Hive installation ?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #54648

    Dave
    Moderator

    Hi Tim,

    You should have a hive client installed on the Hue machine, with a configured hive-site.xml.

    Then you can comment out all the [[beeswax]] section and Hue should run correctly.

    Thanks

    Dave

    Collapse
Viewing 1 replies (of 1 total)