Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion RCfileの圧縮とsplit
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pandazx  
View profile   Translate to Translated (View Original)
 More options Oct 23 2012, 4:02 am
From: pandazx <pandaz...@gmail.com>
Date: Tue, 23 Oct 2012 01:02:06 -0700 (PDT)
Local: Tues, Oct 23 2012 4:02 am
Subject: Re: RCfileの圧縮とsplit

嶋内さん

ご回答ありがとうございます。pandazxです。

環境の説明が不十分でした。説明させていただきます。
HadoopはApacheのサイトからダウンロードした0.20.2、Hiveは0.7.1です。

テーブル定義は以下のようになります。
CREATE TABLE IF NOT EXISTS table_name (
  column1 float,
  column2 float
)
ROW FORMAT SERDE "org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe"
STORED AS RCFile;

実行したクエリは以下のようになります。
set hive.exec.compress.intermediate=true;
set hive.exec.compress.output=true;
set mapred.output.compression.type=BLOCK;
set mapred.output.compression.codec=com.hadoop.compression.lzo.LzoCodec;
set mapred.max.split.size=32000000;
set hive.merge.size.per.task=32000000;
INSERT OVERWRITE TABLE input_table_lzo SELECT * FROM input_table;

set mapred.max.split.size=16000000;(圧縮後のファイルサイズが32MB以下だったので、16MBに変更)
select count(*) from input_table_lzo;

map数が1で実行された。

以下のサイトによると、RCFileの一定の行の範囲というのは
hive.io.rcfile.record.buffer.size で設定しているようですね。
http://grokbase.com/t/hive/user/124krjvfsh/row-group-size-of-rcfile

これを小さくして、RCFileが複数できて、map数が2以上になるのを確認したいと思います。


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.