In spark-shell, I can do:

scala> sqlContext.clearCache()

Is that not the case for you ?

On Wed, Feb 3, 2016 at 7:35 PM, [email protected] <[email protected]> wrote:

> Hi, Ted
> Yes. I had seen that issue. But it seems that in spark-sql cli cannot do
> command like :
>    sqlContext.clearCache()
> Is this right ? In spark-sql cli I can only run some sql queries. So I
> want to see if there
> are any available options to reach this.
>
> Best,
> Sun.
>
> ------------------------------
> [email protected]
>
>
> *From:* Ted Yu <[email protected]>
> *Date:* 2016-02-04 11:22
> *To:* [email protected]
> *CC:* user <[email protected]>
> *Subject:* Re: clear cache using spark sql cli
> Have you looked at
> SPARK-5909 Add a clearCache command to Spark SQL's cache manager
>
> On Wed, Feb 3, 2016 at 7:16 PM, [email protected] <[email protected]>
> wrote:
>
>> Hi,
>> How could I clear cache (execute sql query without any cache) using spark
>> sql cli ?
>> Is there any command available ?
>> Best,
>> Sun.
>>
>> ------------------------------
>> [email protected]
>>
>
>

Reply via email to