title: Unable to set ContextClassLoader in spark shell
body: <p>I am using spark shell(1.6) which uses <code>TranslatingClassLoader</code>. </p>
  
  <pre><code>scala&gt; Thread.currentThread().getContextClassLoader 
  res13: 
  ClassLoader = org.apache.spark.repl.SparkIMain$TranslatingClassLoader@23c767e6 
  </code></pre>
  
  <p>For some reason I want to use another class loader, but when I do </p>
  
  <pre><code>val myclassloader = // create my own classloader 
  Thread.currentThread.setContextClassLoader(myclassloader) 
  </code></pre>
  
  <p>The <code>setContextClassLoader</code> doesn't seem to work. I still get a <code>TranslatingClassLoader</code>: </p>
  
  <pre><code>scala&gt; Thread.currentThread().getContextClassLoader 
  res13: 
  ClassLoader = org.apache.spark.repl.SparkIMain$TranslatingClassLoader@23c767e6 
  </code></pre>
  
  <p>In my previous Java project I can change class loader without problem. Could I know why the above method couldn't change class loader in spark shell?  How can i achieve it?</p>