<?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: Using Phoenix CsvBulkUploadTool with columns that contain &amp;quot;,&amp;quot; characters in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Using-Phoenix-CsvBulkUploadTool-with-columns-that-contain/m-p/120237#M83008</link>
    <description>&lt;P&gt;I think I figured this out.&lt;/P&gt;&lt;P&gt;The issue isn't the comma - it was my null character.&lt;/P&gt;&lt;P&gt;It would be nice if the error logging here was just a bit clearer.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2016 03:33:30 GMT</pubDate>
    <dc:creator>zack_riesland</dc:creator>
    <dc:date>2016-10-08T03:33:30Z</dc:date>
    <item>
      <title>Using Phoenix CsvBulkUploadTool with columns that contain "," characters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-Phoenix-CsvBulkUploadTool-with-columns-that-contain/m-p/120236#M83007</link>
      <description>&lt;P&gt;I am trying to use the CsvBulkUploadTool to get data from
Hive to Phoenix/HBase.&lt;/P&gt;&lt;P&gt;As I typically do, I created a Hive table w/ the copy of the
data that I care about, and with the properties: &lt;/P&gt;&lt;P&gt;“row format delimited fields terminated by ‘|’ null defined
as ‘null’ stored as textfile location ‘my location’ “&lt;/P&gt;&lt;P&gt;This correctly outputs a series of CSV files in HDFS with
rows that look like this:&lt;/P&gt;&lt;P&gt;96|9|116|183|[-6, -81, 96, 43, 108, 12, 0, 116, 30, 88, -29,
87, -73, -106, 0, 9, 27, 1, 71, 3, 0, 2, 13, 118, 119]|13|Some_String|3180|1474517022732|0|150&lt;/P&gt;&lt;P&gt;The 5&lt;SUP&gt;th&lt;/SUP&gt; column needs to be stored as a string. &lt;/P&gt;&lt;P&gt;I can manually enter this into my HBase table:&lt;/P&gt;&lt;P&gt;upsert into my_table values (96,9,116,183,’[-6, -81, 96, 43,
108, 12, 0, 116, 30, 88, -29, 87, -73, -106, 0, 9, 27, 1, 71, 3, 0, 2, 13, 118,
119]’,13,’Some_String’,3180,1474517022732,0,150)&lt;/P&gt;&lt;P&gt;However, the CsvBulkUploadTool fails.&lt;/P&gt;&lt;P&gt;I’m passing the “ -d '|' “ parameter (and I’ve also tried
with double quotes), but I still get errors like the one below.&lt;/P&gt;&lt;P&gt;Can anyone tell me how to accomplish my objective here?&lt;/P&gt;&lt;P&gt;16/10/07 14:33:16 INFO mapreduce.Job: Task Id :
attempt_1475193681552_0605_m_000376_0, Status : FAILED&lt;/P&gt;&lt;PRE&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException:
Error on record, java.sql.SQLException: ERROR 201 (22000): Illegal data.,
record =[96|9|116|183|[-6, -81, 96, 43, 108, 12, 0, 116, 30, 88, -29, 87, -73,
-106, 0, 9, 27, 1, 71, 3, 0, 2, 13, 118,
119]|13|Some_String|3180|1474517022732|0|150]
 
at
org.apache.phoenix.mapreduce.CsvToKeyValueMapper.map(CsvToKeyValueMapper.java:176)
 
at
org.apache.phoenix.mapreduce.CsvToKeyValueMapper.map(CsvToKeyValueMapper.java:67)
 
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
 
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
 
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
 
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
 
at java.security.AccessController.doPrivileged(Native Method)
 
at javax.security.auth.Subject.doAs(Subject.java:415)
 
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1709)
 
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Oct 2016 01:59:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-Phoenix-CsvBulkUploadTool-with-columns-that-contain/m-p/120236#M83007</guid>
      <dc:creator>zack_riesland</dc:creator>
      <dc:date>2016-10-08T01:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Phoenix CsvBulkUploadTool with columns that contain "," characters</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Using-Phoenix-CsvBulkUploadTool-with-columns-that-contain/m-p/120237#M83008</link>
      <description>&lt;P&gt;I think I figured this out.&lt;/P&gt;&lt;P&gt;The issue isn't the comma - it was my null character.&lt;/P&gt;&lt;P&gt;It would be nice if the error logging here was just a bit clearer.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 03:33:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Using-Phoenix-CsvBulkUploadTool-with-columns-that-contain/m-p/120237#M83008</guid>
      <dc:creator>zack_riesland</dc:creator>
      <dc:date>2016-10-08T03:33:30Z</dc:date>
    </item>
  </channel>
</rss>

