【发布时间】:2014-02-19 11:18:19
【问题描述】:
我在运行 Ubuntu 12.04 的 ubuntu 系统中以伪分布式模式安装了 Hadoop 1.2.1 和 Hbase 0.94.8。一切正常,所有守护进程都在运行。为了使用 php 访问 hbase,我下载并安装了 thrift 0.9.1。
$ thrift -版本
Thrift 版本 0.9.1
但是当我尝试使用命令启动 thrift 服务器时
$ /usr/lib/hbase/hbase-0.94.8/bin/hbase thrift start
thrift 服务器开始启动。但在某个时刻,终端挂起。终端的最后几行是
14/02/19 15:30:48 INFO mortbay.log:通过 org.mortbay.log.Slf4jLog 记录到 org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log)
14/02/19 15:30:48 INFO http.HttpServer:添加了全局过滤安全 (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
14/02/19 15:30:48 INFO http.HttpServer: webServer.getConnectors()[0].getLocalPort() 在 open() 之前返回的端口为 -1。在 9095 上打开监听器
14/02/19 15:30:48 INFO http.HttpServer: listener.getLocalPort() 返回 9095 webServer.getConnectors()[0].getLocalPort() 返回 9095
14/02/19 15:30:48 INFO http.HttpServer: Jetty 绑定到端口 9095
14/02/19 15:30:48 信息 mortbay.log: jetty-6.1.26
14/02/19 15:30:48 INFO mortbay.log:已启动 SelectChannelConnector@0.0.0.0:9095
14/02/19 15:30:48 调试 thrift.ThriftServerRunner: 使用二进制协议
14/02/19 15:30:48 信息 thrift.ThriftServerRunner:在 /0.0.0.0:9090 上启动 TBoundedThreadPoolServer;最小工作线程=16,最大工作线程=1000,最大排队请求=1000
等待大约 15 分钟后,我尝试打开
http://localhost:9090
在我的网络浏览器中,当终端仍然挂起时。页面没有打开,但终端恢复显示错误信息
#
# java.lang.OutOfMemoryError: Java 堆空间
# -XX:OnOutOfMemoryError="kill -9 %p"
# 执行 /bin/sh -c "kill -9 18526"...
被杀
请建议我该怎么做。
问候
【问题讨论】:
-
maven-repository.com/artifact/org.apache.hbase/hbase/… 的依赖关系表显示 Thrift 0.8.0。你试过吗?
标签: php ubuntu hadoop hbase thrift