Example usage for org.apache.hadoop.conf Configuration get

List of usage examples for org.apache.hadoop.conf Configuration get

Introduction

In this page you can find the example usage for org.apache.hadoop.conf Configuration get.

Prototype

public String get(String name) 

Source Link

Document

Get the value of the name property, null if no such property exists.

Usage

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static String getInputKeyspaceUserName(Configuration conf) {
    return conf.get(INPUT_KEYSPACE_USERNAME_CONFIG);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static String getInputKeyspace(Configuration conf) {
    return conf.get(INPUT_KEYSPACE_CONFIG);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static String getInputInitialAddress(Configuration conf) {
    return conf.get(INPUT_INITIAL_THRIFT_ADDRESS);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static String getOutputInitialAddress(Configuration conf) {
    return conf.get(OUTPUT_INITIAL_THRIFT_ADDRESS);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static String getOutputColumnFamily(Configuration conf) {
    return conf.get(OUTPUT_COLUMNFAMILY_CONFIG);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static SlicePredicate getInputSlicePredicate(Configuration conf) {
    String s = conf.get(INPUT_PREDICATE_CONFIG);
    return s == null ? null : predicateFromString(s);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static boolean getInputIsWide(Configuration conf) {
    return Boolean.valueOf(conf.get(INPUT_WIDEROWS_CONFIG));
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static IPartitioner getOutputPartitioner(Configuration conf) {
    try {// www .  j a va2 s.c o  m
        return FBUtilities.newPartitioner(conf.get(OUTPUT_PARTITIONER_CONFIG));
    } catch (ConfigurationException e) {
        throw new RuntimeException(e);
    }
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static String getOutputCompressionClass(Configuration conf) {
    return conf.get(OUTPUT_COMPRESSION_CLASS);
}

From source file:andromache.config.CassandraConfigHelper.java

License:Apache License

public static void setDefaultWriteConsistencyLevel(Configuration configuration) {
    if (configuration.get(CASSANDRA_CONSISTENCYLEVEL_WRITE) == null) {
        configuration.set(CASSANDRA_CONSISTENCYLEVEL_WRITE, DEFAULT_CONSISTENCY_LEVEL);
    }/* ww w .  j av a  2  s.c  om*/
}