<?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: Getting error &amp;quot;User session not found 403&amp;quot; when using zeppelin with livy in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136389#M99038</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11975/bhavintandel.html" nodeid="11975"&gt;@Bhavin Tandel&lt;/A&gt; Can you please post what error you are getting in livy server logs ?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2016 05:58:52 GMT</pubDate>
    <dc:creator>kbadani</dc:creator>
    <dc:date>2016-12-10T05:58:52Z</dc:date>
    <item>
      <title>Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136378#M99027</link>
      <description>&lt;P&gt;So we have a kerberized cluster and have integrated ldaps with zeppelin. But when i try to use livy i get the following error&lt;/P&gt;&lt;P&gt;ERROR [2016-12-01 10:00:02,442] ({pool-2-thread-4} LivyHelper.java[createSession]:128) - Error getting session for user
java.lang.Exception: Cannot start  spark.
        at org.apache.zeppelin.livy.LivyHelper.createSession(LivyHelper.java:117)
        at org.apache.zeppelin.livy.LivySparkSQLInterpreter.interpret(LivySparkSQLInterpreter.java:62)
        at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
        at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:341)
        at org.apache.zeppelin.scheduler.Job.run(Job.java:176)
        at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
ERROR [2016-12-01 10:00:02,442] ({pool-2-thread-4} LivySparkSQLInterpreter.java[interpret]:70) - Exception in LivySparkSQLInterpreter while interpret
java.lang.Exception: Cannot start  spark.&lt;/P&gt;&lt;P&gt;in zeppelin interpreter logs.&lt;/P&gt;&lt;P&gt;Also when i dont enable ldap for zeppelin (that is i log in as anonymous), I can see that job is been submitted to yarn but it fails as user is  `zeppelin-clusterName`. But when i use ldap with zeppelin it is not even getting submit to yarn.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 02:25:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136378#M99027</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-03T02:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136379#M99028</link>
      <description>&lt;P&gt;Do you kerberos your cluster using ambari ? There're serveral configuration you need to make it work. &lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 19:20:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136379#M99028</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-12-03T19:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136380#M99029</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/453/jzhang.html" nodeid="453"&gt;@jzhang&lt;/A&gt;, thanks for the interest. Yes, i have used ambari for kerberization and also i have set proxy users property for livy in hdfs&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 21:14:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136380#M99029</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-03T21:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136381#M99030</link>
      <description>&lt;P&gt;The session might be expired, Can you restart livy interpreter ? And if you still get the error, check the RM UI to find the yarn app log. &lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 07:35:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136381#M99030</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-12-04T07:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136382#M99031</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/453/jzhang.html" nodeid="453"&gt;@jzhang&lt;/A&gt;, So i did restart the server and checked yarn logs but the job is not getting submitted, I cannot see any submitted or failed jobs.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:01:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136382#M99031</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-06T20:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136383#M99032</link>
      <description>&lt;P&gt;Do you run it in yarn-cluster mode ? Set livy.spark.master as yarn-cluster in interpreter setting page&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:59:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136383#M99032</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-12-06T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136384#M99033</link>
      <description>&lt;P&gt;yes i have already set that to yarn-cluster mode&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 21:21:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136384#M99033</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-06T21:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136385#M99034</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11975/bhavintandel.html" nodeid="11975"&gt;@Bhavin Tandel&lt;/A&gt; Have you setup livy.superusers property to your zeppelin principal in livy.conf? &lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 02:29:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136385#M99034</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2016-12-08T02:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136386#M99035</link>
      <description>&lt;P&gt;yes, i have set it to zeppelin principal. But just for heads up i have not configured ldap for MIT Kerberos but i am using ldap with zeppelin. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 02:42:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136386#M99035</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-08T02:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136387#M99036</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11975/bhavintandel.html" nodeid="11975"&gt;@Bhavin Tandel&lt;/A&gt; please ensure you have all of the following setup&lt;/P&gt;&lt;P&gt;1) when you try to login using ldap - the user you are getting logged in has corresponding data directory on HDFS (/user/xyz) ? Also, the unix user should be present on the cluster&lt;/P&gt;&lt;P&gt;2) livy.superusers = zeppelin-clustername in livy.conf (which you already have done)&lt;/P&gt;&lt;P&gt;3) Along with for 'livy' user, also please setup proxy permissions for both 'zeppelin' and 'zeppelin-clustername' in HDFS core-site.xml&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.zeppelin.hosts = *
hadoop.proxyuser.zeppelin.hosts = *
hadoop.proxyuser.zeppelin-clustername.hosts = *
hadoop.proxyuser.zeppelin-clustername.hosts = *&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Dec 2016 02:42:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136387#M99036</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2016-12-09T02:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136388#M99037</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/14767/kbadani.html" nodeid="14767"&gt;@kbadani&lt;/A&gt;, thanks for getting back. I did this but no luck, I also checked after restarting the services but the 403 error persists.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 15:45:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136388#M99037</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-09T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136389#M99038</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11975/bhavintandel.html" nodeid="11975"&gt;@Bhavin Tandel&lt;/A&gt; Can you please post what error you are getting in livy server logs ?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 05:58:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136389#M99038</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2016-12-10T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136390#M99039</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10230-livy-out.txt"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14767/kbadani.html" nodeid="14767"&gt;@kbadani&lt;/A&gt;  Sorry for the delay, I have attached the live.out log &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10230-livy-out.txt"&gt;livy-out.txt&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 00:26:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136390#M99039</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-13T00:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136391#M99040</link>
      <description>&lt;P&gt;yarn app is started, could you check the yarn app log ? appid : &lt;A href="http://rdeluh0001073.rz-c007-j650.basf-ag.de:8088/proxy/application_1481021618182_0004/"&gt;application_1481021618182_0004&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 16:24:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136391#M99040</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-12-14T16:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136392#M99041</link>
      <description>&lt;P style="margin-left: 20px;"&gt;So guys &lt;A rel="user" href="https://community.cloudera.com/users/14767/kbadani.html" nodeid="14767"&gt;@kbadani&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/453/jzhang.html" nodeid="453"&gt;@jzhang&lt;/A&gt; the issue finally got solved and thank you for your support. It was very trivial but very important property, livy.superuser was set to `zeppelin-&amp;lt;cluster name in uppercase&amp;gt;` but the principal was in lower case &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; . And changing that solved the issue, &lt;A rel="user" href="https://community.cloudera.com/users/14767/kbadani.html" nodeid="14767"&gt;@kbadani&lt;/A&gt; You pointed out that property but I didnt know that it is case sensitive.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 02:38:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136392#M99041</guid>
      <dc:creator>bhavintandel</dc:creator>
      <dc:date>2016-12-15T02:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "User session not found 403" when using zeppelin with livy</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136393#M99042</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11975/bhavintandel.html" nodeid="11975"&gt;@Bhavin Tandel&lt;/A&gt; good to know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 02:57:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-quot-User-session-not-found-403-quot-when/m-p/136393#M99042</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2016-12-15T02:57:05Z</dc:date>
    </item>
  </channel>
</rss>

