Re: How to Rename & Create DB Table in Hadoop?

2009-05-20 Thread Min Zhou
In Hive, alter table old_name rename to new_name; create table ( ... ) can solve your problem. On Wed, May 20, 2009 at 8:30 PM, Owen O'Malley wrote: > > On May 19, 2009, at 11:48 PM, dealmaker wrote: > > >> Hi, >> I want to backup a table and then create a new empty one with following >> comm

Re: A brief report of Second Hadoop in China Salon

2009-05-18 Thread Min Zhou
Cheers! Thank you all organizers and speakers! On Sun, May 17, 2009 at 6:49 PM, Qingyan(Evan) Liu wrote: > yes, that's a great conference. thanks a lot to the organizers and > reporters. > > 2009/5/16 He Yongqiang > > > Hi, all > > In May 9, we held the second Hadoop In China salon. About 150

Re: setGroupingComparatorClass() or setOutputValueGroupingComparator() does not work for Combiner

2009-05-11 Thread Min Zhou
oops, misunderstanded your problem. Before you do combine operations on map output keys, it's that they are actually sorted by a quicksort sorter in default according the rule you set at jobConf.setOutputKeyComparator(). It's impossible archieving your target w/o modify some source code of hadoop,

Re: setGroupingComparatorClass() or setOutputValueGroupingComparator() does not work for Combiner

2009-05-11 Thread Min Zhou
Hey Schubert, You need at least two new classes, a Partitioner and a Comparator for different grouping and sorting. There is an example in hadoop's source code can deal with this sort of problems. Download the least release of hadoop(version 0.20.0) and check out src/examples/SecondarySort.java. B

Re: Sorting on several columns using KeyFieldSeparator and Paritioner

2009-05-05 Thread Min Zhou
I came across the same failure. Anyone can solve this problem? On Sun, Jan 18, 2009 at 9:06 AM, Saptarshi Guha wrote: > Hello, > I have a file with n columns, some which are text and some numeric. > Given a sequence of indices, i would like to sort on those indices i.e > first on Index1, then w

Re: anybody knows an apache-license-compatible impl of Integer.parseInt?

2009-02-10 Thread Min Zhou
ntation that I can use for hive (apache > license)? > > > I also need to do it for Byte, Short, Long, and Double. Just don't want to > go over all the corner cases. > > Solutions from c/c++ are OK (as long as the license does not conflict). I > can translate it. > &