<?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 No data shown in HBase after importtsv in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169979#M132285</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attaching a sample CSV which I am trying to load in HBase using importtsv. Command gets successfully executed however I can't see records in the table.&lt;/P&gt;&lt;P&gt;1) CSV file name warehouse.dat (comma separated). 1st column in the CSV is the unique key&lt;/P&gt;&lt;P&gt;2) HBase table : create 'warehouse','mycf'&lt;/P&gt;&lt;P&gt;3) importtsv command : hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=,  -Dimporttsv.columns="HBASE_ROW_KEY,mycf:w_warehouse_id,mycf:w_warehouse_name,mycf:w_warehouse_sq_ft,mycf:w_street_number,mycf:w_street_name,mycf:w_street_type,mycf:w_suite_number,mycf:w_city,mycf:w_county,mycf:w_state,mycf:w_zip,mycf:w_country,mycf:w_gmt_offset" warehouse /user/tcs_ge_user/warehouse/warehouse.csv&lt;/P&gt;&lt;P&gt;4) Scan table shows below output.&lt;/P&gt;&lt;P&gt;hbase(main):027:0&amp;gt; scan 'warehouse'
ROW                                       COLUMN+CELL
0 row(s) in 0.0210 seconds
&lt;/P&gt;&lt;P&gt;Need your URGENT help on this.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2016 18:23:44 GMT</pubDate>
    <dc:creator>rajdip_chaudhur</dc:creator>
    <dc:date>2016-12-23T18:23:44Z</dc:date>
    <item>
      <title>No data shown in HBase after importtsv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169979#M132285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attaching a sample CSV which I am trying to load in HBase using importtsv. Command gets successfully executed however I can't see records in the table.&lt;/P&gt;&lt;P&gt;1) CSV file name warehouse.dat (comma separated). 1st column in the CSV is the unique key&lt;/P&gt;&lt;P&gt;2) HBase table : create 'warehouse','mycf'&lt;/P&gt;&lt;P&gt;3) importtsv command : hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=,  -Dimporttsv.columns="HBASE_ROW_KEY,mycf:w_warehouse_id,mycf:w_warehouse_name,mycf:w_warehouse_sq_ft,mycf:w_street_number,mycf:w_street_name,mycf:w_street_type,mycf:w_suite_number,mycf:w_city,mycf:w_county,mycf:w_state,mycf:w_zip,mycf:w_country,mycf:w_gmt_offset" warehouse /user/tcs_ge_user/warehouse/warehouse.csv&lt;/P&gt;&lt;P&gt;4) Scan table shows below output.&lt;/P&gt;&lt;P&gt;hbase(main):027:0&amp;gt; scan 'warehouse'
ROW                                       COLUMN+CELL
0 row(s) in 0.0210 seconds
&lt;/P&gt;&lt;P&gt;Need your URGENT help on this.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 18:23:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169979#M132285</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2016-12-23T18:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: No data shown in HBase after importtsv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169980#M132286</link>
      <description>&lt;P&gt;sorry, CSV file name is warehouse.csv&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10709-warehouse.zip"&gt;warehouse.zip&lt;/A&gt;
&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 18:26:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169980#M132286</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2016-12-23T18:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: No data shown in HBase after importtsv</title>
      <link>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169981#M132287</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2559/rajdipchaudhuri.html" nodeid="2559"&gt;@rajdip chaudhuri
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used your warehouse.csv and your load command.  While it does &lt;STRONG&gt;appear&lt;/STRONG&gt; to finish successfully, this is what I see at the end:&lt;/P&gt;&lt;PRE&gt;    ImportTsv
        Bad Lines=5
    File Input Format Counters
        Bytes Read=590
    File Output Format Counters
        Bytes Written=0&lt;/PRE&gt;&lt;P&gt;As you can see there were 5 bad lines, which is the total line count in your file.  That means the command ran, but there was a problem with the data.&lt;/P&gt;&lt;P&gt;It took a little bit of effort to find the issue, but the problem was that your csv file has an extra &lt;STRONG&gt;, &lt;/STRONG&gt;at the end of the lines.&lt;/P&gt;&lt;P&gt;Here is an example from your file:&lt;/P&gt;&lt;PRE&gt;1,AAAAAAAABAAAAAAA,Conventional childr,977787,651,6th ,Parkway,Suite 470,Fairview,Williamson County,TN,35709,United States,-5,&lt;/PRE&gt;&lt;P&gt;It should look like this:&lt;/P&gt;&lt;PRE&gt;1,AAAAAAAABAAAAAAA,Conventional childr,977787,651,6th ,Parkway,Suite 470,Fairview,Williamson County,TN,35709,United States,-5
&lt;/PRE&gt;&lt;P&gt;Notice that I removed the trailing comma.  Now the data was loaded:&lt;/P&gt;&lt;PRE&gt;    ImportTsv
        Bad Lines=0
    File Input Format Counters
        Bytes Read=585
    File Output Format Counters
        Bytes Written=0&lt;/PRE&gt;&lt;P&gt;And here is the scan:&lt;/P&gt;&lt;PRE&gt;hbase(main):011:0&amp;gt; scan 'warehouse'
