create a directory in hdfs

hdfs dfs -mkdir /spark_event_logs

modify file $SPARK_HOME/conf/spark-defaults.conf and add these two lines

spark.eventLog.enabled=true
# do not use quotes below
spark.eventLog.dir=hdfs://rhes75:9000/spark_event_logs

Then run a job and check it

hdfs dfs -ls /spark_event_logs

-rw-rw----   3 hduser supergroup   33795834 2021-02-02 19:48
/spark_event_logs/yarn-1612295234284

That should have all the info you need

Make sure the directory hdfs://<NAME_NODE>:9000/spark_event_logs is
writable by spark


HTH




LinkedIn * 
https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
<https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>*





*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.




On Tue, 2 Feb 2021 at 15:59, Arpan Bhandari <arpan3...@gmail.com> wrote:

> Yes i can see the jobs on 8088 and also on the spark history url. spark
> history server is showing up the plan details on the sql tab but not giving
> the query.
>
>
> Thanks,
> Arpan Bhandari
>
>
>
> --
> Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscr...@spark.apache.org
>
>

Reply via email to