Showing
1 changed file
with
2 additions
and
2 deletions
@@ -35,7 +35,7 @@ public class ExecutorBuilder { | @@ -35,7 +35,7 @@ public class ExecutorBuilder { | ||
35 | private Function0<SparkConf> sparkConf; | 35 | private Function0<SparkConf> sparkConf; |
36 | private Function0<JavaStreamingContext> streamingContext; | 36 | private Function0<JavaStreamingContext> streamingContext; |
37 | private Map<String, String> kafkaParamMap = new HashMap<>(); | 37 | private Map<String, String> kafkaParamMap = new HashMap<>(); |
38 | - private String checkpointDir = "/spark/checkpoint/trace"; | 38 | + private String checkpointDir = "/spark/checkpoint/" + APP_NAME; |
39 | 39 | ||
40 | 40 | ||
41 | public ExecutorBuilder sparkConf() { | 41 | public ExecutorBuilder sparkConf() { |
@@ -90,7 +90,7 @@ public class ExecutorBuilder { | @@ -90,7 +90,7 @@ public class ExecutorBuilder { | ||
90 | List<Spans> messages = new ArrayList<>(); | 90 | List<Spans> messages = new ArrayList<>(); |
91 | ObjectMapper jacksonMapper = new ObjectMapper(); | 91 | ObjectMapper jacksonMapper = new ObjectMapper(); |
92 | 92 | ||
93 | - long current = System.currentTimeMillis() ; | 93 | + long current = System.currentTimeMillis(); |
94 | 94 | ||
95 | while (msgIterator.hasNext()) { | 95 | while (msgIterator.hasNext()) { |
96 | Tuple2<byte[], byte[]> msgTuple2 = msgIterator.next(); | 96 | Tuple2<byte[], byte[]> msgTuple2 = msgIterator.next(); |
-
Please register or login to post a comment