title: Spark Sql is throwing PermGen Space Error
body: <p>I have configured 3 Node Spark Cluster. And started Spark Thrift Service using <code>start-thriftserver.sh</code> script with some custom properties. And also added <code>spark.executor.extraJavaOptions -XX:MaxPermSize=1024m -XX:PermSize=256m</code> property in each <code>spark-default.sh</code> file of the Cluster.</p>
  
  <p>Using the Hive JDBC driver, I am able to connect with spark-sql, have tried some queries on it.</p>
  
  <p>But after some time it's throwing <code>PermGen Space</code> error. And after restarting thrift service so many times it is throwing same error.</p>
  
  <p><a href="https://i.stack.imgur.com/3gAWf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3gAWf.png" alt="enter image description here"></a></p>