title: Error executing HBASE and Pig embeded in Java
body: <p>I executed this sentence en Pig and it works:</p>
  
  <p>source = load 'hbase://DatosBicing'
  using org.apache.pig.backend.hadoop.hbase.HBaseStorage(
                 'datos:bikes', '-loadKey true')
  as (id1:int, bikes:int);</p>
  
  <p>I try on to execute the same sentence in embeded Pig in java. The code is:</p>
  
  <p>runMyQuery(pigServer,"hbase://DatosBicing");</p>
  
  <p>pigServer.registerQuery("source = load '"+ inputFile + "' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage( " +
                              "'datos:bikes')"+
                              "as (id1:chararray,  bikes:chararray) ;");</p>
  
  <p>When I execute this code,  I have the error:</p>
  
  <p>org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during parsing. Pig script failed to parse: 
   pig script failed to validate: java.lang.RuntimeException: could not instantiate 'org.apache.pig.backend.hadoop.hbase.HBaseStorage' with arguments '[datos:bikes]'</p>
  
  <p>Other parameters in Java code are:</p>
  
  <p>PigServer pigServer = new PigServer("local");</p>
  
  <pre><code>   pigServer.registerJar("/usr/lib/hbase/lib/zookeeper.jar");
     pigServer.registerJar("/usr/lib/hbase/lib/protobuf-java-2.4.0a.jar");
  </code></pre>
  
  <p>Could someone help me?</p>