You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ravi Kanth <ra...@gmail.com> on 2014/08/13 15:48:22 UTC

Rowkey Timestamp

Team,

I want to create a table with rowkey + timestamp in hbase shell. Is it
possible?

Regards,
Ravi

Re: Rowkey Timestamp

Posted by tobe <to...@gmail.com>.
@Ravi Do you mean using a key + timestamp as rowkey in HBase shell?

If so, you can `import java.text.SimpleDateFormat` to get the timestamp.
More detail on http://hbase.apache.org/book/shell_tricks.html.


On Wed, Aug 13, 2014 at 11:50 PM, Ted Yu <yu...@gmail.com> wrote:

> rowkey gets involved when you insert / delete data.
>
> At time of table creation, you specify column family settings.
>
> Cheers
>
>
> On Wed, Aug 13, 2014 at 6:48 AM, Ravi Kanth <ra...@gmail.com>
> wrote:
>
> > Team,
> >
> > I want to create a table with rowkey + timestamp in hbase shell. Is it
> > possible?
> >
> > Regards,
> > Ravi
> >
>

Re: Rowkey Timestamp

Posted by Ted Yu <yu...@gmail.com>.
rowkey gets involved when you insert / delete data.

At time of table creation, you specify column family settings.

Cheers


On Wed, Aug 13, 2014 at 6:48 AM, Ravi Kanth <ra...@gmail.com>
wrote:

> Team,
>
> I want to create a table with rowkey + timestamp in hbase shell. Is it
> possible?
>
> Regards,
> Ravi
>