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:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setInputPartitioner(Configuration conf, String classname) { conf.set(INPUT_PARTITIONER_CONFIG, classname); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setInputInitialAddress(Configuration conf, String address) { conf.set(INPUT_INITIAL_THRIFT_ADDRESS, address); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setInputTransportFactoryClass(Configuration conf, String classname) { conf.set(INPUT_TRANSPORT_FACTORY_CLASS, classname); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setOutputPartitioner(Configuration conf, String classname) { conf.set(OUTPUT_PARTITIONER_CONFIG, classname); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
/** * Set the KeyRange to limit the rows.//from w w w.j a v a 2s . co m * @param conf Job configuration you are about to run */ public static void setInputRange(Configuration conf, String startToken, String endToken) { KeyRange range = new KeyRange().setStart_token(startToken).setEnd_token(endToken); conf.set(INPUT_KEYRANGE_CONFIG, thriftToString(range)); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setInputRpcPort(Configuration conf, String port) { conf.set(INPUT_THRIFT_PORT, port); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setOutputCompressionClass(Configuration conf, String classname) { conf.set(OUTPUT_COMPRESSION_CLASS, classname); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setOutputTransportFactoryClass(Configuration conf, String classname) { conf.set(OUTPUT_TRANSPORT_FACTORY_CLASS, classname); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setOutputInitialAddress(Configuration conf, String address) { conf.set(OUTPUT_INITIAL_THRIFT_ADDRESS, address); }
From source file:andromache.config.CassandraConfigHelper.java
License:Apache License
public static void setUseWideRows(Configuration conf, boolean wideRows) { conf.set(INPUT_WIDEROWS_CONFIG, String.valueOf(wideRows)); }