Ben Chuanlong Du's Blog

It is never too late to learn.

Spark Issue: Table Not Found

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Symptom 1

org.apache.spark.sql.AnalysisException: Table not found

Symptom 2

java.lang.RuntimeException: Table Not Found: my_rdd

Cause 1

Miss-spelled a table name.

Solution 1

Correct miss-spelling.

Cause 2

Forgot to submit a hive-site.xml together with the Spark application.

Solution 2

Include Hive configuration of the Spark cluster when submitting Spark jobs.

--files "/apache/spark/conf/hive-site.xml"

Comments