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

查看:117
本文介绍了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分布中的常春藤将自动加载jblas.

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

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

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