You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Sa...@wellsfargo.com on 2015/10/14 16:10:25 UTC
thriftserver: access temp dataframe from in-memory of spark-shell
Hi,
Is it possible to load a spark-shell, in which we do any number of operations in a dataframe, then register it as a temporary table and get to see it through thriftserver?
ps. or even better, submit a full job and store the dataframe in thriftserver in-memory before the job completes.
I have been trying this without success, bee does not see the dataframes of the spark-shell's hive context.
If any of you confirms this possibility, I will try further ahead. So far it only seems to be able to manually read from persistent tables.
Thanks for any insights,
Saif
Re: thriftserver: access temp dataframe from in-memory of spark-shell
Posted by Michael Armbrust <mi...@databricks.com>.
Yes, call startWithContext from the spark shell:
https://github.com/apache/spark/blob/master/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala#L56
On Wed, Oct 14, 2015 at 7:10 AM, <Sa...@wellsfargo.com> wrote:
> Hi,
>
> Is it possible to load a spark-shell, in which we do any number of
> operations in a dataframe, then register it as a temporary table and get to
> see it through thriftserver?
> ps. or even better, submit a full job and store the dataframe in
> thriftserver in-memory before the job completes.
>
> I have been trying this without success, bee does not see the dataframes
> of the spark-shell’s hive context.
> If any of you confirms this possibility, I will try further ahead. So far
> it only seems to be able to manually read from persistent tables.
>
> Thanks for any insights,
> Saif
>
>