phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cherish peng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-4886) Unable to discover tx service error
Date Mon, 03 Sep 2018 03:49:00 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

cherish peng updated PHOENIX-4886:
----------------------------------
    Description: 
 I need to create a table with Transactional=true option, like this:

CREATE IMMUTABLE TABLE IF NOT EXISTS events_cessions (
 domain VARCHAR(24) NOT NULL,
 name VARCHAR(24) NOT NULL
 CONSTRAINT pk PRIMARY KEY (domain, name)
 ) IMMUTABLE_STORAGE_SCHEME=ONE_CELL_PER_COLUMN, COLUMN_ENCODED_BYTES=NONE, TRANSACTIONAL=TRUE;

{color:#d04437}throw `Unable to discover transaction service.`{color}

I had found this article: [Unable to discover tx service error|[http://apache-phoenix-user-list.1124778.n5.nabble.com/Unable-to-discover-tx-service-error-td2851.html]|http://apache-phoenix-user-list.1124778.n5.nabble.com/Unable-to-discover-tx-service-error-td2851.html],]

After having *{color:#f79232}both configurations (client + server) in each hbase-site.xml{color}*
files follow this article: [https://phoenix.apache.org/transactions.html] 

I aslo add `export HBASE_HOME=/godalgo/hbase-2.0.0` to tephra-env.sh

when i command `{color:#f79232}tephra start{color}`,  In the {color:#f79232}tephra log{color},
throw:
{code:java}
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Maps
at com.google.inject.assistedinject.BindingCollector.<init>(BindingCollector.java:34)
at com.google.inject.assistedinject.FactoryModuleBuilder.<init>(FactoryModuleBuilder.java:206)
at org.apache.tephra.runtime.TransactionDistributedModule.configure(TransactionDistributedModule.java:71)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62) at org.apache.tephra.TransactionServiceMain.start(TransactionServiceMain.java:103)
at org.apache.tephra.TransactionServiceMain.doMain(TransactionServiceMain.java:85) at org.apache.tephra.TransactionServiceMain.main(TransactionServiceMain.java:49)
Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.util.$Maps at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 14 more 2018-09-03 11:15:27,678
INFO  [Thread-0] tephra.TransactionServiceMain: Stopping TransactionServiceMain
{code}
 

  was:
My env:

 
{code:java}
HBASE 2.0,  apache-phoenix-5.0.0-HBase-2.0-bin  hadoop-3.1.0
{code}
 

I need to create a table with Transactional=true option, like this:

CREATE IMMUTABLE TABLE IF NOT EXISTS events_cessions (
 domain VARCHAR(24) NOT NULL,
 name VARCHAR(24) NOT NULL
 CONSTRAINT pk PRIMARY KEY (domain, name)
 ) IMMUTABLE_STORAGE_SCHEME=ONE_CELL_PER_COLUMN, COLUMN_ENCODED_BYTES=NONE, TRANSACTIONAL=TRUE;

{color:#d04437}throw `Unable to discover transaction service.`{color}

I had found this article: [Unable to discover tx service error|[http://apache-phoenix-user-list.1124778.n5.nabble.com/Unable-to-discover-tx-service-error-td2851.html]|http://apache-phoenix-user-list.1124778.n5.nabble.com/Unable-to-discover-tx-service-error-td2851.html],]

After having *{color:#f79232}both configurations (client + server) in each hbase-site.xml{color}*
files follow this article: [https://phoenix.apache.org/transactions.html] 

I aslo add `export HBASE_HOME=/godalgo/hbase-2.0.0` to tephra-env.sh

when i command `{color:#f79232}tephra start{color}`,  In the {color:#f79232}tephra log{color},
throw:
{code:java}
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Maps
at com.google.inject.assistedinject.BindingCollector.<init>(BindingCollector.java:34)
at com.google.inject.assistedinject.FactoryModuleBuilder.<init>(FactoryModuleBuilder.java:206)
at org.apache.tephra.runtime.TransactionDistributedModule.configure(TransactionDistributedModule.java:71)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62) at org.apache.tephra.TransactionServiceMain.start(TransactionServiceMain.java:103)
at org.apache.tephra.TransactionServiceMain.doMain(TransactionServiceMain.java:85) at org.apache.tephra.TransactionServiceMain.main(TransactionServiceMain.java:49)
Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.util.$Maps at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 14 more 2018-09-03 11:15:27,678
INFO  [Thread-0] tephra.TransactionServiceMain: Stopping TransactionServiceMain
{code}
 


> Unable to discover tx service error
> -----------------------------------
>
>                 Key: PHOENIX-4886
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4886
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0
>         Environment: HBASE 2.0,  apache-phoenix-5.0.0-HBase-2.0-bin  hadoop-3.1.0
>            Reporter: cherish peng
>            Priority: Blocker
>              Labels: HBASE, HBASE2.0, Transactions, tephra
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
>  I need to create a table with Transactional=true option, like this:
> CREATE IMMUTABLE TABLE IF NOT EXISTS events_cessions (
>  domain VARCHAR(24) NOT NULL,
>  name VARCHAR(24) NOT NULL
>  CONSTRAINT pk PRIMARY KEY (domain, name)
>  ) IMMUTABLE_STORAGE_SCHEME=ONE_CELL_PER_COLUMN, COLUMN_ENCODED_BYTES=NONE, TRANSACTIONAL=TRUE;
> {color:#d04437}throw `Unable to discover transaction service.`{color}
> I had found this article: [Unable to discover tx service error|[http://apache-phoenix-user-list.1124778.n5.nabble.com/Unable-to-discover-tx-service-error-td2851.html]|http://apache-phoenix-user-list.1124778.n5.nabble.com/Unable-to-discover-tx-service-error-td2851.html],]
> After having *{color:#f79232}both configurations (client + server) in each hbase-site.xml{color}*
files follow this article: [https://phoenix.apache.org/transactions.html] 
> I aslo add `export HBASE_HOME=/godalgo/hbase-2.0.0` to tephra-env.sh
> when i command `{color:#f79232}tephra start{color}`,  In the {color:#f79232}tephra log{color},
throw:
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Maps
at com.google.inject.assistedinject.BindingCollector.<init>(BindingCollector.java:34)
at com.google.inject.assistedinject.FactoryModuleBuilder.<init>(FactoryModuleBuilder.java:206)
at org.apache.tephra.runtime.TransactionDistributedModule.configure(TransactionDistributedModule.java:71)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62) at org.apache.tephra.TransactionServiceMain.start(TransactionServiceMain.java:103)
at org.apache.tephra.TransactionServiceMain.doMain(TransactionServiceMain.java:85) at org.apache.tephra.TransactionServiceMain.main(TransactionServiceMain.java:49)
Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.util.$Maps at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 14 more 2018-09-03 11:15:27,678
INFO  [Thread-0] tephra.TransactionServiceMain: Stopping TransactionServiceMain
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message