No. That is not my case. Actually I am running spark-sql , which is in 
spark-sql cli mode, and execute
sql queries against my hive tables. In spark-sql cli, there seems no exsiting 
sqlContext or sparkContext, 
only I can run some select/create/insert/delete operations. 

Best,
Sun.



[email protected]
 
From: Ted Yu
Date: 2016-02-04 11:49
To: [email protected]
CC: user
Subject: Re: Re: clear cache using spark sql cli
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
Date: 2016-02-04 11:22
To: [email protected]
CC: user
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