<?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: spark sql to Kudu in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322557#M228854</link>
    <description>&lt;P&gt;Hi Roshan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for raise question in Cloudera community !&lt;/P&gt;&lt;P&gt;Firstly you need to check what is the current kudu version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Notes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Use the kudu-spark_2.10 artifact if using Spark with Scala 2.10. Note that Spark 1 is no longer supported in Kudu starting from version 1.6.0. So in order to use Spark 1 integrated with Kudu, version 1.5.0 is the latest to go to.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And please refer to below articles for some code examples.&lt;/P&gt;&lt;P&gt;[1] CDP 7.2.10 documents:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/kudu-development/topics/kudu-integration-with-spark.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/kudu-development/topics/kudu-integration-with-spark.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[2] Kudu official site:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kudu.apache.org/docs/developing.html#_kudu_integration_with_spark" target="_blank"&gt;https://kudu.apache.org/docs/developing.html#_kudu_integration_with_spark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps please accept the solution and click thumbs up.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Aug 2021 08:46:35 GMT</pubDate>
    <dc:creator>willx</dc:creator>
    <dc:date>2021-08-14T08:46:35Z</dc:date>
    <item>
      <title>spark sql to Kudu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322505#M228821</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following file to load on Kudu.&lt;/P&gt;&lt;P&gt;1829;BN=0;UNIT=VOLUME_ALL;IN=0;TC=0;TCC=0;CT=;FU=1000001;CU=54274;FB=61701;FL=ugw9811_3828500385_360_27153&lt;BR /&gt;0=5126742111750858;U=23059268534;SI=6;SG=1;SR=7;SN=BROWSING;SC=BROWSING;BS=60342256;BR=2581143;TU=2021-04-27 14:02:47;TF=2021-04-27 00:00:00;TA=2021-04-27 14:02:47;TB=2021-04-27 00:00:00;TE=2021-04-27 14:02:47;TS=1619517767;D=16292;R=151;E=0;UDR_cu=0;UDR_fb=BROWSING;DCM=0;UP=Prepaid;ST=BROWSING;MSISDN=23059268534;APN=orange;SGSN=196.192.13.113;GGSN=196.192.13.113;IMSI=617010014925066;BU1=23292;BN=0;UNIT=VOLUME_ALL;IN=0;TC=0;TCC=62923399;CT=;FU=1000000;CU=3586;FB=61701;FL=ugw9811_3828490275_312_8799&lt;BR /&gt;0=5126752111750858;U=23059268534;SI=6;SG=1;SR=7;SN=BROWSING;SC=BROWSING;BS=0;BR=0;TU=2021-04-27 14:02:47;TF=2021-04-27 00:00:00;TA=2021-04-27 14:02:47;TB=2021-04-27 00:00:00;TE=2021-04-27 14:02:47;TS=1619517767;D=16292;R=151;E=0;UDR_cu=0;UDR_fb=BROWSING;DCM=0;UP=Prepaid;ST=BROWSING;MSISDN=23059268534;APN=orange;SGSN=196.192.13.113;GGSN=196.192.13.113;IMSI=617010014925066;BU1=21829;BN=0;UNIT=VOLUME_ALL;IN=0;TC=0;TCC=0;CT=;FU=1000001;CU=3586;FB=61701;FL=ugw9811_3828490275_312_8799&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I proceed using Spark SQL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table structure on Kudu:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;CREATE&amp;nbsp;EXTERNAL&amp;nbsp;TABLE&amp;nbsp;cdr.mobile_datadbs&amp;nbsp;( &amp;nbsp;&amp;nbsp;id&amp;nbsp;BIGINT&amp;nbsp;NOT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;msisdn&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;serviceid&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;servicegroup&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;servicerev&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;servicename&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;serviceclass&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;downlink&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;uplink&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;storedtime&amp;nbsp;TIMESTAMP&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;firstaccesstime&amp;nbsp;TIMESTAMP&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;lastaccesstime&amp;nbsp;TIMESTAMP&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;servicebegintime&amp;nbsp;TIMESTAMP&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;sessionendtime&amp;nbsp;TIMESTAMP&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;cdrcreatedtime&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;duration&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;hitsperreq&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;errors1&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;udrcu&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;udrfb&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;status1&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;userprofile&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;servicetype&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;subsmsisdn&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;apn&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;sgsnaddress&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;ggsnaddress&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;imsi&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;bonusunit&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;bn&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;unit&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;instatus&amp;nbsp;INT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;totalcost&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;totalcharge&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;terminationcause&amp;nbsp;BIGINT&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;firstrequestedurl&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;cellidinfo&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;idpname&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;failureslist&amp;nbsp;STRING&amp;nbsp;NULL&amp;nbsp;ENCODING&amp;nbsp;AUTO_ENCODING&amp;nbsp;COMPRESSION&amp;nbsp;DEFAULT_COMPRESSION, &amp;nbsp;&amp;nbsp;PRIMARY&amp;nbsp;KEY&amp;nbsp;(id) ) PARTITION&amp;nbsp;BY&amp;nbsp;HASH&amp;nbsp;(id)&amp;nbsp;PARTITIONS&amp;nbsp;16 STORED&amp;nbsp;AS&amp;nbsp;KUDU TBLPROPERTIES&amp;nbsp;('external.table.purge'='TRUE',&amp;nbsp;'kudu.master_addresses'='rb-hadoop-03.mtg.local,rb-hadoop-04.mtg.local,rb-hadoop-05.mtg.local')&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="hue-scrollbar-x-rail"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="hue-scrollbar-x-rail"&gt;Thanks,&lt;/DIV&gt;&lt;DIV class="hue-scrollbar-x-rail"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="hue-scrollbar-x-rail"&gt;Roshan&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 05:45:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322505#M228821</guid>
      <dc:creator>roshanbi</dc:creator>
      <dc:date>2021-08-13T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql to Kudu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322557#M228854</link>
      <description>&lt;P&gt;Hi Roshan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for raise question in Cloudera community !&lt;/P&gt;&lt;P&gt;Firstly you need to check what is the current kudu version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Notes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Use the kudu-spark_2.10 artifact if using Spark with Scala 2.10. Note that Spark 1 is no longer supported in Kudu starting from version 1.6.0. So in order to use Spark 1 integrated with Kudu, version 1.5.0 is the latest to go to.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And please refer to below articles for some code examples.&lt;/P&gt;&lt;P&gt;[1] CDP 7.2.10 documents:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/runtime/7.2.10/kudu-development/topics/kudu-integration-with-spark.html" target="_blank"&gt;https://docs.cloudera.com/runtime/7.2.10/kudu-development/topics/kudu-integration-with-spark.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[2] Kudu official site:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kudu.apache.org/docs/developing.html#_kudu_integration_with_spark" target="_blank"&gt;https://kudu.apache.org/docs/developing.html#_kudu_integration_with_spark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps please accept the solution and click thumbs up.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 08:46:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322557#M228854</guid>
      <dc:creator>willx</dc:creator>
      <dc:date>2021-08-14T08:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: spark sql to Kudu</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322835#M228940</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/81707"&gt;@roshanbi&lt;/a&gt;m,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:55:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-sql-to-Kudu/m-p/322835#M228940</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-08-19T11:55:11Z</dc:date>
    </item>
  </channel>
</rss>

