File tree Expand file tree Collapse file tree 6 files changed +22
-36
lines changed
main/java/com/nasdaq/ncdsclient Expand file tree Collapse file tree 6 files changed +22
-36
lines changed Original file line number Diff line number Diff line change 77 <parent >
88 <groupId >com.nasdaq.ncds</groupId >
99 <artifactId >ncds</artifactId >
10- <version >0.8.5 </version >
10+ <version >0.9.0 </version >
1111 </parent >
1212
1313 <artifactId >ncds-sdk</artifactId >
5656 <artifactId >slf4j-simple</artifactId >
5757 <scope >test</scope >
5858 </dependency >
59- <!-- Kafka -auth -->
60- <dependency >
61- <groupId >io.strimzi</groupId >
62- <artifactId >kafka-oauth-common</artifactId >
63- </dependency >
64-
6559 <!-- Testing -->
6660
6761 <!-- Kafka -->
Original file line number Diff line number Diff line change 77import com .nasdaq .ncdsclient .internal .utils .IsItJunit ;
88import com .nasdaq .ncdsclient .internal .utils .KafkaConfigLoader ;
99import com .nasdaq .ncdsclient .news .NewsUtil ;
10- import io .strimzi .kafka .oauth .common .ConfigProperties ;
1110import org .apache .avro .Schema ;
1211import org .apache .kafka .clients .consumer .ConsumerConfig ;
1312import org .apache .kafka .clients .consumer .KafkaConsumer ;
@@ -216,14 +215,6 @@ public KafkaConsumer getNewsConsumer(String topic) throws Exception {
216215 }
217216 }
218217
219- private String getDate (){
220- // Get Today's EST date
221- DateFormat dateformat = new SimpleDateFormat ("yyyy-MM-dd" );
222- dateformat .setTimeZone (TimeZone .getTimeZone ("America/New_York" ));
223- String date = dateformat .format (new Date ());
224- return date ;
225- }
226-
227218 private KafkaConsumer seekToMidNight (TopicPartition topicPartition ){
228219 Map <TopicPartition ,Long > timestmaps = new HashMap ();
229220 timestmaps .put (topicPartition , getTodayMidNightTimeStamp ());
Original file line number Diff line number Diff line change 22
33import com .nasdaq .ncdsclient .internal .utils .IsItJunit ;
44import com .nasdaq .ncdsclient .internal .utils .KafkaConfigLoader ;
5- import io .strimzi .kafka .oauth .common .ConfigProperties ;
65import org .apache .avro .Schema ;
76import org .apache .avro .generic .GenericRecord ;
87import org .apache .kafka .clients .consumer .*;
@@ -121,9 +120,9 @@ private KafkaAvroConsumer getConsumer(String cleindId) throws Exception {
121120 //Properties kafkaProps = null;
122121 try {
123122
124- if (!IsItJunit .isJUnitTest ()) {
125- ConfigProperties .resolveAndExportToSystemProperties (securityProps );
126- }
123+ // if(!IsItJunit.isJUnitTest()) {
124+ // ConfigProperties.resolveAndExportToSystemProperties(securityProps);
125+ // }
127126
128127 Schema .Parser parser = new Schema .Parser ();
129128 //controlMessageSchema = parser.parse(ClassLoader.getSystemResourceAsStream("ControlMessageSchema.avsc"));
@@ -137,7 +136,7 @@ private KafkaAvroConsumer getConsumer(String cleindId) throws Exception {
137136 kafkaProps .put (ConsumerConfig .AUTO_OFFSET_RESET_CONFIG , OffsetResetStrategy .EARLIEST .toString ().toLowerCase ());
138137 kafkaProps .put (ConsumerConfig .GROUP_ID_CONFIG , cleindId );
139138 kafkaProps .put (ConsumerConfig .MAX_PARTITION_FETCH_BYTES_CONFIG , "5048576" );
140- ConfigProperties .resolve (kafkaProps );
139+ // ConfigProperties.resolve(kafkaProps);
141140 }
142141 catch (Exception e ) {
143142 throw e ;
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <Configuration status =" DEBUG" >
3+ <Appenders >
4+ <File name =" LogToFile" fileName =" logs/unittest/log.out" append =" false" immediateFlush =" true" >
5+ <PatternLayout >
6+ <Pattern >%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n</Pattern >
7+ </PatternLayout >
8+ </File >
9+ </Appenders >
10+ <Loggers >
11+ <Root level =" INFO" >
12+ <AppenderRef ref =" LogToFile" />
13+ </Root >
14+ </Loggers >
15+ </Configuration >
Original file line number Diff line number Diff line change 77 <parent >
88 <groupId >com.nasdaq.ncds</groupId >
99 <artifactId >ncds</artifactId >
10- <version >0.8.5 </version >
10+ <version >0.9.0 </version >
1111 </parent >
1212
1313 <artifactId >ncdssdk-client</artifactId >
Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >com.nasdaq.ncds</groupId >
77 <artifactId >ncds</artifactId >
8- <version >0.8.5 </version >
8+ <version >0.9.0 </version >
99 <packaging >pom</packaging >
1010 <name >Nasdaq Cloud Data Service </name >
1111
2323 <log4j .version>2.20.0</log4j .version>
2424 <netty .version>4.1.94.Final</netty .version>
2525 <slf4jVersion >1.7.36</slf4jVersion >
26- <strimzi .oauth.version>0.12.0</strimzi .oauth.version>
2726 <checkstyle .skip>true</checkstyle .skip>
2827 <junit5 .version>5.7.2</junit5 .version>
2928 <junit5PlatformProvider .version>1.3.2</junit5PlatformProvider .version>
116115 <version >${kafka.version} </version >
117116 </dependency >
118117
119- <!-- Kafka Auth Dependency-->
120- <dependency >
121- <groupId >io.strimzi</groupId >
122- <artifactId >kafka-oauth-client</artifactId >
123- <version >${strimzi.oauth.version} </version >
124- </dependency >
125- <dependency >
126- <groupId >io.strimzi</groupId >
127- <artifactId >kafka-oauth-common</artifactId >
128- <version >${strimzi.oauth.version} </version >
129- </dependency >
130-
131118 <dependency >
132119 <groupId >org.slf4j</groupId >
133120 <artifactId >slf4j-log4j12</artifactId >
You can’t perform that action at this time.
0 commit comments