title: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/catalyst/analysis/OverrideFunctionRegistry
body: <p>I have tried with below code in spark and scala, attaching code and pom.xml</p>
  
  <pre><code>package com.Spark.ConnectToHadoop
  
  import org.apache.spark.SparkConf
  import org.apache.spark.SparkConf
  import org.apache.spark._
  import org.apache.spark.sql._
  import org.apache.spark.sql.hive.HiveContext
  import org.apache.spark.sql.SQLContext
  import org.apache.spark.rdd.RDD
  //import groovy.sql.Sql.CreateStatementCommand
  
  //import org.apache.spark.SparkConf
  
  
  object CountWords  {
  
    def main(args:Array[String]){
  
      val objConf = new SparkConf().setAppName("Spark Connection").setMaster("spark://IP:7077")
      var sc = new SparkContext(objConf)
  val objHiveContext = new HiveContext(sc)
  objHiveContext.sql("USE test")
  
  
  var test= objHiveContext.sql("show tables")
      var i  = 0
  
      var testing = test.collect()
        for(i&lt;-0 until testing.length){
  
        println(testing(i))
      }
    }
  }
  </code></pre>
  
  <p>I have added spark-core_2.10,spark-catalyst_2.10,spark-sql_2.10,spark-hive_2.10 dependencies Do I need to add any more dependencies???</p>
  
  <p>Edit: </p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.Sudhir.Maven1&lt;/groupId&gt;
      &lt;artifactId&gt;SparkDemo&lt;/artifactId&gt;
      &lt;version&gt;IntervalMeterData1&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;SparkDemo&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;spark.version&gt;1.5.2&lt;/spark.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &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.2&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.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
              &lt;artifactId&gt;spark-catalyst_2.10&lt;/artifactId&gt;
              &lt;version&gt;1.5.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
              &lt;artifactId&gt;spark-hive_2.10&lt;/artifactId&gt;
              &lt;version&gt;1.2.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.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;     
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>