<?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: Python script with docker on yarn results in javax.security.auth.login.LoginException in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354984#M237038</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100486"&gt;@fares_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the delayed update. I was away.&lt;/P&gt;&lt;P&gt;Q. how was the Docker Mount issue resolved? Please share the context of the steps taken.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;I solved the mount issue, but that took me back to the same main issue which mentioned in the main post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you still observing invalid Docker mount error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you get to try/test the steps mentioned in our Blog?[0]&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&lt;A href="https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/" target="_blank"&gt;https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the above blog, Check out the Demo I section, "&lt;SPAN&gt;Running PySpark on the gateway machine with Dockerized Executors in a Kerberized cluster.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep us posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 09:44:58 GMT</pubDate>
    <dc:creator>vaishaakb</dc:creator>
    <dc:date>2022-10-17T09:44:58Z</dc:date>
    <item>
      <title>Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/352608#M236557</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a python script in a dockerized enviornment using spark and yarn, the cluster is kerberised and I provided the needed realm and keytab for the spark-submit command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still face this issue where java only sees user null for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I tried :&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;&lt;LI-CODE lang="markup"&gt;spark-submit \
--master yarn \
--deploy-mode cluster \
--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_TYPE=docker \
--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=MyImage \
--conf spark.yarn.appMasterEnv.YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS="/etc/passwd:/etc/passwd:ro,/etc/hadoop:/etc/hadoop:ro,/opt/cloudera/parcels/:/opt/cloudera/parcels/:ro,/etc/krb5.conf:/etc/krb5.conf:ro" \
--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_TYPE=docker \
--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=MyImage \
--conf spark.executorEnv.YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS="/etc/passwd:/etc/passwd:ro,/etc/hadoop:/etc/hadoop:ro,/opt/cloudera/parcels/:/opt/cloudera/parcels/:ro,/etc/krb5.conf:/etc/krb5.conf:ro" \
--principal MyPrincipal\
--keytab MyKeytab \
Script.py&lt;/LI-CODE&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;&lt;P&gt;The error resulted from running this :&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;&lt;LI-CODE lang="markup"&gt;[2022-09-19 16:09:06.612]Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
e Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
        at org.apache.hadoop.security.UserGroupInformation$HadoopLoginContext.login(UserGroupInformation.java:2094)
        at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:2005)
        at org.apache.hadoop.security.UserGroupInformation.createLoginUser(UserGroupInformation.java:743)
        at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:693)
        at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:604)
        at org.apache.spark.deploy.SparkHadoopUtil.createSparkUser(SparkHadoopUtil.scala:74)
        at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:810)
        at org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala)

        at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:2015)
        at org.apache.hadoop.security.UserGroupInformation.createLoginUser(UserGroupInformation.java:743)
        at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:693)
        at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:604)
        at org.apache.spark.deploy.SparkHadoopUtil.createSparkUser(SparkHadoopUtil.scala:74)
        at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:810)
        at org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala)
Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name
        at com.sun.security.auth.UnixPrincipal.&amp;lt;init&amp;gt;(UnixPrincipal.java:71)
        at com.sun.security.auth.module.UnixLoginModule.login(UnixLoginModule.java:133)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
        at org.apache.hadoop.security.UserGroupInformation$HadoopLoginContext.login(UserGroupInformation.java:2094)
        at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:2005)
        at org.apache.hadoop.security.UserGroupInformation.createLoginUser(UserGroupInformation.java:743)
        at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:693)
        at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:604)
        at org.apache.spark.deploy.SparkHadoopUtil.createSparkUser(SparkHadoopUtil.scala:74)
        at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:810)
        at org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala)

        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:856)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
        at org.apache.hadoop.security.UserGroupInformation$HadoopLoginContext.login(UserGroupInformation.java:2094)
        at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:2005)
        ... 6 more&lt;/LI-CODE&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;&lt;P&gt;I tried everything, made sure everything is configured properly and followed the hadoop documentations to make sure everything is properly set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I didn't know how to do is to set a user near conf before submitting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something similar to :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UserGroupInformation.setLoginUser(UserGroupInformation.createRemoteUser("hduser"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which could solve my issue but I cant add this to the script nor I know the conf command for it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:24:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/352608#M236557</guid>
      <dc:creator>fares_</dc:creator>
      <dc:date>2022-09-19T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/352638#M236566</link>
      <description>&lt;P&gt;Hey There&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100486"&gt;@fares_&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for writing this in our community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a similar situation with this User and see if this is related:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349268/highlight/true#M235584" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/Container-exited-with-a-non-zero-exit-code-13-Error-file/m-p/349268/highlight/true#M235584&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, I could see the Error code being 1 in the shared snip of the log,&lt;/P&gt;&lt;P&gt;I was able to trace back the SparkExitCodes[0] definition for you to co-relate(To triangulate the root cause):&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/SparkExitCode.scala" target="_blank"&gt;https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/SparkExitCode.scala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And Finally, Did you get to go through our similar Blog against your test-case?&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/" target="_blank"&gt;https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep us posted on how it goes.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 17:21:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/352638#M236566</guid>
      <dc:creator>vaishaakb</dc:creator>
      <dc:date>2022-09-19T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/352704#M236580</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29989"&gt;@vaishaakb&lt;/a&gt;&amp;nbsp;for your answer, but sadly non of these sources helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going through the configs of docker on yarn from apache, and they specified that&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;yarn.nodemanager.linux-container-executor.group&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Should be the same in both yarn-site.xml and&amp;nbsp;container-executor.cfg&lt;/P&gt;&lt;P&gt;so I found that the one in yarn-site was "hadoop" and the one in&amp;nbsp;container-executor.cfg was "yarn" so I went and changed the one in&amp;nbsp;container-executor.cfg to "hadoop" as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This action resulted into another error on starting the job, it cannot recognize the yarn directories mounts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[2022-09-20 13:04:35.114]Container exited with a non-zero exit code 29.
