DTStack / DTStack/flinkStreamSQL

es5和es的sink插件id参数不填时, 报空指针异常

Open
#385 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
913
PR merge metrics
No merged PRs in 30d

Description

配置文件
CREATE TABLE kafka(
id varchar
)WITH(
bootstrapServers='10.10.14.117:9092',
timezone='Asia/Shanghai',
groupId='ddd',
parallelism='1',
topic='ddd',
offsetReset='latest',
sourcedatatype='dt_nest',
type='kafka');
CREATE TABLE es(
id varchar
)WITH(
sourceid='b93d1e56-0b17-4855-a60f-bd18fd245a78',
cluster='aiops-cluster',
address='10.10.14.51:9200',
parallelism='1',
index='myresult',
estype='_doc',
authMesh='false',
type='elasticsearch');
insert into es select id from kafka;

出现以下错误

![image](https://user-images.githubusercontent.com/21021327/96704307-858d1480-13c6-11eb-9d5a-535f6223a1a5.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the Kafka-to-Elasticsearch SQL configuration in the report, leaving the sink plugin's id parameter unset. Inspect the ES5 and ES sink handling reached by this configuration and capture the full exception from the linked screenshot context. Done means the same configuration no longer produces a null pointer exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
backend, data-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.