首页 文章

无法启动Hbase Thrift服务器

提问于
浏览
0

我在运行Ubuntu 12.04的ubuntu系统中以psudo-distributed模式安装了Hadoop 1.2.1和Hbase 0.94.8 . 一切都很好,所有的守护者都在运行 . 为了使用php访问hbase,我下载并安装了thrift 0.9.1 .

$ thrift -version Thrift版本0.9.1

但是当我尝试使用命令启动thrift服务器时

$ /usr/lib/hbase/hbase-0.94.8/bin/hbase thrift start

节俭服务器开始启动 . 但在某个时刻终端挂起了 . 终点的最后几行是

14/02/19 15:30:48 INFO mortbay.log:通过org.mortbay.log.Slf4jLog 14/02/19 15:30:48登录org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) INFO http.HttpServer:添加了全局filtersafety(class = org.apache.hadoop.http.HttpServer $ QuotingInputFilter)14/02/19 15:30:48 INFO http.HttpServer:webServer.getConnectors()[0]返回的端口 . open()之前的getLocalPort()是-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 INFO 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 DEBUG thrift.ThriftServerRunner:使用二进制协议14/02/19 15:30:48 INFO thrift.ThriftServerRunner:在/0.0.0.0:9090上启动TBoundedThreadPoolServer; min worker threads = 16,max worker threads = 1000,max queued requests = 1000

等了大约15分钟后,我试着打开

http://localhost:9090

在我的网络浏览器中,终端仍然被绞死 . 页面未打开但终端恢复显示错误消息

java.lang.OutOfMemoryError:Java堆空间#-XX:OnOutOfMemoryError =“kill -9%p”#execution / bin / sh -c“kill -9 18526”... Killed

请建议我做什么 .

问候

1 回答

  • 1

    请尝试以下命令启动hbase thrift服务:

    bin/hbase-daemon.sh start thrift
    

相关问题