[2022-09-20 13:04:35.114]Container exited with a non-zero exit code 29.
For more detailed output, check the application tracking page: https://SERVER/cluster/app/application_1663590757906_0056 Then click on links to logs of each attempt.
. Failing the application.
         ApplicationMaster host: N/A
         ApplicationMaster RPC port: -1
         queue: default
         start time: 1663668271871
         final status: FAILED
         tracking URL: https://SERVER/cluster/app/application_1663590757906_0056
         user: f.alenezi
22/09/20 13:04:36 INFO yarn.Client: Deleted staging directory hdfs://SERVER/user/f.alenezi/.sparkStaging/application_1663590757906_0056
22/09/20 13:04:36 ERROR yarn.Client: Application diagnostics message: Application application_1663590757906_0056 failed 2 times due to AM Container for appattempt_1663590757906_0056_000002 exited with  exitCode: 29
Failing this attempt.Diagnostics: [2022-09-20 13:04:35.113]Exception from container-launch.
Container id: container_e55_1663590757906_0056_02_000001
Exit code: 29
Exception message: Launch container failed
Shell error output: Could not determine real path of mount '/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056'
Could not determine real path of mount '/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056'
Invalid docker mount '/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056:/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056:rw', realpath=/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056
Error constructing docker command, docker error code=13, error message='Invalid docker mount'

Shell output: main : command provided 4
main : run as user is f.alenezi
main : requested yarn user is f.alenezi
Creating script paths...
Creating local dirs...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we can fix this somehow, or locate to the main cause of the issue it might help with the earlier issue.&lt;/P&gt;&lt;P&gt;Any feedback is appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 10:15:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/352704#M236580</guid>
      <dc:creator>fares_</dc:creator>
      <dc:date>2022-09-20T10:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354522#M236925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100486"&gt;@fares_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above application log, we can see clearly the docker mount path is not found. Could you please fix the mount issue? And also verify the spark submit parameter once.&lt;/P&gt;&lt;PRE&gt;Shell error output: Could not determine real path of mount '/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056'
