Examples of HCatTupleInputFormat


Examples of com.datasalt.pangool.tuplemr.mapred.lib.input.HCatTupleInputFormat

    String dbName = args[0];
    String tableName = args[1];
   
    MapOnlyJobBuilder builder = new MapOnlyJobBuilder(conf, "HCatTupleInputFormat Integration Test");
    // input path can't be null in Pangool so we enter anything
    builder.addInput(new Path("anything"), new HCatTupleInputFormat(dbName, tableName, conf), new MapOnlyMapper<ITuple, NullWritable, NullWritable, NullWritable>() {
     
      protected void map(ITuple key, NullWritable value, Context context) throws IOException, InterruptedException {
        System.out.println(key.toString());
      };
    });
View Full Code Here

Examples of com.datasalt.pangool.tuplemr.mapred.lib.input.HCatTupleInputFormat

      throws IOException {
    if(hadoopConf == null) {
      throw new IllegalArgumentException(
          "Hadoop configuration can't be null - please provide a valid one.");
    }
    HCatTupleInputFormat inputFormat = new HCatTupleInputFormat(dbName, tableName, conf);
    Map<String, String> specificContext = new HashMap<String, String>();
    specificContext.put("mapreduce.lib.hcat.job.info", conf.get("mapreduce.lib.hcat.job.info"));
    specificContext.put("mapreduce.lib.hcatoutput.hive.conf",
        conf.get("mapreduce.lib.hcatoutput.hive.conf"));
    addCustomInputFormatFile(new Path("hive/" + dbName + "/" + this.tableName), inputFormat,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.