Created
November 22, 2013 17:45
-
-
Save Nan-Zhang/7603980 to your computer and use it in GitHub Desktop.
Genomix-Data DriverUtils
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
/* Properties类继承了Hashtable<object, object>, 隶属于Java.util package */ | |
/* Properties可以load 文件流, 但文件的格式是line-oriented, 就是一行一个属性, | |
key=value,中间无空格*/ | |
/* System.getProperty("app.home"), 是利用java 执行时的设置系统变量option, -Doption=value | |
(command line)*/ | |
public static void updateCCProperties(GenomixJobConf conf) throws FileNotFoundException, IOException, InterruptedException { | |
Properties CCProperties = new Properties(); | |
CCProperties.load(new FileInputStream(System.getProperty("app.home", ".") + File.separator + "conf" | |
+ File.separator + "cluster.properties")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment