title: Exception while connecting to hive through jdbc
body: <p>Below is the exception I'm facing while trying to connect hive using jdbc connection.</p>
  
  <pre><code>Connection con = DriverManager.getConnection("jdbc:hive://localhost:10000/default", "hive", "");
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: org.apache.thrift.protocol.TProtocol.getScheme()Ljava/lang/Class;
      at org.apache.hadoop.hive.service.ThriftHive$execute_args.write(ThriftHive.java:1076)
      at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63)
      at org.apache.hadoop.hive.service.ThriftHive$Client.send_execute(ThriftHive.java:110)
      at org.apache.hadoop.hive.service.ThriftHive$Client.execute(ThriftHive.java:102)
      at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:187)
      at org.apache.hadoop.hive.jdbc.HiveStatement.execute(HiveStatement.java:127)
      at org.apache.hadoop.hive.jdbc.HiveConnection.configureConnection(HiveConnection.java:126)
      at org.apache.hadoop.hive.jdbc.HiveConnection.&lt;init&gt;(HiveConnection.java:121)
      at org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:104)
      at java.sql.DriverManager.getConnection(DriverManager.java:620)
      at java.sql.DriverManager.getConnection(DriverManager.java:200)
      at HiveJdbcClient.main(HiveJdbcClient.java:24)
  </code></pre>
  
  <p>The class <code>TProtocol.java in libthrift-0.9.0.jar</code> doesn't have the method <code>getScheme()</code>.</p>
  
  <p>Can anyone please let me know which Jar file I need to use.</p>
  
  <p>Thank you.</p>