peng.jianhua created KYLIN-3058:
-----------------------------------
Summary: We should limit the integer type ID for "Kafka Setting"
in "Streaming Cluster" page
Key: KYLIN-3058
URL: https://issues.apache.org/jira/browse/KYLIN-3058
Project: Kylin
Issue Type: Bug
Components: Web
Reporter: peng.jianhua
Assignee: peng.jianhua
When you create or edit one streaming table, then set a non-integer type ID for
"Kafka Setting" in "Streaming Cluster" page, at last save it, you will find an
error message page will pop up.
1. Create a streaming table, then set a non-integer type ID for "Kafka
Setting" in "Streaming Cluster" page, such as "23a", at last save it, you will
get the error message page, refer to ;
2. Edit a streaming table, then modify a non-integer type ID for "Kafka
Setting" in "Streaming Cluster" page, such as "23a", at last save it, you will
also get another error message page, refer to ;
In order to find out the cause of the problem, I analyze the Kylin server log,
then I find the error, as follow:
{code:java}
2017-11-24 18:46:07,413 ERROR [http-bio-7070-exec-14]
controller.StreamingController:280 : The data KafkaConfig definition is invalid.
{color:red}com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not
construct instance of int from String value '23a': not a valid Integer
value{color}
at [Source:
{"uuid":"261e36cd-599e-4306-93b2-add0291de588","last_modified":1511520352482,"version":"2.3.0.20500","name":"DEFAULT.STREAMING_TABLE","clusters":[{"uuid":null,"last_modified":0,"version":"2.3.0.20500","brokers":[{"id":"23a","host":"1","port":1}],"newBroker":{"id":"23a","host":"1","port":1}}],"topic":"kafka
topic","timeout":60000,"parserName":"org.apache.kylin.source.kafka.TimedJsonStreamParser","timestampField":null,"margin":0,"parserProperties":"tsColName=datetime"};
{code}
It means the parameter ID isn't allowed for non-integer types, so we should
solve it at the web page.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)