phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Poorna Chandra <poo...@apache.org>
Subject Re: Unable to discover tx service error
Date Fri, 04 Nov 2016 01:25:32 GMT
Hi Ashish,

Looks like transaction manager may not be running. Is the transaction
manager running? If so, can you look into the transaction manager log to
see if there are any errors?

Thanks,
Poorna.


On Thu, Nov 3, 2016 at 10:20 AM, ashish tapdiya <ashishtapdiya@gmail.com>
wrote:

> Hi,
>
> I am trying to create transactional tables and during table creation
> following error is thrown (phoenix version is 4.8.1):
>
>
> java.lang.RuntimeException: java.lang.Exception: Thrift error for
> org.apache.tephra.distributed.TransactionServiceClient$2@6ea02a8d: Unable
> to discover tx service.
>         at com.google.common.base.Throwables.propagate(
> Throwables.java:160)
>         at org.apache.tephra.distributed.TransactionServiceClient.
> startShort(TransactionServiceClient.java:268)
>         at org.apache.tephra.TransactionContext.start(
> TransactionContext.java:91)
>         at org.apache.phoenix.execute.MutationState.startTransaction(
> MutationState.java:422)
>         at org.apache.phoenix.util.TransactionUtil.getTableTimestamp(
> TransactionUtil.java:99)
>         at org.apache.phoenix.schema.MetaDataClient.createTableInternal(
> MetaDataClient.java:1891)
>         at org.apache.phoenix.schema.MetaDataClient.createTable(
> MetaDataClient.java:940)
>         at org.apache.phoenix.compile.CreateTableCompiler$2.execute(
> CreateTableCompiler.java:193)
>         at org.apache.phoenix.jdbc.PhoenixStatement$2.call(
> PhoenixStatement.java:344)
>         at org.apache.phoenix.jdbc.PhoenixStatement$2.call(
> PhoenixStatement.java:332)
>         at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>         at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(
> PhoenixStatement.java:331)
>         at org.apache.phoenix.jdbc.PhoenixPreparedStatement.executeUpdate(
> PhoenixPreparedStatement.java:199)
>         at Populate_Transact.createTables(Populate_Transact.java:75)
>         at Populate_Transact.main(Populate_Transact.java:30)
> Caused by: java.lang.Exception: Thrift error for
> org.apache.tephra.distributed.TransactionServiceClient$2@6ea02a8d: Unable
> to discover tx service.
>         at org.apache.tephra.distributed.TransactionServiceClient.execute(
> TransactionServiceClient.java:227)
>         at org.apache.tephra.distributed.TransactionServiceClient.execute(
> TransactionServiceClient.java:185)
>         at org.apache.tephra.distributed.TransactionServiceClient.
> startShort(TransactionServiceClient.java:259)
>         ... 13 more
> Caused by: org.apache.phoenix.shaded.org.apache.thrift.TException: Unable
> to discover tx service.
>         at org.apache.tephra.distributed.AbstractClientProvider.newClient(
> AbstractClientProvider.java:106)
>         at org.apache.tephra.distributed.AbstractClientProvider.newClient(
> AbstractClientProvider.java:85)
>         at org.apache.tephra.distributed.PooledClientProvider$
> TxClientPool.create(PooledClientProvider.java:48)
>         at org.apache.tephra.distributed.PooledClientProvider$
> TxClientPool.create(PooledClientProvider.java:41)
>         at org.apache.tephra.distributed.ElasticPool.getOrCreate(
> ElasticPool.java:138)
>         at org.apache.tephra.distributed.ElasticPool.obtain(
> ElasticPool.java:125)
>         at org.apache.tephra.distributed.PooledClientProvider.
> getCloseableClient(PooledClientProvider.java:101)
>         at org.apache.tephra.distributed.TransactionServiceClient.execute(
> TransactionServiceClient.java:214)
>
> Thanks,
> Ashish
>

Mime
View raw message