java.lang.RuntimeException: Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.

  1. 0

    PySpark createExternalTable() from SQLContext

    Stack Overflow | 5 months ago | Charles Pehlivanian
    java.lang.RuntimeException: Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.
  2. 0

    loading SparkR data frame in Hive

    Stack Overflow | 3 months ago | Arun Gunalan
    java.lang.RuntimeException: Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.
  3. 0

    Share HDInsight SPARK SQL Table saveAsTable does not work

    Stack Overflow | 9 months ago | Kiran
    java.lang.RuntimeException: Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can I create a function in Spark SQL?

    Stack Overflow | 2 years ago | user3826955
    java.lang.RuntimeException: [1.1] failure:</code>INSERT'' expected but identifier CREATE found</p> <p>CREATE OR REPLACE FUNCTION apply_rules (pcode VARCHAR2) RETURN BOOLEAN AS LANGUAGE JAVA NAME 'main.scala.GroovyIntegrator.applyRules (java.lang.String) return java.lang.Boolean'; ^
  6. 0

    Append Mode is not Enabled for AvroSaver

    GitHub | 1 year ago | mkanchwala
    java.lang.RuntimeException: Append mode is not supported by com.databricks.spark.avro.DefaultSource

  1. rp 1 times, last 1 week ago
  2. Handemelindo 1 times, last 3 weeks ago
  3. rp 4 times, last 2 months ago
  4. balintn 3 times, last 2 months ago
  5. max_samebug 2 times, last 2 months ago
13 more registered users
70 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.

    at scala.sys.package$.error()
  2. Scala
    package$.error
    1. scala.sys.package$.error(package.scala:27)
    1 frame
  3. Spark Project SQL
    SparkStrategies$DDLStrategy$.apply
    1. org.apache.spark.sql.execution.SparkStrategies$DDLStrategy$.apply(SparkStrategies.scala:379)
    1 frame
  4. Spark Project Catalyst
    QueryPlanner$$anonfun$1.apply
    1. org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:58)
    2. org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:58)
    2 frames
  5. Scala
    Iterator$$anon$13.hasNext
    1. scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)
    1 frame
  6. Spark Project Catalyst
    QueryPlanner.plan
    1. org.apache.spark.sql.catalyst.planning.QueryPlanner.plan(QueryPlanner.scala:59)
    1 frame
  7. Spark Project SQL
    SQLContext.createExternalTable
    1. org.apache.spark.sql.execution.QueryExecution.sparkPlan$lzycompute(QueryExecution.scala:47)
    2. org.apache.spark.sql.execution.QueryExecution.sparkPlan(QueryExecution.scala:45)
    3. org.apache.spark.sql.execution.QueryExecution.executedPlan$lzycompute(QueryExecution.scala:52)
    4. org.apache.spark.sql.execution.QueryExecution.executedPlan(QueryExecution.scala:52)
    5. org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:55)
    6. org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:55)
    7. org.apache.spark.sql.SQLContext.createExternalTable(SQLContext.scala:695)
    8. org.apache.spark.sql.SQLContext.createExternalTable(SQLContext.scala:668)
    8 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  9. Py4J
    GatewayConnection.run
    1. py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231)
    2. py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:381)
    3. py4j.Gateway.invoke(Gateway.java:259)
    4. py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
    5. py4j.commands.CallCommand.execute(CallCommand.java:79)
    6. py4j.GatewayConnection.run(GatewayConnection.java:209)
    6 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame