Re: How to change hive database?

2015-07-08 Thread Arun Luthra
Thanks, it works. On Tue, Jul 7, 2015 at 11:15 AM, Ted Yu wrote: > See this thread http://search-hadoop.com/m/q3RTt0NFls1XATV02 > > Cheers > > On Tue, Jul 7, 2015 at 11:07 AM, Arun Luthra > wrote: > >> >> https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.hive.HiveCo

Re: How to change hive database?

2015-07-07 Thread Ted Yu
See this thread http://search-hadoop.com/m/q3RTt0NFls1XATV02 Cheers On Tue, Jul 7, 2015 at 11:07 AM, Arun Luthra wrote: > > https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.hive.HiveContext > > I'm getting org.apache.spark.sql.catalyst.analysis.NoSuchTableException

How to change hive database?

2015-07-07 Thread Arun Luthra
https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.hive.HiveContext I'm getting org.apache.spark.sql.catalyst.analysis.NoSuchTableException from: val dataframe = hiveContext.table("other_db.mytable") Do I have to change current database to access it? Is it possible to