"Spark machine learning", Section 4.4.2 "Recommended goods", need to use jblas package, import org.jblas.DoubleMatrix, suggesting the package does not exist
Online searching for a solution, the solution is divided into the following categories:
The first: the compiler used to import external jar package.
The second: first jar package copied to the lib folder, and then edit spark-env.sh file import with export statement (not tried)
Third: spark has a jars in the root directory folder , there are a variety of jar package directly copy the jar package to this directory , first download jblas-1.2.3.jar, extract the jar to the next folder, then IDEProject Structure -> GlobalLibraries - "+ add to jar it, there is a re-import
Attached: jblas-1.2.3.jar Download
http://www.java2s.com/Code/Jar/j/Downloadjblas123jar.htm
Fourth: the IDE add dependencies in the pom.xml
<dependency> <groupId>org.jblas</groupId> <artifactId>jblas</artifactId> <version>1.2.4</version> </dependency>Pro-test work well
http://jblas.org/