You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Billy Liu (JIRA)" <ji...@apache.org> on 2018/01/25 06:38:00 UTC

[jira] [Resolved] (KYLIN-2350) When broker is not set, kylin doesn't give any hint but throw NPE

     [ https://issues.apache.org/jira/browse/KYLIN-2350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Billy Liu resolved KYLIN-2350.
------------------------------
       Resolution: Fixed
    Fix Version/s: v2.2.0

> When broker is not set, kylin doesn't give any hint but throw NPE
> -----------------------------------------------------------------
>
>                 Key: KYLIN-2350
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2350
>             Project: Kylin
>          Issue Type: Improvement
>            Reporter: Wang Cheng
>            Assignee: Wang Cheng
>             Fix For: v2.2.0
>
>
> If broker is not set in Kafka streaming table, there is no any helpful hint. Instead it throws a NPE:
> controller.CubeController:298 :
> java.lang.NullPointerException
>         at java.util.Hashtable.put(Hashtable.java:514)
>         at org.apache.kylin.source.kafka.util.KafkaClient.constructDefaultKafkaConsumerProperties(KafkaClient.java:74)
>         at org.apache.kylin.source.kafka.util.KafkaClient.getKafkaConsumer(KafkaClient.java:42)
>         at org.apache.kylin.source.kafka.util.KafkaClient.getEarliestOffsets(KafkaClient.java:145)
>         at org.apache.kylin.source.kafka.KafkaSource.parsePartitionBeforeBuild(KafkaSource.java:88)
>         at org.apache.kylin.rest.service.JobService.submitJob(JobService.java:216)
>         at org.apache.kylin.rest.service.JobService$$FastClassBySpringCGLIB$$83a44b2a.invoke(<generated>)
>         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:700)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> Is it possible to prevent this on GUI?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)