Looks like there is some issue with cluster. spark application keeps failing for every 5 to 10 min.
Hardly I can execute two to three commands only.
This is the command I am using to log into the spark:
spark-shell --packages com.databricks:spakr-avro_2.10:2.0.1 --master yarn-client --conf spark.ui.port=21234