Could not determine real path of mount '/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056'
Invalid docker mount '/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056:/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056:rw', realpath=/data01/yarn/nm/usercache/f.alenezi/appcache/application_1663590757906_0056
Error constructing docker command, docker error code=13, error message='Invalid docker mount'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/yarn-managing-docker-containers/topics/yarn-docker-example-spark.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/yarn-managing-docker-containers/topics/yarn-docker-example-spark.html&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 11 Oct 2022 09:55:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354522#M236925</guid>
      <dc:creator>RangaReddy</dc:creator>
      <dc:date>2022-10-11T09:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354896#M237007</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100486"&gt;@fares_&lt;/a&gt;&amp;nbsp;,&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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 13:20:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354896#M237007</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-10-14T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354933#M237023</link>
      <description>&lt;P&gt;I solved the mount issue, but that took me back to the same main issue which mentioned in the main post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still trying to resolve this issue, so any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 07:29:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354933#M237023</guid>
      <dc:creator>fares_</dc:creator>
      <dc:date>2022-10-16T07:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354984#M237038</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100486"&gt;@fares_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the delayed update. I was away.&lt;/P&gt;&lt;P&gt;Q. how was the Docker Mount issue resolved? Please share the context of the steps taken.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;I solved the mount issue, but that took me back to the same main issue which mentioned in the main post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you still observing invalid Docker mount error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you get to try/test the steps mentioned in our Blog?[0]&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&lt;A href="https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/" target="_blank"&gt;https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the above blog, Check out the Demo I section, "&lt;SPAN&gt;Running PySpark on the gateway machine with Dockerized Executors in a Kerberized cluster.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep us posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 09:44:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354984#M237038</guid>
      <dc:creator>vaishaakb</dc:creator>
      <dc:date>2022-10-17T09:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354986#M237040</link>
      <description>&lt;P&gt;Okay so the mounting issue happened when I changed the configurations of&amp;nbsp;&lt;/P&gt;&lt;P&gt;yarn.nodemanager.linux-container-executor.group&lt;/P&gt;&lt;P&gt;in yarn-site.xml and&amp;nbsp;&lt;SPAN&gt;container-executor.cfg to be all "hadoop".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which I found out later that its unnecessary and this configs should be applied in older versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so I reverted the configs to the default, but the mounting issue still persisted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The solution was is to adjust yarn/nm/usercache to be owned by yarn, then delete the specific user folder, in my case I had to delete f.alenezi folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Sicne yarn auto generates folders/files for each job, we have to make sure the ownership is set properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 10:17:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/354986#M237040</guid>
      <dc:creator>fares_</dc:creator>
      <dc:date>2022-10-17T10:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/355151#M237069</link>
      <description>&lt;P&gt;Thanks for sharing how that was resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did we achieve the end-goal?&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q. Did you get to try/test the steps mentioned in our Blog, comparing your spark-submit?[0]&lt;/P&gt;&lt;P&gt;[0]&amp;nbsp;&lt;A href="https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacenter-release/" target="_blank" rel="noopener noreferrer"&gt;https://blog.cloudera.com/introducing-apache-spark-on-docker-on-top-of-apache-yarn-with-cdp-datacent...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the above blog, Check out the Demo I section, "&lt;SPAN&gt;Running PySpark on the gateway machine with Dockerized Executors in a Kerberized cluster.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:00:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/355151#M237069</guid>
      <dc:creator>vaishaakb</dc:creator>
      <dc:date>2022-10-18T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python script with docker on yarn results in javax.security.auth.login.LoginException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/355275#M237084</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29989"&gt;@vaishaakb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sadly we did not reach the solution for the main issue yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I checked this blog and I also checked every documentation provided by cloudera or others to try resolving this issue but no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I want to point out that the blog's first demo is not working properly and the cloudera team posted something that shows an error&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class="str"&gt;ImportError: No module named numpy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Which proves that the docker image didn't work with pyspark properly.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 06:37:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Python-script-with-docker-on-yarn-results-in-javax-security/m-p/355275#M237084</guid>
      <dc:creator>fares_</dc:creator>
      <dc:date>2022-10-19T06:37:51Z</dc:date>
    </item>
  </channel>
</rss>

