No description, website, or topics provided.
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE.txt
NOTICE.txt
README.md
REVIEWERS
pom.xml

README.md

hadoop-configurator

This project contains a few helpful classes for working with Apache Hadoop configuration.

Example use

public class Foo extends Configured {
  @HadoopConf(key="foo.value", usage="The foo value")
  private String fooValue = "defaultValue";

  @Override
  public void setConf(Configuration conf) {
    super.setConf(conf);
    HadoopConfigurator.configure(this);
  }

  @HadoopConf(key="bar.value", defaultValue="123")
  private void setBarValue(int barValue) {
    // This method is called with the value of conf.get("bar.value") as the parameter.
  }

  public void doStuff() {
    // fooValue has been populated with the value of conf.get("foo.value") automatically.
    System.out.println("foo.value read from configuration: " + fooValue);
  }
}

How to build

To build target/hadoop-configurator-${project.version}.jar run:

mvn package

Documentation