Skip to content

Commit 61fd8c9

Browse files
committed
Some debug messages for cassandra
1 parent aa0d6aa commit 61fd8c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/scala/sparkapps/ctakes/CTakesTwitterStreamingApp.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,11 @@ object Driver {
188188
Thread.sleep(1)
189189
transactions.foreach({
190190
xN =>
191+
System.out.println("Running Cassandra Insert..." + xN)
192+
System.out.println("Note that this can fail if cassandra isnt working...")
191193
val xNtxt=xN.toString+" "+xN.getText;
192-
session.executeAsync(s"INSERT INTO streaming_test.key_value (key, value) VALUES ('$xNtxt' , $x)")}
194+
session.executeAsync(s"INSERT INTO streaming_test.key_value (key, value) VALUES ('$xNtxt' , $x)")
195+
}
193196
)
194197
true;
195198
}

0 commit comments

Comments
 (0)