<?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: Tez error when trying to delete from HIVE table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-when-trying-to-delete-from-HIVE-table/m-p/111115#M25887</link>
    <description>&lt;P&gt;I understand &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions&lt;/A&gt; that Hive ACID (which is necessary for DELETE commands) only works on bucketed ORC tables.&lt;/P&gt;&lt;P&gt;I would expect that even the INSERT wouldn't work when you use 'transactional'='true' without being compliant with the mentioned prerequsites&lt;/P&gt;&lt;P&gt;If you want to have SQL on HBase I would go for Apache Phoenix (https://phoenix.apache.org/)&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2016 22:27:43 GMT</pubDate>
    <dc:creator>bwalter1</dc:creator>
    <dc:date>2016-04-22T22:27:43Z</dc:date>
    <item>
      <title>Tez error when trying to delete from HIVE table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-when-trying-to-delete-from-HIVE-table/m-p/111114#M25886</link>
      <description>&lt;P&gt;I'm currently practicing some simple HIVE tasks, with my current task to delete from a HIVE table over an existing HBase table. The HIVE table works fine, and was defined as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE EXTERNAL TABLE Test(rowkey STRING, c1 STRING, c2 STRING, c3 STRING)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ('hbase.columns.mapping' = ':key,f1:c1,f1:c2,f1:c3')
TBLPROPERTIES ('hbase.table.name' = 'Test', 'transactional' = 'true');
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reading from this table works fine and is fairly trivial. However, I get an error when I try to delete from this table. My HiveQL for deleting is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE FROM Test WHERE rowkey = "key1";
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key &lt;CODE&gt;key1&lt;/CODE&gt; does exist in the table, and I can retrieve it using HBase shell or HIVE. I won't post the full stack trace since it is very long. However, some excerpts:&lt;/P&gt;&lt;P&gt;ERROR : Vertex failed, vertexName=Reducer 2, vertexId=vertex_1461213316053_0007_1_01, diagnostics=[Task failed, taskId=task_1461213316053_0007_1_01_000000, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row (tag=0) {"key":{"reducesinkkey0":null},"value":null}&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row (tag=0) {"key":{"reducesinkkey0":null},"value":null}&lt;/P&gt;&lt;P&gt;Caused by: java.io.IOException: HBase row key cannot be NULL&lt;/P&gt;&lt;P&gt;So for some reason it evaluates the row key as NULL, although no queries other than delete ever have it evaluating to NULL. Given this, I tried replacing &lt;CODE&gt;=&lt;/CODE&gt; with &lt;CODE&gt;&amp;lt;=&amp;gt;&lt;/CODE&gt; which handles NULLs in a more friendly manner. However, I got the same result. This may be a Tez error, it may be HIVE or it may be HBase. I suspect HIVE is sending NULLs through to HBase, but I'm not certain.&lt;/P&gt;&lt;P&gt;Does anybody have any idea how I can remedy this?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 13:06:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-when-trying-to-delete-from-HIVE-table/m-p/111114#M25886</guid>
      <dc:creator>Mark_Heydenrych</dc:creator>
      <dc:date>2016-04-22T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tez error when trying to delete from HIVE table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-when-trying-to-delete-from-HIVE-table/m-p/111115#M25887</link>
      <description>&lt;P&gt;I understand &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions&lt;/A&gt; that Hive ACID (which is necessary for DELETE commands) only works on bucketed ORC tables.&lt;/P&gt;&lt;P&gt;I would expect that even the INSERT wouldn't work when you use 'transactional'='true' without being compliant with the mentioned prerequsites&lt;/P&gt;&lt;P&gt;If you want to have SQL on HBase I would go for Apache Phoenix (https://phoenix.apache.org/)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 22:27:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Tez-error-when-trying-to-delete-from-HIVE-table/m-p/111115#M25887</guid>
      <dc:creator>bwalter1</dc:creator>
      <dc:date>2016-04-22T22:27:43Z</dc:date>
    </item>
  </channel>
</rss>

