phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wangweiyi" <c...@foxmail.com>
Subject a werid limit clause problem
Date Fri, 11 Nov 2016 08:17:57 GMT
Hi all,


I have tried phoenix4.7/4.8/4.8.1 with hbase0.98. After creating a table in phoenix, I upsert
some data into it and I can select them from the table. However, when I add a limit clause,
say 


select * from mytable limit 1; 


it hangs. After a long time, it prints the exception information.


Fri Nov 11 10:26:59 GMT+08:00 2016, org.apache.hadoop.hbase.client.RpcRetryingCaller@7b332be9,
java.io.IOException: java.io.IOException: java.lang.reflect.InvocationTargetException
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toFilter(ProtobufUtil.java:1379)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toScan(ProtobufUtil.java:931)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:3150)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31059)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2027)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:117)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:110)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:90)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toFilter(ProtobufUtil.java:1377)
	... 8 more
Caused by: org.apache.hadoop.hbase.exceptions.DeserializationException: com.google.protobuf.InvalidProtocolBufferException:
Message missing required fields: internalFilter
	at org.apache.hadoop.hbase.filter.PageFilter.parseFrom(PageFilter.java:195)
	... 12 more
Caused by: com.google.protobuf.InvalidProtocolBufferException: Message missing required fields:
internalFilter
	at com.google.protobuf.UninitializedMessageException.asInvalidProtocolBufferException(UninitializedMessageException.java:81)
	at com.google.protobuf.AbstractParser.checkMessageInitialized(AbstractParser.java:71)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:176)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:188)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:193)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
	at org.apache.hadoop.hbase.protobuf.generated.FilterProtos$PageFilter.parseFrom(FilterProtos.java:9608)
	at org.apache.hadoop.hbase.filter.PageFilter.parseFrom(PageFilter.java:193)
	... 12 more




	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:131)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:91)
	at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:289)
	at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:190)
	at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:185)
	at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:111)
	at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:780)
	at org.apache.phoenix.iterate.TableResultIterator.initScanner(TableResultIterator.java:172)
	... 20 more
Caused by: java.io.IOException: java.io.IOException: java.lang.reflect.InvocationTargetException
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toFilter(ProtobufUtil.java:1379)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toScan(ProtobufUtil.java:931)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:3150)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31059)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2027)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:117)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:110)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:90)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toFilter(ProtobufUtil.java:1377)
	... 8 more
Caused by: org.apache.hadoop.hbase.exceptions.DeserializationException: com.google.protobuf.InvalidProtocolBufferException:
Message missing required fields: internalFilter
	at org.apache.hadoop.hbase.filter.PageFilter.parseFrom(PageFilter.java:195)
	... 12 more
Caused by: com.google.protobuf.InvalidProtocolBufferException: Message missing required fields:
internalFilter
	at com.google.protobuf.UninitializedMessageException.asInvalidProtocolBufferException(UninitializedMessageException.java:81)
	at com.google.protobuf.AbstractParser.checkMessageInitialized(AbstractParser.java:71)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:176)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:188)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:193)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
	at org.apache.hadoop.hbase.protobuf.generated.FilterProtos$PageFilter.parseFrom(FilterProtos.java:9608)
	at org.apache.hadoop.hbase.filter.PageFilter.parseFrom(PageFilter.java:193)
	... 12 more


	at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)
	at org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.getRemoteException(ProtobufUtil.java:298)
	at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:328)
	at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:164)
	at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:58)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:115)
	... 27 more
Caused by: org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(java.io.IOException): java.io.IOException:
java.lang.reflect.InvocationTargetException
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toFilter(ProtobufUtil.java:1379)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toScan(ProtobufUtil.java:931)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:3150)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31059)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2027)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:117)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:110)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:90)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.hbase.protobuf.ProtobufUtil.toFilter(ProtobufUtil.java:1377)
	... 8 more
Caused by: org.apache.hadoop.hbase.exceptions.DeserializationException: com.google.protobuf.InvalidProtocolBufferException:
Message missing required fields: internalFilter
	at org.apache.hadoop.hbase.filter.PageFilter.parseFrom(PageFilter.java:195)
	... 12 more
Caused by: com.google.protobuf.InvalidProtocolBufferException: Message missing required fields:
internalFilter
	at com.google.protobuf.UninitializedMessageException.asInvalidProtocolBufferException(UninitializedMessageException.java:81)
	at com.google.protobuf.AbstractParser.checkMessageInitialized(AbstractParser.java:71)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:176)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:188)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:193)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
	at org.apache.hadoop.hbase.protobuf.generated.FilterProtos$PageFilter.parseFrom(FilterProtos.java:9608)
	at org.apache.hadoop.hbase.filter.PageFilter.parseFrom(PageFilter.java:193)
	... 12 more


	at org.apache.hadoop.hbase.ipc.RpcClient.call(RpcClient.java:1489)
	at org.apache.hadoop.hbase.ipc.RpcClient.callBlockingMethod(RpcClient.java:1691)
	at org.apache.hadoop.hbase.ipc.RpcClient$BlockingRpcChannelImplementation.callBlockingMethod(RpcClient.java:1750)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:31636)
	at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:320)
	... 30 more



Anyone knows which reason it could be? 


thanks.
Mime
View raw message