我创建了一个名为 test
在命名空间下 np
(np:测试)和加载记录如下。 create 'np:test','cf' put 'np:test','1','cf:c1','99'
我还在phoenix中创建了一个模式'np',并创建了一个phoenix表来Maphbase,如下所示。 create schema 'np'; CREATE TABLE "test"(PK VARCHAR PRIMARY KEY, "np"."c1" VARCHAR);
可以通过hbase表扫描插入的数据,但不能通过phoenix表中的hbase表扫描插入的数据。Map未完成。。除此之外,我还尝试创建如下视图 CREATE VIEW "test"(PK VARCHAR PRIMARY KEY, "np"."c1" VARCHAR);
得到 Error: ERROR 505 (42000): Table is read only. (state=42000,code=505) org.apache.phoenix.schema.ReadOnlyTableException: ERROR 505 (42000): Table is read only. at org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(ConnectionQueryServicesImpl.java:1069) at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:1434) at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:2624) at org.apache.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:1040) at org.apache.phoenix.compile.CreateTableCompiler$2.execute(CreateTableCompiler.java:212) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:393) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:376) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:374) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:363) at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1707) at sqlline.Commands.execute(Commands.java:822) at sqlline.Commands.sql(Commands.java:732) at sqlline.SqlLine.dispatch(SqlLine.java:813) at sqlline.SqlLine.begin(SqlLine.java:686) at sqlline.SqlLine.start(SqlLine.java:398) at sqlline.SqlLine.main(SqlLine.java:291)
请帮助解析hbase phoenix表Map。提前谢谢!
暂无答案!
目前还没有任何答案,快来回答吧!