<?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: Exception (noSuchMethodError) trying to run ML examples in zeppelin in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192048#M78271</link>
    <description>&lt;P&gt;I ended up adding :&lt;/P&gt;&lt;PRE&gt;org.apache.thrift:libfb303:jar:0.9.3&lt;/PRE&gt;&lt;P&gt;as dependency of the spark interpreter in zeppelin (this included the right version of thrift as transitive dependency). Maybe not the cleanest solution but it works. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 10:32:50 GMT</pubDate>
    <dc:creator>cip</dc:creator>
    <dc:date>2018-05-17T10:32:50Z</dc:date>
    <item>
      <title>Exception (noSuchMethodError) trying to run ML examples in zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192045#M78268</link>
      <description>&lt;P&gt;
 Hi, i'm having a strange exception when i try to run ml example in Zeppelin:
&lt;/P&gt;
&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72864-selection-199.png" style="width: 533px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18340i413E068127F0481A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72864-selection-199.png" alt="72864-selection-199.png" /&gt;&lt;/span&gt;
&lt;/P&gt;
&lt;P&gt;
 here is the exception:
&lt;/P&gt;
&lt;PRE&gt;
 import org.apache.spark.ml.linalg.Vectors
java.lang.IllegalArgumentException: Error while instantiating 'org.apache.spark.sql.hive.HiveSessionStateBuilder':
  at org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$instantiateSessionState(SparkSession.scala:1074)
  at org.apache.spark.sql.SparkSession$anonfun$sessionState$2.apply(SparkSession.scala:141)
  at org.apache.spark.sql.SparkSession$anonfun$sessionState$2.apply(SparkSession.scala:140)
  at scala.Option.getOrElse(Option.scala:121)
  at org.apache.spark.sql.SparkSession.sessionState$lzycompute(SparkSession.scala:140)
  at org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:137)
  at org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:65)
  at org.apache.spark.sql.SparkSession.createDataFrame(SparkSession.scala:311)
  ... 46 elided
Caused by: org.apache.spark.sql.AnalysisException: java.lang.NoSuchMethodError: com.facebook.fb303.FacebookService$Client.sendBaseOneway(Ljava/lang/String;Lorg/apache/thrift/TBase;)V;
  at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:106)
  at org.apache.spark.sql.hive.HiveExternalCatalog.databaseExists(HiveExternalCatalog.scala:193)
  at org.apache.spark.sql.internal.SharedState.externalCatalog$lzycompute(SharedState.scala:105)
  at org.apache.spark.sql.internal.SharedState.externalCatalog(SharedState.scala:93)
  at org.apache.spark.sql.hive.HiveSessionStateBuilder.externalCatalog(HiveSessionStateBuilder.scala:39)
  at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog$lzycompute(HiveSessionStateBuilder.scala:54)
  at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog(HiveSessionStateBuilder.scala:52)
  at org.apache.spark.sql.hive.HiveSessionStateBuilder.catalog(HiveSessionStateBuilder.scala:35)
  at org.apache.spark.sql.internal.BaseSessionStateBuilder.build(BaseSessionStateBuilder.scala:289)
  at org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$instantiateSessionState(SparkSession.scala:1071)
  ... 53 more
Caused by: java.lang.NoSuchMethodError: com.facebook.fb303.FacebookService$Client.sendBaseOneway(Ljava/lang/String;Lorg/apache/thrift/TBase;)V
  at com.facebook.fb303.FacebookService$Client.send_shutdown(FacebookService.java:436)
  at com.facebook.fb303.FacebookService$Client.shutdown(FacebookService.java:430)
  at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.close(HiveMetaStoreClient.java:492)
  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 org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:156)
  at com.sun.proxy.$Proxy67.close(Unknown Source)
  at org.apache.hadoop.hive.ql.metadata.Hive.close(Hive.java:291)
  at org.apache.hadoop.hive.ql.metadata.Hive.access$000(Hive.java:137)
  at org.apache.hadoop.hive.ql.metadata.Hive$1.remove(Hive.java:157)
  at org.apache.hadoop.hive.ql.metadata.Hive.closeCurrent(Hive.java:261)
  at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:231)
  at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:208)
  at org.apache.hadoop.hive.ql.session.SessionState.setAuthorizerV2Config(SessionState.java:765)
  at org.apache.hadoop.hive.ql.session.SessionState.setupAuth(SessionState.java:736)
  at org.apache.hadoop.hive.ql.session.SessionState.getAuthenticator(SessionState.java:1391)
  at org.apache.spark.sql.hive.client.HiveClientImpl.&amp;lt;init&amp;gt;(HiveClientImpl.scala:211)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at org.apache.spark.sql.hive.client.IsolatedClientLoader.createClient(IsolatedClientLoader.scala:268)
  at org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:362)
  at org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:266)
  at org.apache.spark.sql.hive.HiveExternalCatalog.client$lzycompute(HiveExternalCatalog.scala:66)
  at org.apache.spark.sql.hive.HiveExternalCatalog.client(HiveExternalCatalog.scala:65)
  at org.apache.spark.sql.hive.HiveExternalCatalog$anonfun$databaseExists$1.apply$mcZ$sp(HiveExternalCatalog.scala:194)
  at org.apache.spark.sql.hive.HiveExternalCatalog$anonfun$databaseExists$1.apply(HiveExternalCatalog.scala:194)
  at org.apache.spark.sql.hive.HiveExternalCatalog$anonfun$databaseExists$1.apply(HiveExternalCatalog.scala:194)
  at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:97)
  ... 62 more
