Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.12.0
-
None
-
HDP,CDH
Description
File.listFiles() returns null, if does not have read access
Here is the log
2018-07-05 19:23:21,317 INFO org.apache.tajo.master.TajoMaster: Staging dir: hdfs://xxx/tajo/warehouse 2018-07-05 19:23:21,414 INFO org.apache.hadoop.service.AbstractService: Service org.apache.tajo.master.TajoMaster failed in state INITED; cause: java.lang.NullPointerException java.lang.NullPointerException at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:60) at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:61) at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:50) at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:38) at org.apache.tajo.rule.base.BaseRuleProvider.getDefinedRules(BaseRuleProvider.java:38) at org.apache.tajo.rule.SelfDiagnosisRuleEngine.loadPredefinedRules(SelfDiagnosisRuleEngine.java:83) at org.apache.tajo.rule.SelfDiagnosisRuleEngine.<init>(SelfDiagnosisRuleEngine.java:30) at org.apache.tajo.rule.SelfDiagnosisRuleEngine.getInstance(SelfDiagnosisRuleEngine.java:37) at org.apache.tajo.master.TajoMaster.diagnoseTajoMaster(TajoMaster.java:324) at org.apache.tajo.master.TajoMaster.serviceInit(TajoMaster.java:179) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.tajo.master.TajoMaster.main(TajoMaster.java:627) 2018-07-05 19:23:21,417 INFO org.apache.tajo.master.TajoMaster: Tajo Master main thread exiting 2018-07-05 19:23:21,417 FATAL org.apache.tajo.master.TajoMaster: Error starting TajoMaster java.lang.NullPointerException at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:60) at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:61) at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:50) at org.apache.tajo.util.ClassUtil.findClasses(ClassUtil.java:38) at org.apache.tajo.rule.base.BaseRuleProvider.getDefinedRules(BaseRuleProvider.java:38) at org.apache.tajo.rule.SelfDiagnosisRuleEngine.loadPredefinedRules(SelfDiagnosisRuleEngine.java:83) at org.apache.tajo.rule.SelfDiagnosisRuleEngine.<init>(SelfDiagnosisRuleEngine.java:30) at org.apache.tajo.rule.SelfDiagnosisRuleEngine.getInstance(SelfDiagnosisRuleEngine.java:37) at org.apache.tajo.master.TajoMaster.diagnoseTajoMaster(TajoMaster.java:324) at org.apache.tajo.master.TajoMaster.serviceInit(TajoMaster.java:179) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.tajo.master.TajoMaster.main(TajoMaster.java:627) 2018-07-05 19:23:21,524 INFO org.apache.tajo.master.TajoMaster: SHUTDOWN_MSG: