You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Hardika Catur Sapta <ha...@gmail.com> on 2015/12/03 10:02:49 UTC

How do How do the operation Tephra

Hay guys,
We plan to integrate with Apache HBase apache tephra, which we know it uses
apache phoenix.

How do the operation Tephra? whether using apache phoenix ?? and how to run
it.

Thank you,
-Hardika C. S.

Re: How do How do the operation Tephra

Posted by James Taylor <ja...@apache.org>.
I'd recommend going over to http://tephra.io and asking them on their
mailing list.
Thanks,
James

On Friday, December 4, 2015, Hardika Catur Sapta <
hardikacatursapta@gmail.com> wrote:

> how about using HBase ??
> whether it can use HBase directly?
>
> 2015-12-04 2:37 GMT+07:00 Thomas D'Silva <tdsilva@salesforce.com
> <javascript:_e(%7B%7D,'cvml','tdsilva@salesforce.com');>>:
>
>> If you checkout the latest 4.x or master branch (depending on which
>> HBase version you use), you can test using transactions in Phoenix.
>> Tephra is used for transaction support and is used to perform conflict
>> detection.
>>
>> To start the Tephra transaction manager you have to set set the
>> following config in hbase-site.xml on your server
>>         <property>
>>                  <name>data.tx.snapshot.dir</name>
>>                  <value>DIR_NAME</value>
>>         </property>
>>
>> and $HBASE_HOME needs to be set before running ./bin/tephra start
>>
>> To create a transactional table you can use the TRANSACTIONAL attribute
>> for eg:
>> CREATE TABLE MY_TABLE (k INTEGER PRIMARY KEY, v VARCHAR)
>> TRANSACTIONAL=true;
>>
>> If you upsert a batch of rows and call commit  all or none of the rows
>> will be committed. A transaction is started implicitly when you
>> execute a statement over a transactional table. If two clients modify
>> the same row at the same time an exception will be thrown. Within a
>> transaction you are also able to see (query) uncommitted data.
>> You can see more examples of how to use transactions in TransactionIT.java
>>
>> Transaction support will be in the next version of Phoenix (4.7.0)
>> which will be released soon.
>>
>> Thanks,
>> Thomas
>>
>> On Thu, Dec 3, 2015 at 11:00 AM, Thomas D'Silva <tdsilva@salesforce.com
>> <javascript:_e(%7B%7D,'cvml','tdsilva@salesforce.com');>> wrote:
>> > Phoenix is working on supporting transactions using tephra (see
>> > PHOENIX-1674). If you want to use HBase directly with tephra, the
>> > tephra website has a getting started guide with an example (see
>> > https://github.com/caskdata/tephra).
>> >
>> > -Thomas
>> >
>> > On Thu, Dec 3, 2015 at 1:02 AM, Hardika Catur Sapta
>> > <hardikacatursapta@gmail.com
>> <javascript:_e(%7B%7D,'cvml','hardikacatursapta@gmail.com');>> wrote:
>> >> Hay guys,
>> >> We plan to integrate with Apache HBase apache tephra, which we know it
>> uses
>> >> apache phoenix.
>> >>
>> >> How do the operation Tephra? whether using apache phoenix ?? and how
>> to run
>> >> it.
>> >>
>> >> Thank you,
>> >> -Hardika C. S.
>>
>
>

Re: How do How do the operation Tephra

Posted by Hardika Catur Sapta <ha...@gmail.com>.
how about using HBase ??
whether it can use HBase directly?

2015-12-04 2:37 GMT+07:00 Thomas D'Silva <td...@salesforce.com>:

> If you checkout the latest 4.x or master branch (depending on which
> HBase version you use), you can test using transactions in Phoenix.
> Tephra is used for transaction support and is used to perform conflict
> detection.
>
> To start the Tephra transaction manager you have to set set the
> following config in hbase-site.xml on your server
>         <property>
>                  <name>data.tx.snapshot.dir</name>
>                  <value>DIR_NAME</value>
>         </property>
>
> and $HBASE_HOME needs to be set before running ./bin/tephra start
>
> To create a transactional table you can use the TRANSACTIONAL attribute
> for eg:
> CREATE TABLE MY_TABLE (k INTEGER PRIMARY KEY, v VARCHAR)
> TRANSACTIONAL=true;
>
> If you upsert a batch of rows and call commit  all or none of the rows
> will be committed. A transaction is started implicitly when you
> execute a statement over a transactional table. If two clients modify
> the same row at the same time an exception will be thrown. Within a
> transaction you are also able to see (query) uncommitted data.
> You can see more examples of how to use transactions in TransactionIT.java
>
> Transaction support will be in the next version of Phoenix (4.7.0)
> which will be released soon.
>
> Thanks,
> Thomas
>
> On Thu, Dec 3, 2015 at 11:00 AM, Thomas D'Silva <td...@salesforce.com>
> wrote:
> > Phoenix is working on supporting transactions using tephra (see
> > PHOENIX-1674). If you want to use HBase directly with tephra, the
> > tephra website has a getting started guide with an example (see
> > https://github.com/caskdata/tephra).
> >
> > -Thomas
> >
> > On Thu, Dec 3, 2015 at 1:02 AM, Hardika Catur Sapta
> > <ha...@gmail.com> wrote:
> >> Hay guys,
> >> We plan to integrate with Apache HBase apache tephra, which we know it
> uses
> >> apache phoenix.
> >>
> >> How do the operation Tephra? whether using apache phoenix ?? and how to
> run
> >> it.
> >>
> >> Thank you,
> >> -Hardika C. S.
>

Re: How do How do the operation Tephra

Posted by Thomas D'Silva <td...@salesforce.com>.
If you checkout the latest 4.x or master branch (depending on which
HBase version you use), you can test using transactions in Phoenix.
Tephra is used for transaction support and is used to perform conflict
detection.

To start the Tephra transaction manager you have to set set the
following config in hbase-site.xml on your server
        <property>
                 <name>data.tx.snapshot.dir</name>
                 <value>DIR_NAME</value>
        </property>

and $HBASE_HOME needs to be set before running ./bin/tephra start

To create a transactional table you can use the TRANSACTIONAL attribute for eg:
CREATE TABLE MY_TABLE (k INTEGER PRIMARY KEY, v VARCHAR) TRANSACTIONAL=true;

If you upsert a batch of rows and call commit  all or none of the rows
will be committed. A transaction is started implicitly when you
execute a statement over a transactional table. If two clients modify
the same row at the same time an exception will be thrown. Within a
transaction you are also able to see (query) uncommitted data.
You can see more examples of how to use transactions in TransactionIT.java

Transaction support will be in the next version of Phoenix (4.7.0)
which will be released soon.

Thanks,
Thomas

On Thu, Dec 3, 2015 at 11:00 AM, Thomas D'Silva <td...@salesforce.com> wrote:
> Phoenix is working on supporting transactions using tephra (see
> PHOENIX-1674). If you want to use HBase directly with tephra, the
> tephra website has a getting started guide with an example (see
> https://github.com/caskdata/tephra).
>
> -Thomas
>
> On Thu, Dec 3, 2015 at 1:02 AM, Hardika Catur Sapta
> <ha...@gmail.com> wrote:
>> Hay guys,
>> We plan to integrate with Apache HBase apache tephra, which we know it uses
>> apache phoenix.
>>
>> How do the operation Tephra? whether using apache phoenix ?? and how to run
>> it.
>>
>> Thank you,
>> -Hardika C. S.

Re: How do How do the operation Tephra

Posted by Thomas D'Silva <td...@salesforce.com>.
Phoenix is working on supporting transactions using tephra (see
PHOENIX-1674). If you want to use HBase directly with tephra, the
tephra website has a getting started guide with an example (see
https://github.com/caskdata/tephra).

-Thomas

On Thu, Dec 3, 2015 at 1:02 AM, Hardika Catur Sapta
<ha...@gmail.com> wrote:
> Hay guys,
> We plan to integrate with Apache HBase apache tephra, which we know it uses
> apache phoenix.
>
> How do the operation Tephra? whether using apache phoenix ?? and how to run
> it.
>
> Thank you,
> -Hardika C. S.