title: Spark 1.5.1 not working with hive jdbc 1.2.0
body: <p>I am trying to execute hive query using spark 1.5.1 in standalone mode and hive 1.2.0 jdbc version.</p>
  
  <p>Here is my piece of code:</p>
  
  <pre><code>private static final String HIVE_DRIVER = "org.apache.hive.jdbc.HiveDriver";
  private static final String HIVE_CONNECTION_URL = "jdbc:hive2://localhost:10000/idw";
  private static final SparkConf sparkconf = new SparkConf().set("spark.master", "spark://impetus-i0248u:7077").set("spark.app.name", "sparkhivesqltest")
                  .set("spark.cores.max", "1").set("spark.executor.memory", "512m");
  
  private static final JavaSparkContext sc = new JavaSparkContext(sparkconf);
  private static final SQLContext sqlContext = new SQLContext(sc);
  public static void main(String[] args) {                
      //Data source options
      Map&lt;String, String&gt; options = new HashMap&lt;String, String&gt;();
      options.put("driver", HIVE_DRIVER);
      options.put("url", HIVE_CONNECTION_URL);
      options.put("dbtable", "(select * from idw.emp) as employees_name");
      DataFrame jdbcDF =    sqlContext.read().format("jdbc").options(options).load();    
      }
  </code></pre>
  
  <p>I am getting below error at  <code>sqlContext.read().format("jdbc").options(options).load();</code></p>
  
  <p><strong>Exception in thread "main" java.sql.SQLException: Method not supported
      at org.apache.hive.jdbc.HiveResultSetMetaData.isSigned(HiveResultSetMetaData.java:143)</strong>
      at </p>
  
  <blockquote>
    <p>org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:135)
        at org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.(JDBCRelation.scala:91)
        at org.apache.spark.sql.execution.datasources.jdbc.DefaultSource.createRelation(DefaultSource.scala:60)
        at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:125)
        at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:114)</p>
  </blockquote>
  
  <p>I am running spark 1.5.1 in standalone mode
  Hadoop version is 2.6
  Hive version is 1.2.0</p>
  
  <p>Here is the dependency that I have added in java project in pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
      &lt;artifactId&gt;spark-core_2.10&lt;/artifactId&gt;
      &lt;version&gt;1.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
      &lt;artifactId&gt;spark-sql_2.10&lt;/artifactId&gt;
      &lt;version&gt;1.5.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.hive&lt;/groupId&gt;
      &lt;artifactId&gt;hive-jdbc&lt;/artifactId&gt;
      &lt;version&gt;1.2.0&lt;/version&gt;
      &lt;exclusions&gt;
      &lt;exclusion&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
      &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
      &lt;artifactId&gt;hadoop-core&lt;/artifactId&gt;
      &lt;version&gt;1.2.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Can anyone help me out in this?
  If somebody has used spark 1.5.1 with hive jdbc, then can you please tell me the compatible version of hive for spark 1.5.1.</p>
  
  <p>Thank you in advance..!</p>