Apache Spark 的下载页面上的“为 Apache Hadoop 2.7 及更高版本预构建”是什么意思?
这是否意味着 Spark 中 HDFS 的必要库?如果是这样,Cassandra、s3、HBase、SQL 数据库、NoSQL 数据库等其他存储系统怎么样?我们是否需要下载任何库以连接到其他存储系统。
我正在尝试使用spark-submit执行spark应用程序.
c:\temp>spark-submit --master yarn ./SparkExamples.jar --class com.examples.WordCount
Error: No main class set in JAR; please specify one with --class
Run with --help for usage help or --verbose for debug output
Run Code Online (Sandbox Code Playgroud)
主类文件存在于jar文件中.我还检查了一个包含主类名的MANIFEST.MF文件.
清单 - 版本:1.0
Main-Class:com.examples.WordCount
我错过了什么?
class Wish{
val s = "Hello! User. Wish you a Great day."
}
object Wish{
def main(args: Array[String]){
val w = new Wish()
println("Value - " + w.s )
}
}
Run Code Online (Sandbox Code Playgroud)
Java 类可以在 Scala 中使用。同样,Scala 类可以在 Java 中使用吗?