简体   繁体   中英

Spark-Shell— error: object jblas is not a member of package org (Windows)

I am running code in spark shell in windows

import org.jblas.DoubleMatrix 

The error which I am getting is

error: object jblas is not a member of package org 

I researched on stackoverflow, but answer is available for Linux system only.

Any help will be greatly appreciated.

Kind regards, Innocent

You should add jblas to your classpath when you startup spark-shell

such as:

bin/spark-shell --packages org.jblas:jblas:1.2.4-SNAPSHOT

Then, the ivy in the spark distribution will load jblas automatically.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM