简体   繁体   English

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

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

I am running code in spark shell in windows 我正在Windows的Spark Shell中运行代码

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. 我研究了stackoverflow,但是答案仅适用于Linux系统。

Any help will be greatly appreciated. 任何帮助将不胜感激。

Kind regards, Innocent 亲切的问候,天真

You should add jblas to your classpath when you startup spark-shell 启动spark-shell时,应将jblas添加到类路径中

such as: 如:

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

Then, the ivy in the spark distribution will load jblas automatically. 然后,spark分布中的常春藤将自动加载jblas。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spark-shell错误对象映射不是包org.apache.spark.streaming.rdd的成员 - Spark-shell Error object map is not a member of package org.apache.spark.streaming.rdd 在 spark-shell 中导入包时出错 - Error when importing package in spark-shell spark-shell 错误:值生成器不是 object com.amazonaws.services.s3.model.PutObjectRequest 的成员 - spark-shell error: value builder is not a member of object com.amazonaws.services.s3.model.PutObjectRequest 对象spark不是包org的成员 - Object spark is not a member of package org 在 Windows 上运行 Spark-Shell - Running Spark-Shell on Windows 错误:对象DataFrame不是包org.apache.spark.sql的成员 - error: object DataFrame is not a member of package org.apache.spark.sql Maven 构建错误(Scala + Spark):object apache 不是 ZEFE90A8E604A7C8DBB7D88 的成员 - Maven build ERROR (Scala + Spark):object apache is not a member of package org sbt 错误:object spark 不是 package org.ZB6EFD606D118D0F62066E31ZCC19 的成员 - sbt error: object spark is not a member of package org.apache 在 Intellij 中运行 Spark 时出错:“object apache is not a member of package org” - Error in running Spark in Intellij : "object apache is not a member of package org" spark-shell 命令给出错误(windows cmd 和 cygwin) - spark-shell command giving error(windows cmd and cygwin)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM