# Using ML models with Amazon EMR

**URL:** <https://community.konduit.ai/t/using-ml-models-with-amazon-emr/1311>\
**Category:** DL4J\
**Created:** [April 10, 2021, 10:56pm UTC](https://community.konduit.ai/t/using-ml-models-with-amazon-emr/1311 "2021-04-10T22:56:27Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![mar](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mar](https://community.konduit.ai/u/mar)\
**Post date:** [September 10, 2024, 7:25am UTC](https://community.konduit.ai/t/using-ml-models-with-amazon-emr/1311/20 "2024-09-10T07:25:20Z")

</div>

@agibsonccc I am using SBT and my machine is Linux.  
This is my build.sbt :

```auto
import scala.collection.immutable.Seq

ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.13"

libraryDependencies ++= Seq(
  "org.deeplearning4j" % "deeplearning4j-core" % "1.0.0-M2.1",
  "org.deeplearning4j" % "deeplearning4j-modelimport" % "1.0.0-M2.1",
  "org.nd4j" % "nd4j-backends" % "1.0.0-M2.1" % "pom",
  "org.bytedeco" % "hdf5" % "1.12.1-1.5.7",
  "org.bytedeco" % "hdf5-platform" % "1.12.1-1.5.7",
  "org.deeplearning4j" % "deeplearning4j-nn" % "1.0.0-M2.1",
  "org.nd4j" % "nd4j-native-platform" % "1.0.0-M2.1",
  //"org.nd4j" % "nd4j-native" % "1.0.0-M2.1"

)

Compile / mainClass := Some("ten")
assembly / mainClass := Some("ten")

// removed code for discarding unwanted jars; refer u
assemblyMergeStrategy in assembly := {
  case PathList("META-INF", xs @ _*) => MergeStrategy.discard
  case x => MergeStrategy.first
}

lazy val root = (project in file("."))
  .settings(
    name := "untitled1"
  )

```

I have posted the remaining details here - [Caused by: java.lang.RuntimeException: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend](https://community.konduit.ai/t/caused-by-java-lang-runtimeexception-org-nd4j-linalg-factory-nd4jbackend-noavailablebackendexception-please-ensure-that-you-have-an-nd4j-backend-on-your-classpath-please-see-https-deeplearning4j-konduit-ai-nd4j-backend/3237)

---

_[View the full topic](https://community.konduit.ai/t/using-ml-models-with-amazon-emr/1311)._
