<?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 Getting java.lang.NullPointerException 	at org.apache.thrift.transport.TSocket.open(TSocket.java:209) while creating hiveContext in Zeppelin. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-java-lang-NullPointerException-at-org-apache-thrift/m-p/285037#M211585</link>
    <description>&lt;P&gt;I had installed HDP 3.0 which has Spark 2.3.1. I was running sql commands in Zeppelin notebook successfully but suddenly Windows update restarted the machine. When I opened the Zeppelin notebook again and ran the first command&lt;/P&gt;
&lt;PRE&gt;%spark2
val hiveContext = new org.apache.spark.sql.SparkSession.Builder().getOrCreate()&lt;/PRE&gt;
&lt;P&gt;I got following error logs: -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="plainTextContainer ng-scope"&gt;
&lt;DIV class="text plainTextContent"&gt;java.lang.NullPointerException at org.apache.thrift.transport.TSocket.open(TSocket.java:209) at org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:51) at org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:37) at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:60) at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.getClient(RemoteInterpreterProcess.java:62) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.callRemoteFunction(RemoteInterpreterProcess.java:133) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.internal_create(RemoteInterpreter.java:165) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:132) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:299) at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:407) at org.apache.zeppelin.scheduler.Job.run(Job.java:188) at org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:307) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)&lt;/DIV&gt;
&lt;DIV class="text plainTextContent"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="text plainTextContent"&gt;I am clueless. Request you to help me out of this issue. Thanks.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 07 Dec 2019 14:35:13 GMT</pubDate>
    <dc:creator>Bindal</dc:creator>
    <dc:date>2019-12-07T14:35:13Z</dc:date>
    <item>
      <title>Getting java.lang.NullPointerException 	at org.apache.thrift.transport.TSocket.open(TSocket.java:209) while creating hiveContext in Zeppelin.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-java-lang-NullPointerException-at-org-apache-thrift/m-p/285037#M211585</link>
      <description>&lt;P&gt;I had installed HDP 3.0 which has Spark 2.3.1. I was running sql commands in Zeppelin notebook successfully but suddenly Windows update restarted the machine. When I opened the Zeppelin notebook again and ran the first command&lt;/P&gt;
&lt;PRE&gt;%spark2
val hiveContext = new org.apache.spark.sql.SparkSession.Builder().getOrCreate()&lt;/PRE&gt;
&lt;P&gt;I got following error logs: -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="plainTextContainer ng-scope"&gt;
&lt;DIV class="text plainTextContent"&gt;java.lang.NullPointerException at org.apache.thrift.transport.TSocket.open(TSocket.java:209) at org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:51) at org.apache.zeppelin.interpreter.remote.ClientFactory.create(ClientFactory.java:37) at org.apache.commons.pool2.BasePooledObjectFactory.makeObject(BasePooledObjectFactory.java:60) at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.getClient(RemoteInterpreterProcess.java:62) at org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.callRemoteFunction(RemoteInterpreterProcess.java:133) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.internal_create(RemoteInterpreter.java:165) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:132) at org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:299) at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:407) at org.apache.zeppelin.scheduler.Job.run(Job.java:188) at org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:307) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)&lt;/DIV&gt;
&lt;DIV class="text plainTextContent"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="text plainTextContent"&gt;I am clueless. Request you to help me out of this issue. Thanks.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 Dec 2019 14:35:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-java-lang-NullPointerException-at-org-apache-thrift/m-p/285037#M211585</guid>
      <dc:creator>Bindal</dc:creator>
      <dc:date>2019-12-07T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting java.lang.NullPointerException 	at org.apache.thrift.transport.TSocket.open(TSocket.java:209) while creating hiveContext in Zeppelin.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-java-lang-NullPointerException-at-org-apache-thrift/m-p/285306#M211749</link>
      <description>&lt;P&gt;I restarted all the interpreters in settings section like :-&lt;/P&gt;&lt;P&gt;spark2,&lt;BR /&gt;angular&lt;BR /&gt;jdbc&lt;BR /&gt;livy2&lt;BR /&gt;md&lt;/P&gt;&lt;P&gt;and saved it.&lt;BR /&gt;Then re-run the code and it was successful. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 03:17:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-java-lang-NullPointerException-at-org-apache-thrift/m-p/285306#M211749</guid>
      <dc:creator>Bindal</dc:creator>
      <dc:date>2019-12-11T03:17:13Z</dc:date>
    </item>
  </channel>
</rss>

