1

i added hive package to my hadoop cluster. if i go into hive cli, i can run hive in remote mode. but queries going through hive server runs in local mode which is really slow... the only changes i did to hive is to set up derby network server, following this link: http://wiki.apache.org/hadoop/HiveDerbyServerMode i also have exported HADOOP_CONF_DIR, HADOOP_HOME, HIVE_CONF_DIR, HIVE_HOME in my environment...

anybody know how to fix this?

4

1 回答 1

1

首先按照此处的 wiki 页面进行设置:https ://cwiki.apache.org/confluence/display/Hive/HiveServer

原来是环境问题。我正在使用另一个用户运行 hive 服务器: sudo -u op 但系统会在 sudo 命令下重置该用户的所有环境变量。我放入的修复是将环境变量名称放在 /etc/sudoers 中的 env_keep 中。之后,蜂巢服务器现在以远程模式运行。

于 2012-07-21T01:27:23.023 回答