title: Hbase data query using rest api
body: <p>To get data from Hbase table using rest we can use:</p>
  
  <p><em><a href="http://ip:port/tablename/base64_encoded_key" rel="nofollow noreferrer">http://ip:port/tablename/base64_encoded_key</a></em>
  My key is byte array of</p>
  
  <blockquote>
    <p>prefix + customer_id + timestamp</p>
  </blockquote>
  
  <pre><code>byte[] rowKey = Bytes.add(Bytes.toBytes(prefix),Bytes.toBytes(customer_id),Bytes.toBytes(timestamp));
  </code></pre>
  
  <p>My sample key</p>
  
  <blockquote>
    <p>3\x00\x00\x00\x02I9\xB1\x8B\x00\x00\x01a\x91\x88\xEFp</p>
  </blockquote>
  
  <ol>
  <li>How do I get data from Hbase using rest?</li>
  <li>How do I get data from Hbase using customer_id and time range?</li>
  </ol>