<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HBASE only storing 3 versions in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HBASE-only-storing-3-versions/m-p/224811#M186674</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;P&gt;Unfortunately, i'm not able to reproduce the scenario in my end.&lt;BR /&gt;i have created countries table in hbase with &lt;STRONG&gt;40&lt;/STRONG&gt; versions&lt;/P&gt;&lt;P&gt;Then ran sqoop import to this table with 1 mapper&lt;/P&gt;&lt;PRE&gt;sqoop import --connect '**' --username root--password 'root' --query "SELECT  '1' as CountryID,CountryCode from countries where \$CONDITIONS" -m 1   --hbase-table countries --column-family c --hbase-row-key CountryID&lt;/PRE&gt;&lt;P&gt;i'm assigning value '1' for each countryid and i'm having 241 records in counties table once the import got finished even though i'm having table with 40 versions hbase only showing the last record(that means &lt;STRONG&gt;sqoop import to hbase table&lt;/STRONG&gt; will not store all the versions but from &lt;STRONG&gt;hbase shell it will store all the versions&lt;/STRONG&gt;)&lt;/P&gt;&lt;PRE&gt;hbase&amp;gt; scan 'countries',{ VERSIONS =&amp;gt;40}
ROW                                             COLUMN+CELL
 1                                              column=c:CountryCode, timestamp=1525221297408, value=ZW&lt;/PRE&gt;&lt;P&gt;I ran the same sqoop import again to this table then i'm able to see 2 versions of as shown below.&lt;/P&gt;&lt;PRE&gt;hbase&amp;gt;scan 'countries',{ VERSIONS =&amp;gt;40}
ROW                                             COLUMN+CELL
 1                                              column=c:CountryCode, timestamp=1525221408212, value=ZW
 1                                              column=c:CountryCode, timestamp=1525221297408, value=ZW&lt;/PRE&gt;&lt;P&gt;for third run i'm able to see 3 versions&lt;/P&gt;&lt;PRE&gt;hbase&amp;gt; scan 'countries',{ VERSIONS =&amp;gt;40}
ROW                                             COLUMN+CELL
 1                                              column=c:CountryCode, timestamp=1525221470733, value=ZW
 1                                              column=c:CountryCode, timestamp=1525221408212, value=ZW
 1                                              column=c:CountryCode, timestamp=1525221297408, value=ZW&lt;/PRE&gt;&lt;P&gt;if i run same sqoop import for 40 times then i'm having 40 versions with same value as zw in hbase table.&lt;BR /&gt;My hbase version is &lt;STRONG&gt;1.1.2.2.5.3.0-37 and &lt;/STRONG&gt;sqoop&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;1.4.6.2.5.3.0-37&lt;/STRONG&gt;&lt;B&gt;, &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;For your case even for first import you are able to see 3 versions(i think because of -m 4 argument is doing 3 versions instead of 1).&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;hbase&amp;gt; disable 'PUR_ACCT_PHX1'&lt;/PRE&gt;&lt;PRE&gt;hbase&amp;gt; drop 'PUR_ACCT_PHX1'&lt;/PRE&gt;&lt;PRE&gt;hbase&amp;gt; create 'PUR_ACCT_PHX1',{NAME =&amp;gt;'cf1', VERSIONS =&amp;gt;40}&lt;/PRE&gt;&lt;P&gt;run sqoop import with 1 mapper&lt;/P&gt;&lt;PRE&gt;sqoop import--connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))"--username PATRON --table PATRON.TAB4 --hbase-table PUR_ACCT_PHX1 --column-family cf1 --hbase-row-key "ACCT_NUM"-m 1&lt;/PRE&gt;&lt;PRE&gt;hbase(main):001:0&amp;gt; scan 'PUR_ACCT_PHX1',{VERSIONS=&amp;gt;40}&lt;/PRE&gt;&lt;P&gt;I think with this scan command you have to see only 1 version instead of 3 versions.&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 08:10:41 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-05-02T08:10:41Z</dc:date>
  </channel>
</rss>

