Debug
Resolve the debug problem of when to start up spark, WARN NativeCodeLoader will turn on.
1 | export HADOOP_HOME=/home/admin/hadoop |
1 | WARN BLAS: Failed to load implementation from: com.github.fommil.netlib.NativeSystemBLAS |
Solutions
Three ways to solve the problem
install libgfortran3
linstall libatlas3-base libopenblas-base
OpenBlase
in sbt file: libraryDependencies += “com.github.fommil.netlib” % “all” % “1.1.2”
- -Dcom.github.fommil.netlib.BLAS=com.github.fommil.netlib.F2jBLAS
- https://github.com/mridulm/netlib-java
or in commandline
1
2
3
4$ sudo apt-get install libgfortran3
// check the libgfortran3
$ dpkg -l libgfortran3
$ sudo apt-get install gfortranresolve the problem (important)
1 | sudo apt-get install libatlas3-base libopenblas-base |