Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1839

IllegalStateException when querying external table using hbase if storage-site.json doesn't exist on configuration directory.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.11.0, 0.12.0
    • Component/s: Storage
    • Labels:
      None

      Description

      When querying external table using hbase if storage-site.json doesn't exist on configuration directory as following:

      • tsql
        default> \d external_hbase_blog;
        
        table name: default.external_hbase_blog
        table uri: hbase://localhost:2181/
        store type: HBASE
        number of rows: unknown
        volume: 0 B
        Options: 
        	'columns'=':key,info:author,info:date,content:title'
        	'table'='blog'
        
        schema: 
        rowkey	TEXT
        author	TEXT
        register_date	TEXT
        title	TEXT
        
        default> select * from external_hbase_blog;
        ERROR: internal error: value is absent
        
        
      • TajoMaster
        2015-09-11 19:39:43,621 ERROR org.apache.tajo.master.GlobalEngine: 
        Stack Trace:
        java.lang.IllegalStateException: value is absent
        	at com.google.common.base.Optional$Absent.get(Optional.java:263)
        	at org.apache.tajo.master.exec.NonForwardQueryResultFileScanner.initSeqScanExec(NonForwardQueryResultFileScanner.java:78)
        	at org.apache.tajo.master.exec.NonForwardQueryResultFileScanner.init(NonForwardQueryResultFileScanner.java:74)
        	at org.apache.tajo.master.exec.QueryExecutor.execSimpleQuery(QueryExecutor.java:274)
        	at org.apache.tajo.master.exec.QueryExecutor.execute(QueryExecutor.java:128)
        	at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:191)
        	at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:305)
        	at org.apache.tajo.ipc.TajoMasterClientProtocol$TajoMasterClientProtocolService$2.callBlockingMethod(TajoMasterClientProtocol.java:675)
        	at org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.channelRead0(BlockingRpcServer.java:100)
        	at org.apache.tajo.rpc.BlockingRpcServer$ServerHandler.channelRead0(BlockingRpcServer.java:61)
        	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
        	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
        	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
        	at org.apache.tajo.rpc.MonitorServerHandler.channelRead(MonitorServerHandler.java:70)
        	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
        	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
        	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
        	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
        	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
        	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
        	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
        	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
        	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
        	at java.lang.Thread.run(Thread.java:745)
        

        Activity

        Hide
        hyunsik Hyunsik Choi added a comment -

        It's duplicated to TAJO-1868 and TAJO-1838.

        Show
        hyunsik Hyunsik Choi added a comment - It's duplicated to TAJO-1868 and TAJO-1838 .

          People

          • Assignee:
            hyunsik Hyunsik Choi
            Reporter:
            blrunner Jaehwa Jung
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development