You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by la...@apache.org on 2016/03/19 06:37:14 UTC

Re: Tephra fails with missing data.tx.snapshot.dir, even though it's in the server's hbase-site.xml

Grrrrr. Some of the -test jars that ship with the Phoenix build contain an hbase-site.xml and hence the settings are lost.If I remove all the test jars things are fine.

So it seems I cannot run tephra against a tar that built myself, unless I remove all the -test jars.
Then I tried the official build from the website to see whether that works out of the box, there it fails with 

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/util/concurrent/Service$Listener
        at co.cask.tephra.distributed.TransactionService.doStart(TransactionService.java:78)
Either I am especially dense today or something is not right. :)

-- Lars

      From: "larsh@apache.org" <la...@apache.org>
 To: Dev <de...@phoenix.apache.org> 
 Sent: Friday, March 18, 2016 10:11 PM
 Subject: Tephra fails data.tx.snapshot.dir, even though it's the server's hbase-site.xml
   
I built phoenix-0.4.7-0.98 from source and I am trying start tephra.
I added 

  <property>
    <name>data.tx.snapshot.dir</name>
    <value>/tmp/tephra/snapshots</value>
  </property>
  <property>
    <name>data.tx.timeout</name>
    <value>60</value>
  </property>

To the server's hbase-site.xml and export HBASE_HOME to point the HBase install. I double and triple checked this.

Yet, regardless of what I do tephra fails to startup and I see this in the logs:

Exception in thread "HDFSTransactionStateStorage STARTING" java.lang.IllegalStateException: Snapshot directory is not configured.  Please set data.tx.snapshot.dir in configuration.        at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
        at co.cask.tephra.persist.HDFSTransactionStateStorage.startUp(HDFSTransactionStateStorage.java:91)
        at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43)
        at java.lang.Thread.run(Thread.java:745)

Has anybody else seen this?

-- Lars

  

Re: Tephra fails with missing data.tx.snapshot.dir, even though it's in the server's hbase-site.xml

Posted by la...@apache.org.
And turns out I also need to remove the pherf jars from Phoenix's lib dir.I think we change the tephra script to automatically not include those.
-- Lars

      From: "larsh@apache.org" <la...@apache.org>
 To: "dev@phoenix.apache.org" <de...@phoenix.apache.org>; "larsh@apache.org" <la...@apache.org> 
 Sent: Friday, March 18, 2016 10:37 PM
 Subject: Re: Tephra fails with missing data.tx.snapshot.dir, even though it's in the server's hbase-site.xml
   
Grrrrr. Some of the -test jars that ship with the Phoenix build contain an hbase-site.xml and hence the settings are lost.If I remove all the test jars things are fine.

So it seems I cannot run tephra against a tar that built myself, unless I remove all the -test jars.
Then I tried the official build from the website to see whether that works out of the box, there it fails with 

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/util/concurrent/Service$Listener
        at co.cask.tephra.distributed.TransactionService.doStart(TransactionService.java:78)
Either I am especially dense today or something is not right. :)

-- Lars

      From: "larsh@apache.org" <la...@apache.org>
 To: Dev <de...@phoenix.apache.org> 
 Sent: Friday, March 18, 2016 10:11 PM
 Subject: Tephra fails data.tx.snapshot.dir, even though it's the server's hbase-site.xml
  
I built phoenix-0.4.7-0.98 from source and I am trying start tephra.
I added 

  <property>
    <name>data.tx.snapshot.dir</name>
    <value>/tmp/tephra/snapshots</value>
  </property>
  <property>
    <name>data.tx.timeout</name>
    <value>60</value>
  </property>

To the server's hbase-site.xml and export HBASE_HOME to point the HBase install. I double and triple checked this.

Yet, regardless of what I do tephra fails to startup and I see this in the logs:

Exception in thread "HDFSTransactionStateStorage STARTING" java.lang.IllegalStateException: Snapshot directory is not configured.  Please set data.tx.snapshot.dir in configuration.        at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
        at co.cask.tephra.persist.HDFSTransactionStateStorage.startUp(HDFSTransactionStateStorage.java:91)
        at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43)
        at java.lang.Thread.run(Thread.java:745)

Has anybody else seen this?

-- Lars