Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> How to generate global unique ID?


Copy link to this message
-
Re: How to generate global unique ID?
Hi, Tim,

I think sequential integer would be better. Is it difficult to generate a
global integer?
BTW: how to generate UUID in Hive? thanks

Regards,
afancy

On Tue, Nov 16, 2010 at 9:11 AM, Tim Robertson <[EMAIL PROTECTED]>wrote:

> Does it need to be a sequential INT? If not, then a UUID works very well.
>
> Cheers,
> Tim
>
>
> On Tue, Nov 16, 2010 at 8:55 AM, afancy <[EMAIL PROTECTED]> wrote:
> > Hi, Zhang,
> > How to integrate this snowflake with Hive?  Thanks!
> > Regards,
> > afancy
> >
> > On Mon, Nov 15, 2010 at 10:35 AM, Jeff Zhang <[EMAIL PROTECTED]> wrote:
> >>
> >> Please refer https://github.com/twitter/snowflake
> >>
> >>
> >>
> >> On Mon, Nov 15, 2010 at 5:09 PM, afancy <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> > Does anybody know how to generate a unique ID in Hive? I have a table:
> >> > hive> describe results;
> >> > OK
> >> > id int
> >> > test string
> >> > Time taken: 0.091 seconds
> >> >
> >> > When I insert data into the table results, i want to generate a unqiue
> >> > Id,
> >> > which is like a sequence in RDBMS.
> >> > Regards,
> >> > afancy
> >>
> >>
> >>
> >> --
> >> Best Regards
> >>
> >> Jeff Zhang
> >
> >
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB