Re: Error in semantic analysis: Unable to fetch table

2012-10-19 Thread Chen Song
Hi Keith Can you get anything when you run "show databases" from php? Chen On Fri, Oct 19, 2012 at 2:48 AM, Keith Wiley wrote: > I never needed the -S. I would just call it with -e, but yeah, that's the > basic idea. The output is gathered in the remaining optional arguments to > exec(). > >

Re: Error in semantic analysis: Unable to fetch table

2012-10-18 Thread Keith Wiley
I never needed the -S. I would just call it with -e, but yeah, that's the basic idea. The output is gathered in the remaining optional arguments to exec(). On Oct 18, 2012, at 22:15 , MiaoMiao wrote: > What php, you are using exec('hive -S -e "select * from some_table"') > or something like t

Re: Error in semantic analysis: Unable to fetch table

2012-10-18 Thread MiaoMiao
What php, you are using exec('hive -S -e "select * from some_table"') or something like that in php? On Fri, Oct 19, 2012 at 4:46 AM, Keith Wiley wrote: > If I run a select command on the command line with -e it works. If I run the > same command inside hive (without -e) it still works...but if

Re: Error in semantic analysis: Unable to fetch table

2012-10-18 Thread Keith Wiley
Followup: If I run "show tables" then while I get a list from the command line, I get nothing from php. Furthermore, if I attempt to select from a bogus tablename on the command line, I get that same error, "semantic error" and whatnot...so it looks like the real problem is that when apache/php