Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4886

Unable to discover tx service error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 5.0.0
    • None
    • None
    • HBASE 2.0,  apache-phoenix-5.0.0-HBase-2.0-bin  hadoop-3.1.0

    • Important

    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;

      throw `Unable to discover transaction service.`

      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 both configurations (client + server) in each hbase-site.xml 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 `tephra start`,  In the tephra log, throw:

      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
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            1024bit cherish peng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified