<?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 submit configuration --deploy-mode has been overrided from cluster to client in singel node minikube in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390425#M247262</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78612"&gt;@RangaReddy&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Exception stack trace:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-10 at 2.12.31 PM (1).png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41169i2BF413ACE6F40E7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-10 at 2.12.31 PM (1).png" alt="Screenshot 2024-06-10 at 2.12.31 PM (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently we are running our spark jobs on yarn using same code and we never get his issue. Could it be caused by lack of memory.&lt;BR /&gt;&lt;BR /&gt;2. We didn't hard code the clientmode any where. I was working fine in yarn not with Kubernetes.&lt;/P&gt;&lt;P&gt;3. we have tried by providing the following but it didn't work. And we also downloaded these jars and placed in the jars folder. But no Luck.&lt;BR /&gt;--packages org.apache.hadoop:hadoop-aws:3.3.4 \&lt;BR /&gt;--packages com.amazonaws:aws-java-sdk-bundle:1.12.262 \&lt;BR /&gt;--packages org.apache.spark:spark-hadoop-cloud_2.12:3.5.1 \&lt;BR /&gt;--packages org.apache.hadoop:hadoop-client-api:3.3.4 \&lt;BR /&gt;--packages org.apache.hadoop:hadoop-client-runtime:3.3.4 \&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 03:20:32 GMT</pubDate>
    <dc:creator>nagababu</dc:creator>
    <dc:date>2024-07-16T03:20:32Z</dc:date>
    <item>
      <title>Spark submit configuration --deploy-mode has been overrided from cluster to client in singel node minikube</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/389320#M246952</link>
      <description>&lt;DIV class="flex-shrink-0 flex flex-col relative items-end"&gt;&lt;DIV&gt;&lt;DIV class="pt-0.5 juice:pt-0"&gt;&lt;DIV class="gizmo-bot-avatar flex h-6 w-6 items-center justify-center overflow-hidden rounded-full juice:h-8 juice:w-8"&gt;&lt;DIV class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;Hi ,&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;&lt;DIV class="flex-col gap-1 md:gap-3"&gt;&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;&lt;DIV class="min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2"&gt;&lt;DIV class="flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]"&gt;&lt;DIV class="markdown prose w-full break-words dark:prose-invert dark"&gt;&lt;P&gt;We are in the process of migrating from YARN to Kubernetes for its benefits and upgrading our Spark version from 2.4.4 to 3.5.1. As part of this transition, we have decided to use Scala version 2.12.18 and have upgraded Java from version 8 to 11. Currently, I am encountering three main issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I am experiencing an ArithmeticException due to long overflow. Could the switch from Java 8 to 11 be causing this issue?&lt;/LI&gt;&lt;LI&gt;The deployment mode specified as cluster in the spark-submit command is being overridden to client.&lt;/LI&gt;&lt;LI&gt;I am unable to use AWS Hadoop package classes in spark-submit, despite including the jars in the container.&lt;BR /&gt;&lt;BR /&gt;$SPARK_HOME/bin/spark-submit \&lt;BR /&gt;--master k8s://$K8S_SERVER \ \&lt;BR /&gt;--deploy-mode cluster \&lt;BR /&gt;--name testing \&lt;BR /&gt;--class dt.cerebrum.iotengine.sparkjobs.streaming \&lt;BR /&gt;--conf spark.kubernetes.file.upload.path=s3a://cb-spark/path \&lt;BR /&gt;--conf spark.hadoop.fs.s3a.endpoint="&lt;A href="http://xxxxxxx" target="_blank" rel="noopener"&gt;http://xxxxxxx&lt;/A&gt;.xxx" \&lt;BR /&gt;--conf spark.hadoop.fs.s3a.access.key="xxxx" \&lt;BR /&gt;--conf spark.hadoop.fs.s3a.secret.key="xxxxxxxxx" \&lt;BR /&gt;--conf spark.driver.extraJavaOptions=-Divy.cache.dir=/tmp -Divy.home=/tmp \&lt;BR /&gt;--conf spark.hadoop.fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem \&lt;BR /&gt;--conf spark.hadoop.fs.s3a.fast.upload=true \&lt;BR /&gt;--conf spark.hadoop.fs.s3a.path.style.access="true" \&lt;BR /&gt;s3a://cb-spark/iot_engine.jar&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any assistance you could provide on these issues would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 05:38:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/389320#M246952</guid>
      <dc:creator>nagababu</dc:creator>
      <dc:date>2024-06-18T05:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Spark submit configuration --deploy-mode has been overrided from cluster to client in singel node minikube</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390056#M247168</link>
      <description>&lt;P&gt;Apache Spark 3.5.1 will support Java &lt;STRONG&gt;8/11/17&lt;/STRONG&gt; and Scala Binary Version&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;2.12/2.13&lt;/STRONG&gt;. If you want to use Scala Binary Version 2.12 then recommended Scala version is &lt;STRONG&gt;2.12.18&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Coming to your questions:&lt;/P&gt;&lt;P&gt;1. With out providing the Exception stack trace details difficult to provide a solution.&lt;/P&gt;&lt;P&gt;2. Reason could be in your application code while creating spark session maybe you have hard coded client mode.&lt;/P&gt;&lt;P&gt;3. To use AWS, you need to download hadoop-aws jars files and pass it in spark submit command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;References:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;A href="https://spark.apache.org/docs/3.5.1/index.html" target="_blank"&gt;https://spark.apache.org/docs/3.5.1/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;A href="https://github.com/apache/spark/tree/v3.5.1" target="_blank"&gt;https://github.com/apache/spark/tree/v3.5.1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 06:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390056#M247168</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2024-07-10T06:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spark submit configuration --deploy-mode has been overrided from cluster to client in singel node minikube</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390155#M247216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111519"&gt;@saifikhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just by providing ArithmeticException, we cant provide any solution. This can be occurred due to your code or apache spark code. Check the exception stack-trace and fix the issue if issue is from your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 12:23:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390155#M247216</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2024-07-11T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Spark submit configuration --deploy-mode has been overrided from cluster to client in singel node minikube</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390425#M247262</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78612"&gt;@RangaReddy&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Exception stack trace:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-06-10 at 2.12.31 PM (1).png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41169i2BF413ACE6F40E7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-06-10 at 2.12.31 PM (1).png" alt="Screenshot 2024-06-10 at 2.12.31 PM (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Currently we are running our spark jobs on yarn using same code and we never get his issue. Could it be caused by lack of memory.&lt;BR /&gt;&lt;BR /&gt;2. We didn't hard code the clientmode any where. I was working fine in yarn not with Kubernetes.&lt;/P&gt;&lt;P&gt;3. we have tried by providing the following but it didn't work. And we also downloaded these jars and placed in the jars folder. But no Luck.&lt;BR /&gt;--packages org.apache.hadoop:hadoop-aws:3.3.4 \&lt;BR /&gt;--packages com.amazonaws:aws-java-sdk-bundle:1.12.262 \&lt;BR /&gt;--packages org.apache.spark:spark-hadoop-cloud_2.12:3.5.1 \&lt;BR /&gt;--packages org.apache.hadoop:hadoop-client-api:3.3.4 \&lt;BR /&gt;--packages org.apache.hadoop:hadoop-client-runtime:3.3.4 \&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 03:20:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Spark-submit-configuration-deploy-mode-has-been-overrided/m-p/390425#M247262</guid>
      <dc:creator>nagababu</dc:creator>
      <dc:date>2024-07-16T03:20:32Z</dc:date>
    </item>
  </channel>
</rss>

