在创建架构或表时,我收到此错误:
无法移动工作目录快照{ ss = _UPGRADING_TABLE_SYSTEM.MUTEX table = SYSTEM.MUTEX type = DISABLED}
因此,由于此错误,它不会创建架构或表。
Java程序:
Properties connectionProps = new Properties();
connectionProps.put("phoenix.schema.isNamespaceMappingEnabled", "true");
connectionProps.put("phoenix.schema.mapSystemTablesToNamespace", "true");
connection =
DriverManager.getConnection("jdbc:phoenix:localhost",connectionProps);
statement = connection.createStatement();
statement.executeUpdate("CREATE SCHEMA MYSCHEMA");
connection .commit();
HDFS-site.xml中
<property>
<name>phoenix.schema.isNamespaceMappingEnabled</name>
<value>true</value>
</property>
<property>
<name>phoenix.schema.mapSystemTablesToNamespace</name>
<value>true</value>
</property>
</code>
HBase版本:1.2.6
凤凰版:4.10.0-HBase-1.2.0
Windows:8.1