Description
Getting class not found while creating transaction table with omid.
0: jdbc:phoenix:> CREATE TABLE my_table (k BIGINT PRIMARY KEY, v VARCHAR) TRANSACTIONAL=true,TRANSACTION_PROVIDER='OMID'; Can't construct a java object for tag:yaml.org,2002:java.util.Map; exception=null; Can't construct a java object for tag:yaml.org,2002:org.apache.omid.tso.client.OmidClientConfiguration; exception=Class not found: org.apache.omid.tso.client.OmidClientConfiguration; in 'string', line 5, column 26: omidClientConfiguration: !!org.apache.omid.tso.client.Omi ... ^ in 'string', line 2, column 1: commitTableName: OMID_COMMIT_TABLE ^ at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127) at org.apache.phoenix.shaded.org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) at org.apache.phoenix.shaded.org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:458) at org.apache.phoenix.shaded.org.apache.omid.YAMLUtils.loadStringAsMap(YAMLUtils.java:81) at org.apache.phoenix.shaded.org.apache.omid.YAMLUtils.loadAsMap(YAMLUtils.java:72) at org.apache.phoenix.shaded.org.apache.omid.YAMLUtils.loadSettings(YAMLUtils.java:58) at org.apache.phoenix.shaded.org.apache.omid.YAMLUtils.loadSettings(YAMLUtils.java:40) at org.apache.phoenix.shaded.org.apache.omid.transaction.HBaseOmidClientConfiguration.<init>(HBaseOmidClientConfiguration.java:71) at org.apache.phoenix.shaded.org.apache.omid.transaction.HBaseOmidClientConfiguration.<init>(HBaseOmidClientConfiguration.java:58) at org.apache.phoenix.transaction.OmidTransactionProvider.getTransactionClient(OmidTransactionProvider.java:89) at org.apache.phoenix.query.ConnectionQueryServicesImpl.initTransactionClient(ConnectionQueryServicesImpl.java:5616) at org.apache.phoenix.transaction.OmidTransactionContext.<init>(OmidTransactionContext.java:60) at org.apache.phoenix.transaction.OmidTransactionProvider.getTransactionContext(OmidTransactionProvider.java:82) at org.apache.phoenix.execute.MutationState.startTransaction(MutationState.java:355) at org.apache.phoenix.util.TransactionUtil.getTableTimestamp(TransactionUtil.java:109) at org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:2354) at org.apache.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:1101) at org.apache.phoenix.compile.CreateTableCompiler$CreateTableMutationPlan.execute(CreateTableCompiler.java:383) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:418) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:400) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:399) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:387) at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1928) at sqlline.Commands.executeSingleQuery(Commands.java:1054) at sqlline.Commands.execute(Commands.java:1003) at sqlline.Commands.sql(Commands.java:967) at sqlline.SqlLine.dispatch(SqlLine.java:734) at sqlline.SqlLine.begin(SqlLine.java:541) at sqlline.SqlLine.start(SqlLine.java:267) at sqlline.SqlLine.main(SqlLine.java:206) Caused by: Can't construct a java object for tag:yaml.org,2002:org.apache.omid.tso.client.OmidClientConfiguration; exception=Class not found: org.apache.omid.tso.client.OmidClientConfiguration in 'string', line 5, column 26: omidClientConfiguration: !!org.apache.omid.tso.client.Omi ... ^ at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:333) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:325) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:145) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:306) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:170) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ... 33 more Caused by: org.apache.phoenix.shaded.org.yaml.snakeyaml.error.YAMLException: Class not found: org.apache.omid.tso.client.OmidClientConfiguration at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor.getClassForNode(Constructor.java:633) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.getConstructor(Constructor.java:321) at org.apache.phoenix.shaded.org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:331) ... 39 more
Attachments
Issue Links
- is caused by
-
PHOENIX-6151 Switch phoenix-client to shade-by-default mode
- Resolved
- links to