<?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 Phoenix Bulk Load on Ctrl-A delimiter (error code 143) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154852#M24356</link>
    <description>&lt;P&gt;Getting the following error when trying to bulk load HDFS data into Phoenix.  The data is separated by Cntl-A delimiter.&lt;/P&gt;&lt;P&gt;Command used is as follows:&lt;/P&gt;&lt;P&gt;hadoop jar /usr/hdp/2.3.4.0-3485/phoenix/phoenix-4.4.0.2.3.4.0-3485-client.jar 
org.apache.phoenix.mapreduce.CsvBulkLoadTool --table INTM.TEST_DATA --input 
/data/test_data/20160329145829/HDFS_TEST_DATA.csv --zookeeper 
localhost:2181:/hbase&lt;/P&gt;&lt;P&gt;Error Message=&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;&lt;P&gt;16/04/04 08:00:46 INFO mapreduce.Job: Task Id : attempt_1459451088217_0193_m_000008_0, Status : FAILED
Error: java.lang.RuntimeException: java.lang.RuntimeException: Error on record, CSV record does not have enough values (has 1, but needs 14), record =[2808976522139491A0301939984852009-08-22 08:49:46.961000UMEMCVSNRAIL2009-08-22 08:49:46.961000UMEMCVSNRAILNative\etlload2016-03-29 14:58:31.763751]
        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:1657)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
Caused by: java.lang.RuntimeException: Error on record, CSV record does not have enough values (has 1, but needs 14), record =[2808976522139491A0301939984852009-08-22 08:49:46.961000UMEMCVSNRAIL2009-08-22 08:49:46.961000UMEMCVSNRAILNative\etlload2016-03-29 14:58:31.763751]
        at org.apache.phoenix.mapreduce.CsvToKeyValueMapper$MapperUpsertListener.errorOnRecord(CsvToKeyValueMapper.java:261)
        at org.apache.phoenix.util.csv.CsvUpsertExecutor.execute(CsvUpsertExecutor.java:168)
        at org.apache.phoenix.util.csv.CsvUpsertExecutor.execute(CsvUpsertExecutor.java:136)
        at org.apache.phoenix.mapreduce.CsvToKeyValueMapper.map(CsvToKeyValueMapper.java:157)&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2016 19:32:37 GMT</pubDate>
    <dc:creator>ramesh_veerappa</dc:creator>
    <dc:date>2016-04-04T19:32:37Z</dc:date>
    <item>
      <title>Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154852#M24356</link>
      <description>&lt;P&gt;Getting the following error when trying to bulk load HDFS data into Phoenix.  The data is separated by Cntl-A delimiter.&lt;/P&gt;&lt;P&gt;Command used is as follows:&lt;/P&gt;&lt;P&gt;hadoop jar /usr/hdp/2.3.4.0-3485/phoenix/phoenix-4.4.0.2.3.4.0-3485-client.jar 
org.apache.phoenix.mapreduce.CsvBulkLoadTool --table INTM.TEST_DATA --input 
/data/test_data/20160329145829/HDFS_TEST_DATA.csv --zookeeper 
localhost:2181:/hbase&lt;/P&gt;&lt;P&gt;Error Message=&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;&lt;P&gt;16/04/04 08:00:46 INFO mapreduce.Job: Task Id : attempt_1459451088217_0193_m_000008_0, Status : FAILED
Error: java.lang.RuntimeException: java.lang.RuntimeException: Error on record, CSV record does not have enough values (has 1, but needs 14), record =[2808976522139491A0301939984852009-08-22 08:49:46.961000UMEMCVSNRAIL2009-08-22 08:49:46.961000UMEMCVSNRAILNative\etlload2016-03-29 14:58:31.763751]
        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:1657)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
Caused by: java.lang.RuntimeException: Error on record, CSV record does not have enough values (has 1, but needs 14), record =[2808976522139491A0301939984852009-08-22 08:49:46.961000UMEMCVSNRAIL2009-08-22 08:49:46.961000UMEMCVSNRAILNative\etlload2016-03-29 14:58:31.763751]
        at org.apache.phoenix.mapreduce.CsvToKeyValueMapper$MapperUpsertListener.errorOnRecord(CsvToKeyValueMapper.java:261)
        at org.apache.phoenix.util.csv.CsvUpsertExecutor.execute(CsvUpsertExecutor.java:168)
        at org.apache.phoenix.util.csv.CsvUpsertExecutor.execute(CsvUpsertExecutor.java:136)
        at org.apache.phoenix.mapreduce.CsvToKeyValueMapper.map(CsvToKeyValueMapper.java:157)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:32:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154852#M24356</guid>
      <dc:creator>ramesh_veerappa</dc:creator>
      <dc:date>2016-04-04T19:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154853#M24357</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2803/rameshveerappan.html" nodeid="2803"&gt;@Ram Veer&lt;/A&gt;, CsvBulkLoadTool already supports custom delimiter &lt;A href="https://phoenix.apache.org/bulk_dataload.html"&gt;using the '-d' option&lt;/A&gt;. To set Ctrl-A add this at the end of your command:&lt;/P&gt;&lt;P&gt;-d '^v^a'   ... inside quotes click Ctrl-v followed by Ctrl-a, as the result '^A' will appear&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 21:01:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154853#M24357</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-05T21:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154854#M24358</link>
      <description>&lt;P&gt;Thank you for your response.  I am able to parse it based on your suggestion.  However, the loader is not able to load into Phoenix table.&lt;/P&gt;&lt;P&gt;16/04/05 10:16:15 INFO mapreduce.CsvBulkLoadTool: Loading HFiles from /tmp/c0fdbfa0-383d-4f7a-bb0a-d41c58f3742b/INTM.EQUIP_KEY
