title: HBase storing data for a particular column with 2 or more values for the same row-key in Scala/Java API
body: <p>I have a file with following contents:</p>
  
  <pre><code>UserID   Email             
  1001     abc@yahoo.com     
  1001     def@gmail.com     
  1002     gft@gmail.com
  1002     rtf@yahoo.com
  </code></pre>
  
  <p>I want to store the data like this:</p>
  
  <pre><code>ROW          COLUMN+CELL                                                                                   
  1001         column=cf:Email, timestamp=1487917201278, value=abc@yahoo.com 
  1001         column=cf:Email, timestamp=1487917201279, value=def@gmail.com                                                                                                
  1002         column=cf:Email, timestamp=1487917201286, value=gft@gmail.com
  1002         column=cf:Email, timestamp=1487917201287, value=rtf@yahoo.com
  </code></pre>
  
  <p>I am using <code>Put</code> for example: <code>put 'table', '1001', 'cf:Email', 'def@gmail.com'</code> but it is giving me</p>
  
  <pre><code>ROW          COLUMN+CELL                                                                                    
  1001         column=cf:Email, timestamp=1487917201279, value=def@gmail.com                                                                                                
  1002         column=cf:Email, timestamp=1487917201286, value=rtf@yahoo.com
  </code></pre>
  
  <p>It is overriding the previous value. But HBase supposed to store multiple values for a particular column based on timestamp.
  Is there anyway that I can store both email addresses for particular UserID?</p>