Spark-Shell--- 错误:对象 jblas 不是包 org 的成员 (Windows)

Spark-Shell--- 错误:对象 jblas 不是包 org 的成员 (Windows)

问题描述:

我在 windows 的 spark shell 中运行代码

I am running code in spark shell in windows

import org.jblas.DoubleMatrix 

我得到的错误是

error: object jblas is not a member of package org 

我研究过 *,但答案仅适用于 Linux 系统.

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

任何帮助将不胜感激.

亲切的问候,无辜的

你应该在启动 spark-shell 时将 jblas 添加到你的类路径中

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

例如:

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

然后,spark分布中的ivy会自动加载jblas.

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