This fixes an InstallException raised when installing impala examples after hive examples are installed by properly checking if the sample table already exists in impala.
@@ -132,6 +132,8 @@ class SampleTable(object):
try:
# Already exists?
+ if self.app_name == 'impala':
+ db.execute_statement('INVALIDATE METADATA %s;' % (self.name,))
db.get_table('default', self.name)
msg = _('Table "%(table)s" already exists.') % {'table': self.name}
LOG.error(msg)