[
https://issues.apache.org/jira/browse/KYLIN-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liyang resolved KYLIN-1120.
---------------------------
Resolution: Duplicate
> MapReduce job read local meta issue
> -----------------------------------
>
> Key: KYLIN-1120
> URL: https://issues.apache.org/jira/browse/KYLIN-1120
> Project: Kylin
> Issue Type: Bug
> Components: Storage - HBase
> Affects Versions: v1.1, v1.0
> Environment: Kylin-1.x-staging branch
> Reporter: Xiaoyu Wang
> Assignee: liyang
> Fix For: v1.2
>
> Attachments: 0001-KYLIN-1120-MapReduce-job-read-local-meta-issue.patch
>
>
> set the property "kylin.metadata.url" in kylin.properties like this:
> {code}
> kylin.metadata.url=kylin_metadata_test1.2@hbase
> {code}
> 1.Create a test cube and build.
> 2.In the step 2:"Fact_Distinct_Columns" got exception:
> {noformat}
> 2015-11-02 17:23:50,354 WARN [main] org.apache.hadoop.mapred.YarnChild:
> Exception running child : java.lang.NullPointerException
> at
> org.apache.kylin.job.hadoop.cube.FactDistinctColumnsMapper.setup(FactDistinctColumnsMapper.java:73)
> at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:784)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:163)
> 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:1628)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
> {noformat}
> reason:
> In the MapReduce job Kylin set the local dir to metadataUrl for read metadata.
> {code:title=FactDistinctColumnsMapper.java|borderStyle=solid}
> KylinConfig config = AbstractHadoopJob.loadKylinPropsAndMetadata(conf);
> {code}
> But the ResourceStore.java return a "HBaseResourceStore" instance from
> "getStore" method.
> Because the HBaseResourceStore's constructor will not throw exception when
> the metadataUrl is local address not "xxx@hbase"
> "HBaseResourceStore" will read the default HBase table "kylin_metadata" to
> get the cube metadata and My metadata is in "kylin_metadata_test1.2" table,so
> got the NPE.
> I modify the class add order in ResourceStore's static code to fixed this
> issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)