Hi, I got pretty the same question.
Here is console output:
[node05.lol.ru:21000] > connect localhost:21000;
Connected to localhost:21000
Server version: impalad version 1.0 RELEASE (build
d1bf0d1dac339af3692ffa17a5e3fdae0aed751f)
*[localhost:21000] > show tables;*
Query: show tables
*ERROR: UncheckedExecutionException: java.lang.IllegalStateException:
MetaException(message:Got exception:
org.apache.thrift.transport.TTransportException null)*
*CAUSED BY: IllegalStateException: MetaException(message:Got exception:
org.apache.thrift.transport.TTransportException null)*
*CAUSED BY: MetaException: Got exception:
org.apache.thrift.transport.TTransportException null*
*[localhost:21000] > refresh;*
*Successfully refreshed catalog*
[localhost:21000] > show tables;
Query: show tables
Query finished, fetching results ...
+-------------+
name |
+-------------+
impala_test |
xvlr |
+-------------+
Returned 2 row(s) in 0.05s
So I do see tables using impala-shell.
I try to execute the same *show tables;* from HUE UI, but I get only one
table as a response.
How Can I force it to refresh metadata and see all tables?
суббота, 26 января 2013 г., 4:03:13 UTC+4 пользователь Deepsoft написал:
Henry,
Thanks for the prompt reply. Now I'm able to see hive data instantly.
Thanks.
-Dipesh
On Friday, January 25, 2013 3:43:26 PM UTC-8, Henry wrote:On 25 January 2013 15:39, Deepsoft wrote:
Hi,
I have created some hive tables and my impala service was running.
I can run query in hive and see table data as well.
But when i try to run the same query on my impala shell, I get error
saying
Caused by: com.cloudera.impala.common.AnalysisException: Unknown table:
Do I need to restart impala service so that it can read hive metastore
again? I read that impala uses hive's metastore to get hive's data. So is
it reading hive's metadata during startup? Am I missing something here?
Thanks.
-Dipesh
Hi -
You need to use the 'refresh' command to update the metadata if it
changes.
From the shell, just type 'refresh'. Then you should be able to see your
table.
Henry
--
Henry Robinson
Software Engineer
Cloudera
415-994-6679