Your table is in which database - default or result. By default spark will try to look for table in "default" database.
If the table exists in the "result" database try to prefix the table name with database name like "select * from result.salarytest" or set the database by executing "use <database name>" -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Unable-to-query-existing-hive-table-from-spark-sql-1-3-0-tp24108p24121.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org