RegisterTempTable not working

hadoop
dataframes
spark-sql

#1

Here is the code I am using, and the error message