<?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: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout: in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/368925#M240312</link>
    <description>&lt;P&gt;Its a kudu version issue where kudu client fails in demoting the leader as specified here:&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/KUDU-3349" target="_blank"&gt;[KUDU-3349] Kudu java client failed to demote leader and caused a lot of deleting rows timeout - ASF JIRA (apache.org)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's fixed since kudu version 1.16:&amp;nbsp;&lt;A href="https://github.com/apache/kudu/commit/90895ce76590f10730ad7aac3613b69d89ff5422" target="_blank"&gt;[java] KUDU-3349 Fix the failure to demote a leader · apache/kudu@90895ce · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try upgrading your kudu version and see if the problem still persists.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 17:14:25 GMT</pubDate>
    <dc:creator>EtmanY</dc:creator>
    <dc:date>2023-04-19T17:14:25Z</dc:date>
    <item>
      <title>HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/362124#M238717</link>
      <description>&lt;P&gt;I have an exception thrown when trying to write a data frame to kudu of size 524GB.&lt;/P&gt;&lt;P&gt;After calling this writing part:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df.write.format("org.apache.kudu.spark.kudu").option(
            "kudu.master",
            "master1:port,master2:port,master3:port",
).option("kudu.table", f"impala::{schema}.{table}").mode("append").save()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this exception is thrown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;java.lang.RuntimeException: PendingErrors overflowed. Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout: Batch{operations=1000, tablet=&amp;amp;quot;0bc1e2a497ab4306b6861f81dc678d9f&amp;amp;quot; [0x00000002, 0x00000003), ignoredErrors=[], rpc=KuduRpc(method=Write, tablet=0bc1e2a497ab4306b6861f81dc678d9f, attempt=26, TimeoutTracker(timeout=30000, elapsed=29585), Trace Summary(29585 ms): Sent(26), Received(26), Delayed(26), MasterRefresh(0), AuthRefresh(0), Truncated: false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here is the yarn.log for this spark job that throws the error&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A title="Spark error log" href="https://drive.google.com/file/d/1sc0pthOp12Jnarc8sbcBGR9-hrbglmga/view?usp=sharing" target="_blank" rel="noopener"&gt;Yarn log for a spark job&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Here is the error that is thrown when inserting data to kudu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="err spark.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36668i0367B73954B78883/image-size/large?v=v2&amp;amp;px=999" role="button" title="err spark.PNG" alt="err spark.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really appreciate any help you can provide.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:27:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/362124#M238717</guid>
      <dc:creator>as30</dc:creator>
      <dc:date>2023-01-24T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/363735#M239067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103085"&gt;@as30&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share if you found the solution to the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 07:57:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/363735#M239067</guid>
      <dc:creator>Mehmetbalkan</dc:creator>
      <dc:date>2023-02-14T07:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/368925#M240312</link>
      <description>&lt;P&gt;Its a kudu version issue where kudu client fails in demoting the leader as specified here:&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/KUDU-3349" target="_blank"&gt;[KUDU-3349] Kudu java client failed to demote leader and caused a lot of deleting rows timeout - ASF JIRA (apache.org)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's fixed since kudu version 1.16:&amp;nbsp;&lt;A href="https://github.com/apache/kudu/commit/90895ce76590f10730ad7aac3613b69d89ff5422" target="_blank"&gt;[java] KUDU-3349 Fix the failure to demote a leader · apache/kudu@90895ce · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try upgrading your kudu version and see if the problem still persists.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 17:14:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/368925#M240312</guid>
      <dc:creator>EtmanY</dc:creator>
      <dc:date>2023-04-19T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/369002#M240333</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103085"&gt;@as30&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could be data related issue here, can you please share DDL for table?&lt;/P&gt;&lt;P&gt;Also do you have partitions created before hand if you are trying to write data under partitioned table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 10:36:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/369002#M240333</guid>
      <dc:creator>AsimShaikh</dc:creator>
      <dc:date>2023-04-20T10:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/370188#M240642</link>
      <description>&lt;P&gt;the size of the Dataframe was huge and when partitioning with 'date' column, there were partitions with very large data and others not.&lt;/P&gt;&lt;P&gt;the partitions with very large data trying to write data in kudu which somehow gives this error&lt;/P&gt;&lt;P&gt;try to rebalance the partitions to have the same size of records or split into small ones to be written multiple times in kudu&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 20:08:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/370188#M240642</guid>
      <dc:creator>as30</dc:creator>
      <dc:date>2023-05-07T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/370189#M240643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97054"&gt;@AsimShaikh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing the same issue kudu version 1.11&lt;/P&gt;&lt;P&gt;Kindly find below ddl&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;create table Test ( my_mid bigint, my_ timest String, my_ uuid String, my__PROC_DATE timestamp, my_PROC_HOUR String, my_MONITORING_POINT String, my_SUBSCRIBER_TYPE String, my_EVENT_TYPE String, my_TRAFFIC_TYPE String,my_LOCATION_IDENTIFIER String, my_DESTINATION String, my_FILENAME String, my_APN String, my_ROAMING_OPERATOR String, my_START_DATE timestamp, my_SERVICE_FLAG String, my_START_HOUR String, my_CGI String, my_COUNTRY_FLAG String, my_SWITCH_NAME String, my_FLAG_2G_3G String, my_MINIMUM_TIME bigint, my_MAXIMUM_TIME bigint, my_CDR_COUNT bigint, my_EVENT_COUNT bigint, my_EVENT_DURATION bigint, my_DATA_VOLUME double, my_UPLINK_VOLUME double, my_DOWNLINK_VOLUME double, my_NODE_NAME String, my_A_NUMBER String, my_B_NUMBER String, my_IMSI String, my_IMEI String, my_FILENAME String, my_APN String, my_ACTUAL_VOLUME double, my_IMSI String, my_SESSION_ID String, my_IPC_SERVICE_FLAG String, my_RATING_GROUP String, my_CHARGING_CHARACT String, my_CAUSE_FOR_CLOSING String, PRIMARY KEY (my_mid, my_timest, my_uuid) ) PARTITION BY HASH(my_timest) PARTITIONS 4 STORED AS KUDU TBLPROPERTIES ( 'kudu.master_addresses' = "XXXXXX" );
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 May 2023 20:57:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/370189#M240643</guid>
      <dc:creator>memad</dc:creator>
      <dc:date>2023-05-07T20:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: HELP PLEASE!!!, Failed to write at least 1000 rows to Kudu; Sample errors: Timed out: cannot complete before timeout:</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/370190#M240644</link>
      <description>&lt;P&gt;As per the OP's response if the data isn't well distributed along the partitioned column you will end up having some very large partitions while others will be very small.&lt;/P&gt;&lt;P&gt;Writing into a single large partition can lead Kudu to fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your partitioned column is skewed aim for redesigning your table partitioning.&lt;BR /&gt;&lt;BR /&gt;Final note: As per Kudu's documentation (&lt;A href="https://kudu.apache.org/docs/schema_design.html#hash-partitioning" target="_blank"&gt;Apache Kudu - Apache Kudu Schema Design&lt;/A&gt;)&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Typically the primary key columns are used as the columns to hash, but as with &lt;BR /&gt;range partitioning, any subset of the primary key columns can be used.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 21:27:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HELP-PLEASE-Failed-to-write-at-least-1000-rows-to-Kudu/m-p/370190#M240644</guid>
      <dc:creator>EtmanY</dc:creator>
      <dc:date>2023-05-07T21:27:50Z</dc:date>
    </item>
  </channel>
</rss>

