File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
kafka/src/main/java/com/dtstack/jlogstash/outputs Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,21 +53,21 @@ public class Kafka extends BaseOutput {
53
53
54
54
private ProducerConfig pconfig ;
55
55
56
- private Producer producer ;
56
+ private Producer < String , byte []> producer ;
57
57
58
- private String encoding = "utf-8" ;
58
+ private static String encoding = "utf-8" ;
59
59
60
- private String timezone = null ;
60
+ private static String timezone ;
61
61
62
62
@ Required (required =true )
63
- private String topic ;
63
+ private static String topic ;
64
64
65
- private Map <String ,Map <String ,Object >> topicSelect ;
65
+ private static Map <String ,Map <String ,Object >> topicSelect ;
66
66
67
67
private Set <Map .Entry <String ,Map <String ,Object >>> entryTopicSelect ;
68
68
69
69
@ Required (required =true )
70
- private String brokerList ;
70
+ private static String brokerList ;
71
71
72
72
private Map <String ,String > producerSettings ;
73
73
@@ -104,7 +104,7 @@ public void prepare() {
104
104
pconfig = new ProducerConfig (props );
105
105
}
106
106
if (producer ==null ){
107
- producer = new Producer (pconfig );
107
+ producer = new Producer < String , byte []> (pconfig );
108
108
}
109
109
}catch (Exception e ){
110
110
logger .error (e .getMessage ());
You can’t perform that action at this time.
0 commit comments