-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7943008
commit 4c6af3f
Showing
9 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,15 @@ | |
package streaming.common.zk; | ||
|
||
import com.google.inject.Inject; | ||
import net.csdn.common.logging.CSLogger; | ||
import net.csdn.common.logging.Loggers; | ||
import net.csdn.common.settings.Settings; | ||
import org.I0Itec.zkclient.IZkDataListener; | ||
import org.apache.log4j.Logger; | ||
|
||
/** | ||
* 7/7/16 WilliamZhu([email protected]) | ||
*/ | ||
public class ZKClient { | ||
private CSLogger logger = Loggers.getLogger(ZKClient.class); | ||
private Logger logger = Logger.getLogger(ZKClient.class); | ||
private ZKConfUtil zkConfUtil; | ||
|
||
@Inject | ||
|
@@ -171,7 +170,7 @@ public void main(String[] args) throws InterruptedException { | |
@Override | ||
public void setConf(String conf) { | ||
if (logger.isInfoEnabled()) { | ||
logger.info("conf: {}", conf); | ||
logger.info(String.format("conf: %s", conf)); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,11 @@ package tech.mlsql.test | |
import org.apache.spark.streaming.BasicSparkOperation | ||
import streaming.core.strategy.platform.SparkRuntime | ||
import streaming.core.{BasicMLSQLConfig, SpecFunctions} | ||
import tech.mlsql.common.utils.log.Logging | ||
|
||
/** | ||
* 10/11/2020 WilliamZhu([email protected]) | ||
*/ | ||
class Test2 extends BasicSparkOperation with SpecFunctions with BasicMLSQLConfig with Logging{ | ||
class Test2 extends BasicSparkOperation with SpecFunctions with BasicMLSQLConfig { | ||
|
||
|
||
"data-drive" should "framework" in { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters