は、私は、コマンドにフェニックスのその後Apacheのフェニックスでビューを作成します。エラー505
CREATE VIEW "t1" (pk VARCHAR PRIMARY KEY, "f1".val VARCHAR)
を実行することはできないんだけど、私は次のエラーを取得するHBaseのコマンドで
create 't1', {NAME => 'f1', VERSIONS => 5}
を実行しています
org.apache.phoenix.schema.ReadOnlyTableException: ERROR 505 (42000): Table is read only.
at org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(ConnectionQueryServicesImpl.java:815)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(ConnectionQueryServicesImpl.java:1174)
at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:1974)
at org.apache.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:770)
at org.apache.phoenix.compile.CreateTableCompiler$2.execute(CreateTableCompiler.java:186)
at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:305)
at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:297)
at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:295)
at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1255)
at sqlline.Commands.execute(Commands.java:822)
at sqlline.Commands.sql(Commands.java:732)
at sqlline.SqlLine.dispatch(SqlLine.java:808)
at sqlline.SqlLine.begin(SqlLine.java:681)
at sqlline.SqlLine.start(SqlLine.java:398)
at sqlline.SqlLine.main(SqlLine.java:292)
これらはセクション
0123の下 https://phoenix.apache.org/faq.htmlに示されているコマンドでありますどのように私は既存のHBaseテーブルにPhoenixテーブルをマップしますか?代わりに、あなたは以下のような既存のHBaseのテーブルに
TABLE
を作成する必要がVIEW
を作成する
あなたはどのバージョンのphoenixを使用していますか? –