title: reference.conf exception when running flink application
body: <p>I have a dropwizard application using Flink to read from Kafka but the application blows up with this exception when I start it:</p>
  
  <pre><code>java -jar my-app.jar server my-config.yaml
  
  [2018-01-04T01:04:24,577Z](main)([]) INFO - FlinkMiniCluster - Stopping 
  FlinkMiniCluster.
  [2018-01-04T01:04:24,591Z](main)([]) WARN - ROOT - unavailable
  ! com.typesafe.config.ConfigException$UnresolvedSubstitution: 
  reference.conf @ jar:file:/my-app.jar!/reference.conf: 804: Could not 
  resolve substitution to a value: ${akka.stream.materializer}
  at com.typesafe.config.impl.ConfigReference.resolveSubstitutions(ConfigReference.java:108)
  at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
  at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379)
  at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312)
  at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398)
  at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
  at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379)
  at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312)
  at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398)
  at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
  at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379)
  at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312)
  at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398)
  at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
  at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379)
  at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312)
  at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398)
  at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
  at com.typesafe.config.impl.SimpleConfigObject$ResolveModifier.modifyChildMayThrow(SimpleConfigObject.java:379)
  at com.typesafe.config.impl.SimpleConfigObject.modifyMayThrow(SimpleConfigObject.java:312)
  at com.typesafe.config.impl.SimpleConfigObject.resolveSubstitutions(SimpleConfigObject.java:398)
  at com.typesafe.config.impl.ResolveContext.realResolve(ResolveContext.java:179)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:142)
  at com.typesafe.config.impl.ResolveContext.resolve(ResolveContext.java:231)
  at com.typesafe.config.impl.SimpleConfig.resolveWith(SimpleConfig.java:74)
  at com.typesafe.config.impl.SimpleConfig.resolve(SimpleConfig.java:64)
  at com.typesafe.config.impl.SimpleConfig.resolve(SimpleConfig.java:59)
  at com.typesafe.config.impl.SimpleConfig.resolve(SimpleConfig.java:37)
  at com.typesafe.config.impl.ConfigImpl$1.call(ConfigImpl.java:374)
  at com.typesafe.config.impl.ConfigImpl$1.call(ConfigImpl.java:367)
  at com.typesafe.config.impl.ConfigImpl$LoaderCache.getOrElseUpdate(ConfigImpl.java:65)
  at com.typesafe.config.impl.ConfigImpl.computeCachedConfig(ConfigImpl.java:92)
  at com.typesafe.config.impl.ConfigImpl.defaultReference(ConfigImpl.java:367)
  at com.typesafe.config.ConfigFactory.defaultReference(ConfigFactory.java:413)
  at akka.actor.ActorSystem$Settings.&lt;init&gt;(ActorSystem.scala:307)
  at akka.actor.ActorSystemImpl.&lt;init&gt;(ActorSystem.scala:683)
  at akka.actor.ActorSystem$.apply(ActorSystem.scala:245)
  at akka.actor.ActorSystem$.apply(ActorSystem.scala:288)
  at akka.actor.ActorSystem$.apply(ActorSystem.scala:263)
  at akka.actor.ActorSystem$.create(ActorSystem.scala:191)
  at org.apache.flink.runtime.akka.AkkaUtils$.createActorSystem(AkkaUtils.scala:106)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster.startJobManagerActorSystem(FlinkMiniCluster.scala:300)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster.singleActorSystem$lzycompute$1(FlinkMiniCluster.scala:329)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster.org$apache$flink$runtime$minicluster$FlinkMiniCluster$$singleActorSystem$1(FlinkMiniCluster.scala:329)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster$$anonfun$1.apply(FlinkMiniCluster.scala:343)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster$$anonfun$1.apply(FlinkMiniCluster.scala:341)
  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
  at scala.collection.immutable.Range.foreach(Range.scala:160)
  at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
  at scala.collection.AbstractTraversable.map(Traversable.scala:104)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster.start(FlinkMiniCluster.scala:341)
  at org.apache.flink.runtime.minicluster.FlinkMiniCluster.start(FlinkMiniCluster.scala:323)
  at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:107) ...
  </code></pre>
  
  <p>My Flink stream is pretty basic:</p>
  
  <pre><code>environment
          .addSource(new FlinkKafkaConsumer010&lt;&gt;(...)
          .name("source name 1")
          .union(environment.addSource(new FlinkKafkaConsumer010&lt;&gt;(...)
                  .name("source name 2"))
          .map(new MyMapFunction())
          .addSink(new PrintSinkFunction&lt;&gt;())
          .name("Sink: Print");
  </code></pre>
  
  <p>Strangely enough, the application runs just fine and successfully creates a FlinkMiniCluster when debugging in IDEA.</p>
  
  <p>I'm using flink 1.4 and did not start a flink job manager when running from IDEA or command line.</p>
  
  <p>Is there a configuration I need to be setting up to run from the command line?</p>