title: PySpark HiveContext Error
body: <p>I'm trying to use PySpark to refresh table partitions using the below command. I can issue any other SQL commands but <code>MSCK REPAIR TABLE</code> is causing me problems</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>conf = SparkConf().setAppName("PythonHiveExample")\
                    .set("spark.executor.memory", "3g")\
                    .set("spark.driver.memory", "3g")\
                    .set("spark.driver.cores", "2")\
                    .set("spark.storage.memoryFraction", "0.4")
  sc = SparkContext(conf=conf)
  sqlContext = HiveContext(sc)
  sqlContext.sql("MSCK REPAIR TABLE testdatabase.testtable;")
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>File "/usr/hdp/2.3.0.0-2557/spark/python/pyspark/sql/context.py", line 488, in sql
                        return DataFrame(self._ssql_ctx.sql(sqlQuery), self)
                      File "/usr/hdp/2.3.0.0-2557/spark/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py", line 538, in <strong>call</strong>
                      File "/usr/hdp/2.3.0.0-2557/spark/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py", line 300, in get_return_value
                    py4j.protocol.Py4JJavaError: An error occurred while calling o43.sql.
                    : org.apache.spark.sql.AnalysisException: missing EOF at ';' near '10'; line 1 pos 41</p>
  </blockquote>
  
  <p><strong>NewError:</strong></p>
  
  <pre><code>            py4j.protocol.Py4JJavaError: An error occurred while calling o43.sql.
              : org.apache.spark.sql.AnalysisException: missing EOF at 'MSCK' near 'testdatabase'; line 1 pos 17
                      at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:254)
                      at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:41)
                      at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:40)
                      at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136)
                      at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135)
                      at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
                      at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
  </code></pre>