List of usage examples for org.apache.hadoop.conf Configuration set
public void set(String name, String value)
value
of the name
property. From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setUseElPrep(Configuration conf, boolean use) { if (use)//from w ww.j av a2s . c o m conf.set(useElPrep, "true"); else conf.set(useElPrep, "false"); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setRedistribute(Configuration conf, boolean val) { if (val) conf.set(redist, "true"); else//from w ww . ja v a 2 s.c o m conf.set(redist, "false"); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setIsPaired(Configuration conf, boolean isPaired) { if (isPaired) conf.set(paired, "true"); else/*w w w .j ava 2 s . c o m*/ conf.set(paired, "false"); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setOutDir(Configuration conf, String val) { if (!val.endsWith("/")) conf.set(outdir, val + "/"); else/* w w w.ja v a 2 s . c om*/ conf.set(outdir, val); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setScratchTempDir(Configuration conf, String val) { if (!val.endsWith("/")) conf.set(scratchTempDirName, val + "/"); else/*w w w.j av a 2 s.co m*/ conf.set(scratchTempDirName, val); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setGff(Configuration conf, String val) { conf.set(gff, val); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setReadGroup(Configuration conf, String val) { conf.set(readgroup, val); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setRefDirOnScratch(Configuration conf, String val) { conf.set(refOnScratchName, val); }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setKnownSitesOnHDFS(Configuration conf, String[] val) throws IOException, URISyntaxException { conf.setInt(numberOfSites, val.length); FileSystem fs;/*from w ww . ja v a 2 s . c o m*/ for (int i = 0; i < val.length; i++) { // check if dir add all files! fs = FileSystem.get(new URI(val[i]), conf); if (fs.isFile(new Path(val[i]))) { conf.set(sitesOnHDFSName + i, val[i]); } else { FileStatus[] files = fs.listStatus(new Path(val[i])); for (FileStatus file : files) { if (!file.isDir()) { conf.set(sitesOnHDFSName + i, file.getPath().toString()); } } } } }
From source file:be.ugent.intec.halvade.utils.HalvadeConf.java
License:Open Source License
public static void setRefOnHDFS(Configuration conf, String val) { conf.set(refOnHDFSName, val); }