星火:如何从火花shell中运行的火花文件 [英] Spark : how to run spark file from spark shell

查看:148
本文介绍了星火:如何从火花shell中运行的火花文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果
我使用CDH 5.2。我能够使用火花shell来运行命令。我怎么可以运行包含火花命令的文件(file.spark)。其次,有没有办法运行/编译CDH 5.2的Scala程序没有SBT?


I am using CDH 5.2. I am able to use spark-shell to run the commands. how can i run the file(file.spark) which contain spark commands. Second, is there any way to run/compile the scala programs in CDH 5.2 without sbt?

由于提前,

推荐答案

要加载的火花壳外部文件根本就

To load an external file from spark-shell simply do

:load PATH_TO_FILE

这将调用文件的一切。

This will call everything in your file.

我没有为你虽然SBT问题的解决方案惋惜: - )

I don't have a solution for your SBT question though sorry :-)

这篇关于星火:如何从火花shell中运行的火花文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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