You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "liuchuanqi (JIRA)" <ji...@apache.org> on 2015/09/12 11:15:45 UTC

[jira] [Comment Edited] (TEZ-2805) run task with lzo files sometimes fail

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

liuchuanqi edited comment on TEZ-2805 at 9/12/15 9:14 AM:
----------------------------------------------------------

yes, for the same query 
use the newest code (https://github.com/twitter/hadoop-lzo/blob/master/src/main/java/com/hadoop/mapred/DeprecatedLzoTextInputFormat.java)  task   still  fail  .

LzoIndex index = indexes.get(filename);    return !index.isEmpty();   it seems like 'index'  is null ,means that indexes.get() can't get the object ,but under normal circumstances,  'indexes'  contains all the  files index object ,so i think it's a thread safety issue.
Could you give me some suggestions, please?


was (Author: cqliu):
yes, for the same query 
use the newest code ((https://github.com/twitter/hadoop-lzo/blob/master/src/main/java/com/hadoop/mapred/DeprecatedLzoTextInputFormat.java)  task   still  fail  .

LzoIndex index = indexes.get(filename);    return !index.isEmpty();   it seems like 'index'  is null ,means that indexes.get() can't get the object ,but under normal circumstances,  'indexes'  contains all the  files index object ,so i think it's a thread safety issue.
Could you give me some suggestions, please?

> run task with lzo files sometimes fail 
> ---------------------------------------
>
>                 Key: TEZ-2805
>                 URL: https://issues.apache.org/jira/browse/TEZ-2805
>             Project: Apache Tez
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: liuchuanqi
>
> with lzo files (hadoop-lzo-0.4.15.jar)  sometimes fail 
> 2015-08-26 14:59:45,432 ERROR [main]: SessionState (SessionState.java:printError(966)) - Vertex failed, vertexName=Map 16, vertexId=vertex_1439806072228_0774_1_05, diagnostics=[Vertex vertex_1439806072228_0774_1_05 [Map 16] killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: bd_dms_inspection initializer failed, vertex=vertex_1439806072228_0774_1_05 [Map 16], java.lang.NullPointerException                                                                                          
>     at com.hadoop.mapred.DeprecatedLzoTextInputFormat.isSplitable(DeprecatedLzoTextInputFormat.java:103)                                                                                                                                                                                                                                                                                                                                                                                                            
>     at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:300)                                                                                                                                                                                                                                                                                                                                                                                                                                 
>     at com.hadoop.mapred.DeprecatedLzoTextInputFormat.getSplits(DeprecatedLzoTextInputFormat.java:112)                                                                                                                                                                                                                                                                                                                                                                                                              
>     at org.apache.hadoop.hive.ql.io.HiveInputFormat.addSplitsForGroup(HiveInputFormat.java:305)                                                                                                                                                                                                                                                                                                                                                                                                                     
>     at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:407)                                                                                                                                                                                                                                                                                                                                                                                                                             
>     at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:155)                                                                                                                                                                                                                                                                                                                                                                                                                
>     at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:245)                                                                                                                                                                                                                                                                                                                                                                                  
>     at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:239)                                                                                                                                                                                                                                                                                                                                                                                  
>     at java.security.AccessController.doPrivileged(Native Method)                                                                                                                                                                                                                                                                                                                                                                                                                                                   
>     at javax.security.auth.Subject.doAs(Subject.java:415)                                                                                                                                                                                                                                                                                                                                                                                                                                                           
>     at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)                                                                                                                                                                                                                                                                                                                                                                                                                         
>     at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:239)                                                                                                                                                                                                                                                                                                                                                                                   
>     at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:226)                                                                                                                                                                                                                                                                                                                                                                                   
>     at java.util.concurrent.FutureTask.run(FutureTask.java:262)                                                                                                                                                                                                                                                                                                                                                                                                                                                     
>     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:744)



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