doing spark-shell with mlib, error: object jblas is not a member of package org

前端 未结 1 647
深忆病人
深忆病人 2021-01-17 00:11

In spark-shell, when I exectue import org.jblas.DoubleMatrix, it will throw \"error: object jblas is not a member of package org\" on the RHEL.

Actually

相关标签:
1条回答
  • 2021-01-17 00:40

    This step may be optional, it will install the jblas jar on your laptop repository.

    git clone https://github.com/mikiobraun/jblas.git
    cd jblas
    mvn install
    

    Enter into the spark directory

    cd /Users/erichan/Garden/spark-1.5.1-bin-cdh4
    

    Launch the spark shell with packages option, and if you didn't do the first step, you should give the right maven coordinate for jblas:

    bin/spark-shell --name my_mlib --packages org.jblas:jblas:1.2.4-SNAPSHOT --driver-memory 4G --executor-memory 4G --driver-cores 2
    
    0 讨论(0)
提交回复
热议问题