python-spark-streaming icon indicating copy to clipboard operation
python-spark-streaming copied to clipboard

tweets temp table not exists error

Open JhansiA opened this issue 6 years ago • 3 comments

@matthew-mcateer Hi, I am running the code in local instead of VM, the code was running fine in VM and able to see the twitter data but in local i am facing issue like Py4JJavaError: An error occurred while calling o25.sql. : org.apache.spark.sql.AnalysisException: Table or view not found: tweets; line 1 pos 23

Any help ?

image

While debugging, when i compare VM and local machine, after the streaming started, My local : image

VM: image

So the tweets table is not creating in my local. I have not figured the solution yet.

JhansiA avatar Jan 23 '19 03:01 JhansiA

same issue

kmillanr avatar Mar 18 '19 19:03 kmillanr

I have the same issue either

MohammadHeydari avatar Oct 05 '19 21:10 MohammadHeydari

The issue could be

  1. your spark default is in yarn, change it local mode.

2.There is only one executor working, which is receiving message, but no executor is processing message.

Solution: while opening your jupyter follow the below command.(ensure your pyspark2 by default opens in jupyter)

[cloudera@quickstart ~]$ pyspark2 --master local[2]

This should solve your problem.

rpalaani30 avatar Apr 02 '20 20:04 rpalaani30