2016-11-21 64 views
0

我試圖遺留系統從HBase的和PHP模塊組合分成兩個分開的容器具有以下搬運工-撰寫的文件:節儉+ HBase的例外(在搬運工容器)

version: '2' 
services: 
    php: 
    image: my-legacy-php 
    volumes: 
     - ~/workspace/php:/workspace/php 
    ports: 
     - "80:80" 
    links: 
     - hbase:hbase-docker 
    hbase: 
    image: dajobe/hbase 
    hostname: hbase-docker 
    ports: 
     - "43590-44000:43590-44000" 
     - "8085:8085" 
     - "2181:2181" 
     - "8080:8080" 
     - "16010:16010" 
     - "9095:9095" 
     - "9090:9091" 
     - "16020:16020" 
     - "16030:16030" 
     - "60000:60000" 
    volumes: 
     - ~/workspace/hbase-docker/data:/data 

我使用公共docker image for hbase from dajobe/hbase。 現在我想一些事件(HTTP GET請求)發送到PHP moudle並得到下面的異常在我的PHP模塊(節儉LIB):

ERROR HBaseFacade - exception in handling rcomEvent: Internal error processing increment, trace is: #0 /workspace/php/libs/thrift-0.8.0/packages/Hbase/THBaseService.php(536): THBaseServiceClient->recv_increment() 

,並在HBase的容器我看到下面的例外(在/data/log/hbase-thrift.log):

2016-11-21 09:13:29,620 ERROR [thrift-worker-0] thrift.ProcessFunction: Internal error processing increment 
java.lang.NullPointerException 
    at org.apache.hadoop.hbase.thrift.ThriftServerRunner$HBaseHandler.increment(ThriftServerRunner.java:1747) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.hadoop.hbase.thrift.HbaseHandlerMetricsProxy.invoke(HbaseHandlerMetricsProxy.java:67) 
    at com.sun.proxy.$Proxy9.increment(Unknown Source) 
    at org.apache.hadoop.hbase.thrift.generated.Hbase$Processor$increment.getResult(Hbase.java:4537) 
    at org.apache.hadoop.hbase.thrift.generated.Hbase$Processor$increment.getResult(Hbase.java:4521) 
    at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) 
    at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) 
    at org.apache.hadoop.hbase.thrift.TBoundedThreadPoolServer$ClientConnnection.run(TBoundedThreadPoolServer.java:289) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:745) 

任何想法?

編輯:我的上一個本地HBase的版本(這與我的PHP模塊的工作)爲0.94.26和運行1.1.4

回答