You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Ryan Blue (JIRA)" <ji...@apache.org> on 2015/04/07 00:55:14 UTC

[jira] [Commented] (PARQUET-220) Unnecessary warning in ParquetRecordReader.initialize

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

Ryan Blue commented on PARQUET-220:
-----------------------------------

I had to revert the commit because this had test failures (my bad for not running the hadoop-1 tests). Evidently, there are cases in hadoop-1 where the context is not a TaskInputOutputContext and TaskAttemptContext has no getCounter method. I don't think the error message was unnecessary after all, so I'll leave this closed. Feel free to reopen to address it in a different way if you think there is one.

> Unnecessary warning in ParquetRecordReader.initialize
> -----------------------------------------------------
>
>                 Key: PARQUET-220
>                 URL: https://issues.apache.org/jira/browse/PARQUET-220
>             Project: Parquet
>          Issue Type: Improvement
>    Affects Versions: parquet-mr_1.6.0
>            Reporter: Konstantin Shaposhnikov
>             Fix For: 1.6.0
>
>
> When reading a parquet file using spark 1.3.0 lots of warnings are printed in the log:
> {noformat}
> WARNING: parquet.hadoop.ParquetRecordReader: Can not initialize counter due to context is not a instance of TaskInputOutputContext, but is org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl
> {noformat}
> I have checked the source of ParquetRecordReader and found that while it checks for context to be TaskInputOutputContext it seems to never actually rely on this fact.



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