16/04/05 10:16:15 WARN mapreduce.LoadIncrementalHFiles: managed connection cannot be used for bulkload. Creating unmanaged connection.
16/04/05 10:16:15 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x30022bf5 connecting to ZooKeeper ensemble=ucschdpdev01.railinc.com:2181
16/04/05 10:16:15 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=ucschdpdev01.railinc.com:2181 sessionTimeout=90000 watcher=hconnection-0x30022bf50x0, quorum=ucschdpdev01.railinc.com:2181, baseZNode=/hbase
16/04/05 10:16:15 INFO zookeeper.ClientCnxn: Opening socket connection to server ucschdpdev01.railinc.com/10.160.230.141:2181. Will not attempt to authenticate using SASL (unknown error)
16/04/05 10:16:15 INFO zookeeper.ClientCnxn: Socket connection established to ucschdpdev01.railinc.com/10.160.230.141:2181, initiating session
16/04/05 10:16:15 INFO zookeeper.ClientCnxn: Session establishment complete on server ucschdpdev01.railinc.com/10.160.230.141:2181, sessionid = 0x153c6f93c7f1f5a, negotiated timeout = 40000
16/04/05 10:16:15 WARN mapreduce.LoadIncrementalHFiles: Skipping non-directory hdfs://ucschdpdev01.railinc.com:8020/tmp/c0fdbfa0-383d-4f7a-bb0a-d41c58f3742b/INTM.EQUIP_KEY/_SUCCESS
16/04/05 10:16:15 INFO hfile.CacheConfig: CacheConfig:disabled
16/04/05 10:16:16 INFO mapreduce.LoadIncrementalHFiles: Trying to load hfile=hdfs://ucschdpdev01.railinc.com:8020/tmp/c0fdbfa0-383d-4f7a-bb0a-d41c58f3742b/INTM.EQUIP_KEY/0/344df66eb2644474b3ac5da7ecbe767c first=1 last=999999


16/04/05 10:27:29 INFO client.RpcRetryingCaller: Call exception, tries=10, retries=35, started=673701 ms ago, cancelled=false, msg=row '' on table 'INTM.EQUIP_KEY' at region=INTM.EQUIP_KEY,,1459834472681.60a4b8f4fad454e419242d08a51660ad., hostname=ucschdpdev03.railinc.com,16020,1459451121171, seqNum=2&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 21:26:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154854#M24358</guid>
      <dc:creator>ramesh_veerappa</dc:creator>
      <dc:date>2016-04-05T21:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154855#M24359</link>
      <description>&lt;P&gt;It failed after 11 minutes, so there is maybe a permission issue on HFiles (see the details on the Tool page). Can you try to add this to your command, and retry:&lt;/P&gt;&lt;PRE&gt;-Dfs.permissions.umask-mode=000
&lt;/PRE&gt;&lt;P&gt;or if possible run the command as hbase user.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 05:53:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154855#M24359</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-06T05:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154856#M24360</link>
      <description>&lt;P&gt;It was a permission issue in Ranger.  The issue was been resolved.  Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 07:55:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154856#M24360</guid>
      <dc:creator>ramesh_veerappa</dc:creator>
      <dc:date>2016-04-13T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154857#M24361</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2803/rameshveerappan.html" nodeid="2803"&gt;@Ram Veer&lt;/A&gt;, great news! Please consider to accept/up-vote my answer above. Tnx!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 08:20:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154857#M24361</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-13T08:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Bulk Load on Ctrl-A delimiter (error code 143)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154858#M24362</link>
      <description>&lt;P&gt;Well, I thought my answer of Apr. 5 ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 08:50:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Bulk-Load-on-Ctrl-A-delimiter-error-code-143/m-p/154858#M24362</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-13T08:50:05Z</dc:date>
    </item>
  </channel>
</rss>

