我正在尝试在我们的集群上设置Impala,但是当我尝试从表中选择count(*)时,我收到以下错误。
Query: select count(*) from events ERROR: AnalysisException: Failed to load metadata for table: events CAUSED BY: TableLoadingException: Failed to load metadata for table: events CAUSED BY: MetaException: javax.jdo.JDODataStoreException: Fetch of object "org.apache.hadoop.hive.metastore.model.MTable@3faf7a03" using statement "SELECT `A0`.`DB_ID`,`B0`.`DESC`,`B0`.`DB_LOCATION_URI`,`B0`.`NAME`,`B0`.`DB_ID`,`A0`.`SD_ID`,`C0`.`INPUT_FORMAT`,`C0`.`IS_COMPRESSED`,`C0`.`IS_STOREDASSUBDIRECTORIES`,`C0`.`LOCATION`,`C0`.`NUM_BUCKETS`,`C0`.`OUTPUT_FORMAT`,`C0`.`SD_ID`,`A0`.`VIEW_EXPANDED_TEXT`,`A0`.`VIEW_ORIGINAL_TEXT` FROM `TBLS` `A0` LEFT OUTER JOIN `DBS` `B0` ON `A0`.`DB_ID` = `B0`.`DB_ID` LEFT OUTER JOIN `SDS` `C0` ON `A0`.`SD_ID` = `C0`.`SD_ID` WHERE `A0`.`TBL_ID` = ?" failed : Unknown column 'C0.IS_STOREDASSUBDIRECTORIES' in 'field list' NestedThrowables: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'C0.IS_STOREDASSUBDIRECTORIES' in 'field list' CAUSED BY: JDODataStoreException: Fetch of object "org.apache.hadoop.hive.metastore.model.MTable@3faf7a03" using statement "SELECT `A0`.`DB_ID`,`B0`.`DESC`,`B0`.`DB_LOCATION_URI`,`B0`.`NAME`,`B0`.`DB_ID`,`A0`.`SD_ID`,`C0`.`INPUT_FORMAT`,`C0`.`IS_COMPRESSED`,`C0`.`IS_STOREDASSUBDIRECTORIES`,`C0`.`LOCATION`,`C0`.`NUM_BUCKETS`,`C0`.`OUTPUT_FORMAT`,`C0`.`SD_ID`,`A0`.`VIEW_EXPANDED_TEXT`,`A0`.`VIEW_ORIGINAL_TEXT` FROM `TBLS` `A0` LEFT OUTER JOIN `DBS` `B0` ON `A0`.`DB_ID` = `B0`.`DB_ID` LEFT OUTER JOIN `SDS` `C0` ON `A0`.`SD_ID` = `C0`.`SD_ID` WHERE `A0`.`TBL_ID` = ?" failed : Unknown column 'C0.IS_STOREDASSUBDIRECTORIES' in 'field list' CAUSED BY: MySQLSyntaxErrorException: Unknown column 'C0.IS_STOREDASSUBDIRECTORIES' in 'field list'
show tables工作正常。
我正在使用hive 0.9.0和Impala 1.0。
答案 0 :(得分:3)
似乎在Cloudera Manager中重新启动Impala服务解决了这个问题。
答案 1 :(得分:2)
您还可以运行refresh
命令从impala-shell刷新目录。