View as lookup table is not supported now; I'm not sure whether this would
resolve it, you can watch and comment directly in JIRA:
https://issues.apache.org/jira/browse/KYLIN-824

2015-06-26 7:17 GMT+08:00 Tero Paananen <[email protected]>:

> Can I use a Hive view as a lookup table in a cube?
>
> I just tried building a cube where a Hive view was defined as one of
> the lookup tables and this is the error I got in the "Build Dimension
> Dictionary" step:
>
> java.lang.NullPointerException
> at java.net.URI$Parser.parse(URI.java:3023)
> at java.net.URI.<init>(URI.java:595)
> at org.apache.kylin.common.util.HadoopUtil.makeURI(HadoopUtil.java:59)
> at
> org.apache.kylin.common.util.HadoopUtil.getFileSystem(HadoopUtil.java:54)
> at
> org.apache.kylin.dict.lookup.HiveTable.computeHDFSLocation(HiveTable.java:106)
> at
> org.apache.kylin.dict.lookup.HiveTable.getHDFSLocation(HiveTable.java:83)
> at org.apache.kylin.dict.lookup.HiveTable.getFileTable(HiveTable.java:76)
> at org.apache.kylin.dict.lookup.HiveTable.getSignature(HiveTable.java:71)
> at org.apache.kylin.dict.lookup.SnapshotTable.<init>(SnapshotTable.java:55)
> at
> org.apache.kylin.dict.lookup.SnapshotManager.buildSnapshot(SnapshotManager.java:88)
> at
> org.apache.kylin.cube.CubeManager.buildSnapshotTable(CubeManager.java:191)
> at
> org.apache.kylin.cube.cli.DictionaryGeneratorCLI.processSegment(DictionaryGeneratorCLI.java:61)
> at
> org.apache.kylin.cube.cli.DictionaryGeneratorCLI.processSegment(DictionaryGeneratorCLI.java:42)
> at
> org.apache.kylin.job.hadoop.dict.CreateDictionaryJob.run(CreateDictionaryJob.java:53)
>
> -TPP
>

Reply via email to