ROW                              COLUMN+CELL
 1                               column=mycf:w_city, timestamp=1482521720833, value=Fairview
 1                               column=mycf:w_country, timestamp=1482521720833, value=United States
 1                               column=mycf:w_county, timestamp=1482521720833, value=Williamson County
 1                               column=mycf:w_gmt_offset, timestamp=1482521720833, value=-5
 1                               column=mycf:w_state, timestamp=1482521720833, value=TN
 1                               column=mycf:w_street_name, timestamp=1482521720833, value=6th
 1                               column=mycf:w_street_number, timestamp=1482521720833, value=651
 1                               column=mycf:w_street_type, timestamp=1482521720833, value=Parkway
 1                               column=mycf:w_suite_number, timestamp=1482521720833, value=Suite 470
 1                               column=mycf:w_warehouse_id, timestamp=1482521720833, value=AAAAAAAABAAAAAAA
 1                               column=mycf:w_warehouse_name, timestamp=1482521720833, value=Conventional childr
 1                               column=mycf:w_warehouse_sq_ft, timestamp=1482521720833, value=977787
 1                               column=mycf:w_zip, timestamp=1482521720833, value=35709
 2                               column=mycf:w_city, timestamp=1482521720833, value=Fairview
 2                               column=mycf:w_country, timestamp=1482521720833, value=United States
 2                               column=mycf:w_county, timestamp=1482521720833, value=Williamson County
 2                               column=mycf:w_gmt_offset, timestamp=1482521720833, value=-5
 2                               column=mycf:w_state, timestamp=1482521720833, value=TN
 2                               column=mycf:w_street_name, timestamp=1482521720833, value=View First
 2                               column=mycf:w_street_number, timestamp=1482521720833, value=600
 2                               column=mycf:w_street_type, timestamp=1482521720833, value=Avenue
 2                               column=mycf:w_suite_number, timestamp=1482521720833, value=Suite P
 2                               column=mycf:w_warehouse_id, timestamp=1482521720833, value=AAAAAAAACAAAAAAA
 2                               column=mycf:w_warehouse_name, timestamp=1482521720833, value=Important issues liv
 2                               column=mycf:w_warehouse_sq_ft, timestamp=1482521720833, value=138504
 2                               column=mycf:w_zip, timestamp=1482521720833, value=35709
 3                               column=mycf:w_city, timestamp=1482521720833, value=Fairview
 3                               column=mycf:w_country, timestamp=1482521720833, value=United States
 3                               column=mycf:w_county, timestamp=1482521720833, value=Williamson County
 3                               column=mycf:w_gmt_offset, timestamp=1482521720833, value=-5
 3                               column=mycf:w_state, timestamp=1482521720833, value=TN
 3                               column=mycf:w_street_name, timestamp=1482521720833, value=Ash Laurel
 3                               column=mycf:w_street_number, timestamp=1482521720833, value=534
 3                               column=mycf:w_street_type, timestamp=1482521720833, value=Dr.
 3                               column=mycf:w_suite_number, timestamp=1482521720833, value=Suite 0
 3                               column=mycf:w_warehouse_id, timestamp=1482521720833, value=AAAAAAAADAAAAAAA
 3                               column=mycf:w_warehouse_name, timestamp=1482521720833, value=Doors canno
 3                               column=mycf:w_warehouse_sq_ft, timestamp=1482521720833, value=294242
 3                               column=mycf:w_zip, timestamp=1482521720833, value=35709
 4                               column=mycf:w_city, timestamp=1482521720833, value=Fairview
 4                               column=mycf:w_country, timestamp=1482521720833, value=United States
 4                               column=mycf:w_county, timestamp=1482521720833, value=Williamson County
 4                               column=mycf:w_gmt_offset, timestamp=1482521720833, value=-5
 4                               column=mycf:w_state, timestamp=1482521720833, value=TN
 4                               column=mycf:w_street_name, timestamp=1482521720833, value=Wilson Elm
 4                               column=mycf:w_street_number, timestamp=1482521720833, value=368
 4                               column=mycf:w_street_type, timestamp=1482521720833, value=Drive
 4                               column=mycf:w_suite_number, timestamp=1482521720833, value=Suite 80
 4                               column=mycf:w_warehouse_id, timestamp=1482521720833, value=AAAAAAAAEAAAAAAA
 4                               column=mycf:w_warehouse_name, timestamp=1482521720833, value=Bad cards must make.
 4                               column=mycf:w_warehouse_sq_ft, timestamp=1482521720833, value=621234
 4                               column=mycf:w_zip, timestamp=1482521720833, value=35709
 5                               column=mycf:w_city, timestamp=1482521720833, value=Fairview
 5                               column=mycf:w_country, timestamp=1482521720833, value=United States
 5                               column=mycf:w_county, timestamp=1482521720833, value=Williamson County
 5                               column=mycf:w_gmt_offset, timestamp=1482521720833, value=
 5                               column=mycf:w_state, timestamp=1482521720833, value=TN
 5                               column=mycf:w_street_name, timestamp=1482521720833, value=
 5                               column=mycf:w_street_number, timestamp=1482521720833, value=
 5                               column=mycf:w_street_type, timestamp=1482521720833, value=
 5                               column=mycf:w_suite_number, timestamp=1482521720833, value=
 5                               column=mycf:w_warehouse_id, timestamp=1482521720833, value=AAAAAAAAFAAAAAAA
 5                               column=mycf:w_warehouse_name, timestamp=1482521720833, value=
 5                               column=mycf:w_warehouse_sq_ft, timestamp=1482521720833, value=
 5                               column=mycf:w_zip, timestamp=1482521720833, value=35709
5 row(s) in 0.3110 seconds&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2016 03:08:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/No-data-shown-in-HBase-after-importtsv/m-p/169981#M132287</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-12-24T03:08:14Z</dc:date>
    </item>
  </channel>
</rss>

