Skip to content

Instantly share code, notes, and snippets.

@Nan-Zhang
Created November 22, 2013 17:45
Show Gist options
  • Save Nan-Zhang/7603980 to your computer and use it in GitHub Desktop.
Save Nan-Zhang/7603980 to your computer and use it in GitHub Desktop.
Genomix-Data DriverUtils
/* 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