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, fightf...@163.com <fightf...@163.com> 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. > > ------------------------------ > fightf...@163.com > > > *From:* Ted Yu <yuzhih...@gmail.com> > *Date:* 2016-02-04 11:22 > *To:* fightf...@163.com > *CC:* user <user@spark.apache.org> > *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, fightf...@163.com <fightf...@163.com> > wrote: > >> Hi, >> How could I clear cache (execute sql query without any cache) using spark >> sql cli ? >> Is there any command available ? >> Best, >> Sun. >> >> ------------------------------ >> fightf...@163.com >> > >