org.apache.spark.examples.SparkPi

Warning: Local jar /usr/local/spark/ does not exist, skipping.
java.lang.ClassNotFoundException: org.apache.spark.examples.SparkPi
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.spark.util.Utils . c l a s s F o r N a m e ( U t i l s . s c a l a : 228 ) a t o r g . a p a c h e . s p a r k . d e p l o y . S p a r k S u b m i t .classForName(Utils.scala:228) at org.apache.spark.deploy.SparkSubmit .classForName(Utils.scala:228)atorg.apache.spark.deploy.SparkSubmit.org a p a c h e apache apachespark d e p l o y deploy deploySparkSubmit$ r u n M a i n ( S p a r k S u b m i t . s c a l a : 693 ) a t o r g . a p a c h e . s p a r k . d e p l o y . S p a r k S u b m i t runMain(SparkSubmit.scala:693) at org.apache.spark.deploy.SparkSubmit runMain(SparkSubmit.scala:693)atorg.apache.spark.deploy.SparkSubmit.doRunMain 1 ( S p a r k S u b m i t . s c a l a : 185 ) a t o r g . a p a c h e . s p a r k . d e p l o y . S p a r k S u b m i t 1(SparkSubmit.scala:185) at org.apache.spark.deploy.SparkSubmit 1(SparkSubmit.scala:185)atorg.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:210)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:124)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

org.apache.spark.examples.SparkPi_第1张图片
解决方案:
格式问题!使用txt文档 改变notePad的格式!

你可能感兴趣的:(Spark)