title: Load a Data from a file into Table using Hbase MapReduce
body: <p>I need to load data from a File which is located in HDFS and load it in Hbase table using Hbase Map Reduce.I have the csv file which conatins only values of column Qualifier as follow:</p>
  
  <p>Now in my Hbase table how can i load this values from mapReduce program. And how the RowId will be auto generated.</p>
  
  <pre><code>    Class:
  
  
      public class SampleExample {
  
            private static final String NAME = "SampleExample "; //class Name
  
            static class Uploader extends Mapper&lt;LongWritable, Text, ImmutableBytesWritable, Put&gt; 
            {
              private long statuspoint = 100;
              private long count = 0;
              @Override
              public void map(LongWritable key, Text line, Context context)
              throws IOException {
                String [] values = line.toString().split(",");
                        /* How to read values into columnQualifier and how to generate row id */
           // put function-------------------
                                 try {
                  context.write(new ImmutableBytesWritable(row), put);
                } catch (InterruptedException e) {
                  e.printStackTrace();
                }
                if(++count % statuspoint == 0) {
                  context.setStatus("Emitting Put " + count);
                }
              }
            }
        public static Job configureJob(Configuration conf, String [] args)
            throws IOException {
  
                                     }
          }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>12/09/17 05:23:30 INFO mapred.JobClient: Task Id : attempt_201209041554_0071_m_000000_0, Status : FAILED
  java.io.IOException: Type mismatch in value from map: expected org.apache.hadoop.io.Writable, recieved org.apache.hadoop.hbase.client.Put
          at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1019)
          at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:691)
          at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
          at com.hbase.Administration$Uploader.map(HealthAdministration.java:51)
          at com.hbase.Administration$Uploader.map(HealthAdministration.java:1)
          at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
          at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
          at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
          at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAs(Subject.java:415)
          at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
          at org.apache.hadoop.mapred.Child.main(Child.java:249)
  </code></pre>
  
  <p>Can any one please help me, i am not able to figure, how we read values into qualifier.</p>