Recreating Hive metadata after decommissioning a node
After removing/decommissioning a node that stored the Hive metadata, truncate the Hive metadata table, then recreate the table.
After removing/decommissioning a node that stored the hive metadata, truncate the hive metadata table, then recreate the table. In the hive-site.xml, set the parameters as shown in the following example to specify a different keyspace and table for the Hive metastore:
<property> <name>cassandra.connection.metaStoreKeyspaceName</name> <value>newKeyspaceName</value> </property> <property> <name>cassandra.connection.metaStoreColumnFamilyName</name> <value>MetaStore</value> </property>
This action is necessary to prevent an exception in SemanticAnalyzer.genFileSinkPlan.