[ 
https://issues.apache.org/jira/browse/YARN-5014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15263696#comment-15263696
 ] 

Vrushali C commented on YARN-5014:
----------------------------------

Now I can insert and scan for non numeric values in flow run table
{code}
hbase(main):030:0> scan 'timelineservice.flowrun'
ROW                                 COLUMN+CELL
 row2                               column=f3:another_key, 
timestamp=1461913999681, value=value_1001
 row4                               column=f3:key66, timestamp=1461912421472, 
value=value00
2 row(s) in 0.0200 seconds
{code}

The code changes in FlowScanner.java are available as part of the patch I just 
uploaded to YARN-4986

> Ensure non-metric values are returned as is for flow run table from the 
> coprocessor
> -----------------------------------------------------------------------------------
>
>                 Key: YARN-5014
>                 URL: https://issues.apache.org/jira/browse/YARN-5014
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: timelineserver
>            Reporter: Vrushali C
>            Assignee: Vrushali C
>
> Presently the FlowScanner class presumes existence of NumericValueConverter 
> in it's emitCells function. This causes an exception when we try to retrieve 
> non-numeric values from this table. 
> Exception is seen as:
> {code}
> java.lang.ClassCastException: 
> org.apache.hadoop.yarn.server.timelineservice.storage.common.GenericConverter 
> cannot be cast to 
> org.apache.hadoop.yarn.server.timelineservice.storage.common.NumericValueConverter
>         at 
> org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowScanner.nextInternal(FlowScanner.java:246)
>         at 
> org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowScanner.nextRaw(FlowScanner.java:125)
>         at 
> org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowScanner.nextRaw(FlowScanner.java:119)
>         at 
> org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2117)
>         at 
> org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:31443)
>         at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2031)
>         at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107)
>         at 
> org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
>         at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to