You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Carter <gy...@hotmail.com> on 2014/06/08 13:00:12 UTC

How to get the help or explanation for the functions in Spark shell?

Hi All,

I am new to Spark. 

In the Spark shell, how can I get the help or explanation for those
functions that I can use for a variable or RDD? For example, after I input a
RDD's name with a dot (.) at the end, if I press the Tab key, a list of
functions that I can use for this RDD will be displayed, but I dont know how
to use these functions.

Your help is greatly appreciated.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-get-the-help-or-explanation-for-the-functions-in-Spark-shell-tp7191.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to get the help or explanation for the functions in Spark shell?

Posted by Nicholas Chammas <ni...@gmail.com>.
In PySpark you can also do help(my_rdd) and get a nice help page of methods
available.

2014년 6월 8일 일요일, Carter<gy...@hotmail.com>님이 작성한 메시지:

> Thank you very much Gerard.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-get-the-help-or-explanation-for-the-functions-in-Spark-shell-tp7191p7193.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>

Re: How to get the help or explanation for the functions in Spark shell?

Posted by Carter <gy...@hotmail.com>.
Thank you very much Gerard.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-get-the-help-or-explanation-for-the-functions-in-Spark-shell-tp7191p7193.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to get the help or explanation for the functions in Spark shell?

Posted by Gerard Maas <ge...@gmail.com>.
You can consult the docs at :
https://spark.apache.org/docs/latest/api/scala/index.html#package

In particular, the rdd docs contain the explanation of each method :
https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.rdd.RDD

Kr, Gerard
On Jun 8, 2014 1:00 PM, "Carter" <gy...@hotmail.com> wrote:

> Hi All,
>
> I am new to Spark.
>
> In the Spark shell, how can I get the help or explanation for those
> functions that I can use for a variable or RDD? For example, after I input
> a
> RDD's name with a dot (.) at the end, if I press the Tab key, a list of
> functions that I can use for this RDD will be displayed, but I dont know
> how
> to use these functions.
>
> Your help is greatly appreciated.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-get-the-help-or-explanation-for-the-functions-in-Spark-shell-tp7191.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>