Thank you for your reply. Your mean is I will execute below statement:
statement.execute("set hive.merge.mapfiles=true"); statement.execute("set hive.merge.mapredfiles=true"); The two parementers are both true, right? 2010/8/6 Namit Jain <nj...@facebook.com> > HIVEMERGEMAPFILES("hive.merge.mapfiles", true), > HIVEMERGEMAPREDFILES("hive.merge.mapredfiles", false), > > > Set the above parameters to true before your query. > > > > ________________________________________ > From: lei liu [liulei...@gmail.com] > Sent: Thursday, August 05, 2010 8:47 PM > To: hive-user@hadoop.apache.org > Subject: How to merge small files > > When I run below sql: INSERT OVERWRITE TABLE tablename1 select_statement1 > FROM from_statement, there are many files which size is zero are stored to > hadoop, > > How can I merge these small files? > > Thanks, > > > > LiuLei > >