title: Reading .conf file from AWS s3 through spark and scala
body: <p>I was able to load a text file from AWS S3 but facing a problem in reading the &quot;.conf&quot; file. Getting the error</p>
  <blockquote>
  <p>&quot;Exception in thread &quot;main&quot; com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'spark'&quot;</p>
  </blockquote>
  <p>Scala code:</p>
  <pre><code>val configFile1 = ConfigFactory.load( &quot;s3n://&lt;bucket_name&gt;/aws.conf&quot; )
  configFile1.getString(&quot;spark.lineage.key&quot;)
  </code></pre>