kw2542 commented on a change in pull request #1256: SAMZA-2420: Update
CommandLine to use config loader for local config file
URL: https://github.com/apache/samza/pull/1256#discussion_r369877106
##########
File path:
samza-core/src/main/scala/org/apache/samza/checkpoint/CheckpointTool.scala
##########
@@ -117,10 +118,15 @@ object CheckpointTool {
.mapValues(m => m.reduce( _ ++ _)) // Merge all the maps of
SSPs->Offset into one for the whole taskname
}
- override def loadConfig(options: OptionSet): MapConfig = {
+ override def loadConfig(options: OptionSet): Config = {
val config = super.loadConfig(options)
if (options.has(newOffsetsOpt)) {
- val properties =
configFactory.getConfig(options.valueOf(newOffsetsOpt))
+ val in = new FileInputStream(options.valueOf(newOffsetsOpt).getPath)
Review comment:
Renamed to newOffsetsInputStream
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services