title: java.lang.InterruptedException when creating SparkSession in Scala
body: <p>If I clone this gist: <a href="https://gist.github.com/jamiekt/cea2dab3ea8de91489b31045b302e011" rel="nofollow noreferrer">https://gist.github.com/jamiekt/cea2dab3ea8de91489b31045b302e011</a></p>
  
  <p>and then issue <code>sbt run</code> it fails on the line </p>
  
  <pre class="lang-scala prettyprint-override"><code>val spark = SparkSession.builder()
                          .config(new SparkConf().setMaster("local[*]"))
                          .enableHiveSupport()
                          .getOrCreate()
  </code></pre>
  
  <p>with error:</p>
  
  <blockquote>
    <p>Java.lang.InterruptedException
            at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)</p>
  </blockquote>
  
  <p>No clue why this might be happening. Anyone got a suggestion?</p>
  
  <p>Scala version is 2.11.12 (see in <strong>build.sbt</strong> in the gist)<br>
  Spark version is 2.3.0 (again, see in <strong>build.sbt</strong>)<br>
  Java Version  </p>
  
  <pre><code>$ java -version
  java version "1.8.0_161"
  </code></pre>