Hi,
   I was using the apache spark machine learning library in java
(posted this issue at
https://stackoverflow.com/questions/55367722/apache-spark-in-java-machine-learning-com-github-fommil-netlib-f2jblas-dscalf?noredirect=1#comment97464462_55367722
), and
I had an error while trying to train the logistic regression
classifier:

WARN  BLAS:61 - Failed to load implementation from:
com.github.fommil.netlib.NativeSystemBLAS
WARN  BLAS:61 - Failed to load implementation from:
com.github.fommil.netlib.NativeRefBLAS
Exception in thread "main" java.lang.NoClassDefFoundError: org/netlib/blas/Dscal
at com.github.fommil.netlib.F2jBLAS.dscal(F2jBLAS.java:176)
at org.apache.spark.ml.linalg.BLAS$.scal(BLAS.scala:223)

I have included the following in my pom file:

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>javaspark</groupId>
  <artifactId>javaspark</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <dependencies>
   <dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
          <groupId>org.apache.spark</groupId>
          <artifactId>spark-sql_2.11</artifactId>
          <version>2.0.2</version>
          <scope>compile</scope>
      </dependency>
      <dependency>
          <groupId>org.apache.spark</groupId>
          <artifactId>spark-mllib_2.11</artifactId>
          <version>2.0.2</version>
      </dependency>
      <dependency>
  <groupId>com.github.fommil.netlib</groupId>
  <artifactId>all</artifactId>
  <version>1.1.2</version>
  <type>pom</type>
</dependency>
<dependency>
    <groupId>net.sourceforge.f2j</groupId>
    <artifactId>arpack_combined_all</artifactId>
    <version>0.1</version>
</dependency>
  </dependencies>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>


Any suggestions?

Thank you,
     Serena Sian Yuan

-- 
Sian Ees Super.

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscr...@spark.apache.org

Reply via email to