Skip to content

Commit eac7d5d

Browse files
Juan Pablo Diaz-VazJuan Pablo Diaz-Vaz
authored andcommitted
SUMOK-16 Configuration for CloudWatch logs
1 parent e12b38a commit eac7d5d

4 files changed

Lines changed: 75 additions & 593 deletions

File tree

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<get src= "http://central.maven.org/maven2/com/google/protobuf/protobuf-java/2.6.1/protobuf-java-2.6.1.jar" dest="${external.dir}/lib" usetimestamp="true" verbose="true"/>
3232
<get src= "http://central.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar" dest="${external.dir}/lib" usetimestamp="true" verbose="true"/>
3333
<get src= "http://central.maven.org/maven2/org/apache/lucene/lucene-core/4.8.1/lucene-core-4.8.1.jar" dest="${external.dir}/lib" usetimestamp="true" verbose="true"/>
34+
<get src= "http://central.maven.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar" dest="${external.dir}/lib" usetimestamp="true" verbose="true"/>
3435

3536
<get src= "https://hamcrest.googlecode.com/files/hamcrest-core-1.3.jar" dest="${external.dir}/lib" usetimestamp="true" verbose="true"/>
3637

src/main/java/com/mcplusa/kinesis/StreamSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected void processInputStream(InputStream inputStream, int iteration) throws
125125
PutRecordRequest putRecordRequest = new PutRecordRequest();
126126
putRecordRequest.setStreamName(config.KINESIS_INPUT_STREAM);
127127
putRecordRequest.setData(ByteBuffer.wrap(line.getBytes()));
128-
putRecordRequest.setPartitionKey(Integer.toString(kinesisMessageModel.getUserid()));
128+
putRecordRequest.setPartitionKey(Integer.toString(kinesisMessageModel.getId()));
129129
kinesisClient.putRecord(putRecordRequest);
130130
lines++;
131131
}

0 commit comments

Comments
 (0)