Skip to content

Commit

Permalink
fixed #113
Browse files Browse the repository at this point in the history
  • Loading branch information
garyelephant committed Mar 24, 2018
1 parent bc18bdf commit fa54e2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion bin/start-waterdrop.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

# TODO: compress plugins/ dir before start-waterdrop.sh
# TODO: -t 参数好使吗?

# copy command line arguments
CMD_ARGUMENTS=$@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ object Waterdrop extends Logging {

cmdArgs.testConfig match {
case true => {
new ConfigBuilder(cmdArgs.configFile)
new ConfigBuilder(configFilePath).checkConfig
println("config OK !")
// TODO: check config
}
case false => {

entrypoint(cmdArgs.configFile)
entrypoint(configFilePath)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ class ConfigBuilder(configFile: String) {
parsedConfig
}

/**
* check if config is valid.
* */
def checkConfig: Unit = {
val sparkConfig = this.getSparkConfigs
val inputs = this.createInputs
val outputs = this.createOutputs
val filters = this.createFilters
}

def getSparkConfigs: Config = {
config.getConfig("spark")
}
Expand Down

0 comments on commit fa54e2a

Please sign in to comment.