Getting 'com.typesafe.config.ConfigException$Missing: No configuration setting found for key...












2















I am trying to run the sample MLeap code example provided here: http://mleap-docs.combust.ml/spark/



All of the code works on my Spark cluster. However, whenever I to execute the following code snippet (again from the above link):



for(bundle <- managed(BundleFile("jar:file:/tmp/mleap-examples/simple-json.zip"))) {
pipeline.writeBundle.format(SerializationFormat.Json).save(bundle)
}


I am getting the following error:



com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'ml.combust.mleap.spark'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152)
at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:145)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:172)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
at com.typesafe.config.impl.SimpleConfig.getObject(SimpleConfig.java:258)
at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:264)
at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:37)
at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:35)
at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:28)
at org.apache.spark.ml.bundle.SparkBundleContext$.apply(SparkBundleContext.scala:21)
at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext$lzycompute(SparkBundleContext.scala:15)
at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext(SparkBundleContext.scala:15)
at $anonfun$2.apply(<console>:87)
at $anonfun$2.apply(<console>:86)
at resource.AbstractManagedResource$$anonfun$5.apply(AbstractManagedResource.scala:88)
at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
at scala.util.control.Exception$Catch.apply(Exception.scala:103)
at scala.util.control.Exception$Catch.either(Exception.scala:125)
at resource.AbstractManagedResource.acquireFor(AbstractManagedResource.scala:88)
at resource.ManagedResourceOperations$class.apply(ManagedResourceOperations.scala:26)
at resource.AbstractManagedResource.apply(AbstractManagedResource.scala:50)
at resource.ManagedResourceOperations$class.acquireAndGet(ManagedResourceOperations.scala:25)
at resource.AbstractManagedResource.acquireAndGet(AbstractManagedResource.scala:50)
at resource.ManagedResourceOperations$class.foreach(ManagedResourceOperations.scala:53)
at resource.AbstractManagedResource.foreach(AbstractManagedResource.scala:50)
... 70 elided


I have also followed this similar problem link https://github.com/combust/mleap/issues/252 by adding the following in my maven pom.xml:



<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>


Unfortunately, I am still getting the same error.