&lt;/PRE&gt;
&lt;P&gt;
 The installation is pretty standard.
&lt;/P&gt;
&lt;P&gt;
 spark.version= 2.2.0.2.6.3.0-235
&lt;/P&gt;
&lt;P&gt;
 I'm using useHiveContext=true. Below my full spark interpreter configuration. 
&lt;/P&gt;
&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72865-selection-200.png" style="width: 1310px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18341iCF90B71F66AA3F33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72865-selection-200.png" alt="72865-selection-200.png" /&gt;&lt;/span&gt;
&lt;/P&gt;
&lt;PRE&gt;
java.lang.NoSuchMethodError: com.facebook.fb303.FacebookService$Client.sendBaseOneway(Ljava/lang/String;Lorg/apache/thrift/TBase;)V;
&lt;/PRE&gt;
&lt;P&gt;
Seem a library configuration error but I just installed spark using Ambari. Any idea how to solve this issue?
&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:16:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192045#M78268</guid>
      <dc:creator>cip</dc:creator>
      <dc:date>2019-08-18T07:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exception (noSuchMethodError) trying to run ML examples in zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192046#M78269</link>
      <description>&lt;P&gt;This looks like an issue caused by an extraneous reference to phoenix-server.jar in the YARN classpath. There's an article on that issue affecting Oozie here, and I suspect the resolution would be similar (either removing the reference or moving it to the end of the classpath):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/167173/errornosuchmethoderror-comfacebookfb303-when-execu.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/167173/errornosuchmethoderror-comfacebookfb303-when-execu.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's also possible that there's an older version of libfb303 floating around in the path somewhere. Hive should be using 0.9.3 as of the HDP 2.6.4.x stack.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 04:33:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192046#M78269</guid>
      <dc:creator>wcbdata</dc:creator>
      <dc:date>2018-05-17T04:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exception (noSuchMethodError) trying to run ML examples in zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192047#M78270</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34057"&gt;@William&lt;/a&gt; Brooks.&lt;/P&gt;&lt;P&gt;I'm using hdp 2.6.3 . &lt;/P&gt;&lt;P&gt;Thanks
 for your suggestion. I have been able to progress. Inside zeppelin I've found a version
 of libthrift (0.9.2) that is not compatible with libfb (0.9.3) ... In your opinion what is the best way to fix it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74459-selection-202.png" style="width: 646px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18338iBE30A1A39C99152C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74459-selection-202.png" alt="74459-selection-202.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="74460-selection-203.png" style="width: 588px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18339iBF76434A8CBB6854/image-size/medium?v=v2&amp;amp;px=400" role="button" title="74460-selection-203.png" alt="74460-selection-203.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:16:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192047#M78270</guid>
      <dc:creator>cip</dc:creator>
      <dc:date>2019-08-18T07:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exception (noSuchMethodError) trying to run ML examples in zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192048#M78271</link>
      <description>&lt;P&gt;I ended up adding :&lt;/P&gt;&lt;PRE&gt;org.apache.thrift:libfb303:jar:0.9.3&lt;/PRE&gt;&lt;P&gt;as dependency of the spark interpreter in zeppelin (this included the right version of thrift as transitive dependency). Maybe not the cleanest solution but it works. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 10:32:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192048#M78271</guid>
      <dc:creator>cip</dc:creator>
      <dc:date>2018-05-17T10:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exception (noSuchMethodError) trying to run ML examples in zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192049#M78272</link>
      <description>&lt;P&gt;Glad it helped find the solution!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 20:26:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/192049#M78272</guid>
      <dc:creator>wcbdata</dc:creator>
      <dc:date>2018-05-17T20:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exception (noSuchMethodError) trying to run ML examples in zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/286554#M78273</link>
      <description>&lt;P&gt;I am unable to find libfb303 in zeppelin 0.8.2, can you please help?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 05:39:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-noSuchMethodError-trying-to-run-ML-examples-in/m-p/286554#M78273</guid>
      <dc:creator>mahmedrao</dc:creator>
      <dc:date>2019-12-30T05:39:30Z</dc:date>
    </item>
  </channel>
</rss>

