title: error: constructor HTable in class HTable cannot be applied to given types
body: <p>I am working the <strong>hadoop hbase</strong> . I just wrote a simple program to insert database database. When i run program i am getting following error:</p>
  
  <p>InsertData.java:31: error: constructor HTable in class HTable cannot be applied to given types;
        HTable hTable = new HTable("emp", conn);</p>
  
  <p>My code:</p>
  
  <pre><code>
  import java.io.IOException;
  
  import org.apache.hadoop.conf.Configuration;
  
  import org.apache.hadoop.hbase.HBaseConfiguration;
  import org.apache.hadoop.hbase.client.HTable;
  import org.apache.hadoop.hbase.client.Put;
  import org.apache.hadoop.hbase.util.Bytes;
  
  public class InsertData {
  
     public static void main(String[] args) throws IOException {
  
        // Instantiating Configuration class
        Configuration config = HBaseConfiguration.create();
  
        // Instantiating HTable class
        HTable hTable = new HTable(config, "emp");
  
        // Instantiating Put class
        // accepts a row name.
        Put p = new Put(Bytes.toBytes("row1")); 
  
        // adding values using add() method
        // accepts column family name, qualifier/row name ,value
        p.add(Bytes.toBytes("personal"),
        Bytes.toBytes("name"),Bytes.toBytes("raju"));
  
        p.add(Bytes.toBytes("personal"),
        Bytes.toBytes("city"),Bytes.toBytes("hyderabad"));
  
        p.add(Bytes.toBytes("professional"),Bytes.toBytes("designation"),
        Bytes.toBytes("manager"));
  
        p.add(Bytes.toBytes("professional"),Bytes.toBytes("salary"),
        Bytes.toBytes("50000"));
  
        // Saving the put Instance to the HTable.
        hTable.put(p);
        System.out.println("data inserted");
  
        // closing HTable
        hTable.close();
     }
  }
  
  
  </code></pre>
  
  <p>My help?</p>
  
  <p>Thanks</p>