share|improve this question





























    2















    I am trying to run the sample MLeap code example provided here: http://mleap-docs.combust.ml/spark/



    All of the code works on my Spark cluster. However, whenever I to execute the following code snippet (again from the above link):



    for(bundle <- managed(BundleFile("jar:file:/tmp/mleap-examples/simple-json.zip"))) {
    pipeline.writeBundle.format(SerializationFormat.Json).save(bundle)
    }


    I am getting the following error:



    com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'ml.combust.mleap.spark'
    at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152)
    at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:145)
    at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:172)
    at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
    at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
    at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
    at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)
    at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
    at com.typesafe.config.impl.SimpleConfig.getObject(SimpleConfig.java:258)
    at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:264)
    at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:37)
    at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:35)
    at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:28)
    at org.apache.spark.ml.bundle.SparkBundleContext$.apply(SparkBundleContext.scala:21)
    at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext$lzycompute(SparkBundleContext.scala:15)
    at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext(SparkBundleContext.scala:15)
    at $anonfun$2.apply(<console>:87)
    at $anonfun$2.apply(<console>:86)
    at resource.AbstractManagedResource$$anonfun$5.apply(AbstractManagedResource.scala:88)
    at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
    at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
    at scala.util.control.Exception$Catch.apply(Exception.scala:103)
    at scala.util.control.Exception$Catch.either(Exception.scala:125)
    at resource.AbstractManagedResource.acquireFor(AbstractManagedResource.scala:88)
    at resource.ManagedResourceOperations$class.apply(ManagedResourceOperations.scala:26)
    at resource.AbstractManagedResource.apply(AbstractManagedResource.scala:50)
    at resource.ManagedResourceOperations$class.acquireAndGet(ManagedResourceOperations.scala:25)
    at resource.AbstractManagedResource.acquireAndGet(AbstractManagedResource.scala:50)
    at resource.ManagedResourceOperations$class.foreach(ManagedResourceOperations.scala:53)
    at resource.AbstractManagedResource.foreach(AbstractManagedResource.scala:50)
    ... 70 elided


    I have also followed this similar problem link https://github.com/combust/mleap/issues/252 by adding the following in my maven pom.xml:



    <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
    <resource>reference.conf</resource>
    </transformer>


    Unfortunately, I am still getting the same error.










    share|improve this question



























      2












      2








      2








      I am trying to run the sample MLeap code example provided here: http://mleap-docs.combust.ml/spark/



      All of the code works on my Spark cluster. However, whenever I to execute the following code snippet (again from the above link):



      for(bundle <- managed(BundleFile("jar:file:/tmp/mleap-examples/simple-json.zip"))) {
      pipeline.writeBundle.format(SerializationFormat.Json).save(bundle)
      }


      I am getting the following error:



      com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'ml.combust.mleap.spark'
      at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152)
      at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:145)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:172)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
      at com.typesafe.config.impl.SimpleConfig.getObject(SimpleConfig.java:258)
      at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:264)
      at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:37)
      at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:35)
      at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:28)
      at org.apache.spark.ml.bundle.SparkBundleContext$.apply(SparkBundleContext.scala:21)
      at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext$lzycompute(SparkBundleContext.scala:15)
      at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext(SparkBundleContext.scala:15)
      at $anonfun$2.apply(<console>:87)
      at $anonfun$2.apply(<console>:86)
      at resource.AbstractManagedResource$$anonfun$5.apply(AbstractManagedResource.scala:88)
      at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
      at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
      at scala.util.control.Exception$Catch.apply(Exception.scala:103)
      at scala.util.control.Exception$Catch.either(Exception.scala:125)
      at resource.AbstractManagedResource.acquireFor(AbstractManagedResource.scala:88)
      at resource.ManagedResourceOperations$class.apply(ManagedResourceOperations.scala:26)
      at resource.AbstractManagedResource.apply(AbstractManagedResource.scala:50)
      at resource.ManagedResourceOperations$class.acquireAndGet(ManagedResourceOperations.scala:25)
      at resource.AbstractManagedResource.acquireAndGet(AbstractManagedResource.scala:50)
      at resource.ManagedResourceOperations$class.foreach(ManagedResourceOperations.scala:53)
      at resource.AbstractManagedResource.foreach(AbstractManagedResource.scala:50)
      ... 70 elided


      I have also followed this similar problem link https://github.com/combust/mleap/issues/252 by adding the following in my maven pom.xml:



      <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
      <resource>reference.conf</resource>
      </transformer>


      Unfortunately, I am still getting the same error.










      share|improve this question
















      I am trying to run the sample MLeap code example provided here: http://mleap-docs.combust.ml/spark/



      All of the code works on my Spark cluster. However, whenever I to execute the following code snippet (again from the above link):



      for(bundle <- managed(BundleFile("jar:file:/tmp/mleap-examples/simple-json.zip"))) {
      pipeline.writeBundle.format(SerializationFormat.Json).save(bundle)
      }


      I am getting the following error:



      com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'ml.combust.mleap.spark'
      at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152)
      at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:145)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:172)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
      at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)
      at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
      at com.typesafe.config.impl.SimpleConfig.getObject(SimpleConfig.java:258)
      at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:264)
      at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:37)
      at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:35)
      at ml.combust.bundle.BundleRegistry$.apply(BundleRegistry.scala:28)
      at org.apache.spark.ml.bundle.SparkBundleContext$.apply(SparkBundleContext.scala:21)
      at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext$lzycompute(SparkBundleContext.scala:15)
      at org.apache.spark.ml.bundle.SparkBundleContext$.defaultContext(SparkBundleContext.scala:15)
      at $anonfun$2.apply(<console>:87)
      at $anonfun$2.apply(<console>:86)
      at resource.AbstractManagedResource$$anonfun$5.apply(AbstractManagedResource.scala:88)
      at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
      at scala.util.control.Exception$Catch$$anonfun$either$1.apply(Exception.scala:125)
      at scala.util.control.Exception$Catch.apply(Exception.scala:103)
      at scala.util.control.Exception$Catch.either(Exception.scala:125)
      at resource.AbstractManagedResource.acquireFor(AbstractManagedResource.scala:88)
      at resource.ManagedResourceOperations$class.apply(ManagedResourceOperations.scala:26)
      at resource.AbstractManagedResource.apply(AbstractManagedResource.scala:50)
      at resource.ManagedResourceOperations$class.acquireAndGet(ManagedResourceOperations.scala:25)
      at resource.AbstractManagedResource.acquireAndGet(AbstractManagedResource.scala:50)
      at resource.ManagedResourceOperations$class.foreach(ManagedResourceOperations.scala:53)
      at resource.AbstractManagedResource.foreach(AbstractManagedResource.scala:50)
      ... 70 elided


      I have also followed this similar problem link https://github.com/combust/mleap/issues/252 by adding the following in my maven pom.xml:



      <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
      <resource>reference.conf</resource>
      </transformer>


      Unfortunately, I am still getting the same error.







      apache-spark mleap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 1 at 19:25









      halfer

      14.7k758115




      14.7k758115










      asked Dec 17 '18 at 16:57









      user3243499user3243499

      83611326




      83611326
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53819778%2fgetting-com-typesafe-config-configexceptionmissing-no-configuration-setting-f%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53819778%2fgetting-com-typesafe-config-configexceptionmissing-no-configuration-setting-f%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

          Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

          A Topological Invariant for $pi_3(U(n))$