2014-02-19 117 views
0

我已经在运行Ubuntu 12.04的ubuntu系统中以psudo-distributed模式安装Hadoop 1.2.1和Hbase 0.94.8。一切工作正常,所有的deamons都在运行。为了使用PHP访问hbase我下载并安装了thrift 0.9.1。无法启动Hbase Thrift服务器

$ thrift -version

Thrift version 0.9.1

但是当我尝试使用命令

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

节俭服务器开始启动,开始节俭服务器。但在某个时候终端挂起。终端的最后几行是

14/02/19 15:30:48 INFO mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog

14/02/19 15:30:48 INFO http.HttpServer: Added global filtersafety (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)

14/02/19 15:30:48 INFO http.HttpServer: Port returned by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on 9095

14/02/19 15:30:48 INFO http.HttpServer: listener.getLocalPort() returned 9095 webServer.getConnectors()[0].getLocalPort() returned 9095

14/02/19 15:30:48 INFO http.HttpServer: Jetty bound to port 9095

14/02/19 15:30:48 INFO mortbay.log: jetty-6.1.26

14/02/19 15:30:48 INFO mortbay.log: Started [email protected]:9095

14/02/19 15:30:48 DEBUG thrift.ThriftServerRunner: Using binary protocol

14/02/19 15:30:48 INFO thrift.ThriftServerRunner: starting TBoundedThreadPoolServer on /0.0.0.0:9090; min worker threads=16, max worker threads=1000, max queued requests=1000

等待约15分钟后,我试图在我的web浏览器中打开

http://localhost:9090 

而终端仍然处以绞刑。该页面没有打开,但终端恢复显示错误消息

#

# java.lang.OutOfMemoryError: Java heap space

# -XX:OnOutOfMemoryError="kill -9 %p"

# Executing /bin/sh -c "kill -9 18526"...

Killed

请建议我该怎么做。

问候

+0

的依赖表在http://maven-repository.com/artifact/org.apache.hbase/hbase/ 0.94.8-gphd-2.1.0.0表示Thrift 0.8.0。你尝试过吗? – JensG

回答

1

请尝试使用以下命令启动HBase的节俭服务:

bin/hbase-daemon.sh start thrift 
+0

如何在Windows中启动hbase thrift服务? –