Spark-Shell--- 错误:对象 jblas 不是包 org 的成员 (Windows) [英] Spark-Shell--- error: object jblas is not a member of package org (Windows)

查看:33
本文介绍了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 

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

I researched on stackoverflow, 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.

这篇关于Spark-Shell--- 错误:对象 jblas 不是包 org 的成员 (Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