Hello, beginner here. I wanted to use hive context...
# beginners-need-help
k
Hello, beginner here. I wanted to use hive context inside my node. I have enabled hive support in building spark session. Then inside the node I tried calling spark session:
Copy code
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()

df = spark.sql("SELECT * FROM ....")
But I got the error:
Copy code
ERROR spark.SparkContext: Error initializing SparkContext.
org.apache.hadoop.yarn.exceptions.YarnException: Failed to submit application_1641884194120_477874 to YARN : Application rejected by queue placement policy
l
Hi this is a spark issue. Make sure you can execute spark sql outside of kedro first.