You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "He Yongqiang (JIRA)" <ji...@apache.org> on 2010/12/07 19:28:11 UTC

[jira] Created: (HIVE-1838) Add quickLZ compression codec for Hive.

Add quickLZ compression codec for Hive.
---------------------------------------

                 Key: HIVE-1838
                 URL: https://issues.apache.org/jira/browse/HIVE-1838
             Project: Hive
          Issue Type: New Feature
            Reporter: He Yongqiang




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1838) Add quickLZ compression codec for Hive.

Posted by "He Yongqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969855#action_12969855 ] 

He Yongqiang commented on HIVE-1838:
------------------------------------

Just found that there is already a jira on Hadoop side:

https://issues.apache.org/jira/browse/HADOOP-6349

> Add quickLZ compression codec for Hive.
> ---------------------------------------
>
>                 Key: HIVE-1838
>                 URL: https://issues.apache.org/jira/browse/HIVE-1838
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: He Yongqiang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1838) Add quickLZ compression codec for Hive.

Posted by "He Yongqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969082#action_12969082 ] 

He Yongqiang commented on HIVE-1838:
------------------------------------

FastLZ maybe better because of the license. And FastLZ has almost the same compression speed compared to quickLZ.

> Add quickLZ compression codec for Hive.
> ---------------------------------------
>
>                 Key: HIVE-1838
>                 URL: https://issues.apache.org/jira/browse/HIVE-1838
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: He Yongqiang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1838) Add quickLZ compression codec for Hive.

Posted by "He Yongqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969147#action_12969147 ] 

He Yongqiang commented on HIVE-1838:
------------------------------------

Since the compression ratio is not good, it is not good to compress the final data (rcfile/sequencefile/textfile) if the space is a problem.

> Add quickLZ compression codec for Hive.
> ---------------------------------------
>
>                 Key: HIVE-1838
>                 URL: https://issues.apache.org/jira/browse/HIVE-1838
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: He Yongqiang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1838) Add quickLZ compression codec for Hive.

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969133#action_12969133 ] 

Ashutosh Chauhan commented on HIVE-1838:
----------------------------------------

Compression codec for Hive? I think, you mean compression codec for RCFile. In default settings, it uses builtin DefaultCodec from Hadoop. Did you do some tests and found out performance is not as good as what you would have liked? If so, it will be great if you can share the results of your experiments.

> Add quickLZ compression codec for Hive.
> ---------------------------------------
>
>                 Key: HIVE-1838
>                 URL: https://issues.apache.org/jira/browse/HIVE-1838
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: He Yongqiang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1838) Add quickLZ compression codec for Hive.

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969150#action_12969150 ] 

Ashutosh Chauhan commented on HIVE-1838:
----------------------------------------

bq. No. I mean compression codec for Hive. It could be used to compress intermediate data. 

Oh, I see you mean map outputs(of MR jobs). I confused with eventual job output which gets written out in RCFile.

bq. Here are some results:

Thanks for sharing that. Thats useful. From your command, it seems you only ran test once. To discount statistical variance (because of FS caches, OS cache, jvm warm-up etc.) I guess running them multiple times and averaging them may be a good idea. 

> Add quickLZ compression codec for Hive.
> ---------------------------------------
>
>                 Key: HIVE-1838
>                 URL: https://issues.apache.org/jira/browse/HIVE-1838
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: He Yongqiang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1838) Add quickLZ compression codec for Hive.

Posted by "He Yongqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969144#action_12969144 ] 

He Yongqiang commented on HIVE-1838:
------------------------------------

No. I mean compression codec for Hive. It could be used to compress intermediate data.

Here are some results:

5. Hadoop compression with native library (COMPRESSLEVEL=BEST_SPEED)
time java -Djava.library.path=/data/users/heyongqiang/hadoop-0.20/build/native/Linux-amd64-64/lib/ CompressFile

real	0m34.179s
user	0m29.031s
sys	0m1.607s

compressed size: 275M

6. LZF
[heyongqiang@dev782 compress_test]$ time lzf -c 000000_0 

real	0m39.031s
user	0m8.727s
sys	0m2.231s
compressed size: 393M

7. FastLZ
time fastlz/6pack -1 000000_0 000000_0.fastlz
real	0m19.020s
user	0m18.083s
sys	0m0.935s

compressed size: 391M

8.QuickLZ
time ./compress_file ../000000_0 ../000000_0.quicklz

real	0m15.652s
user	0m14.047s
sys	0m1.603s

compressed size: 334M

I modified QuickLZ's compress_file code to use a buffer for fairness. It turns out the result is very close to FastLZ. The modified version of QuickLZ is just one second better.


> Add quickLZ compression codec for Hive.
> ---------------------------------------
>
>                 Key: HIVE-1838
>                 URL: https://issues.apache.org/jira/browse/HIVE-1838
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: He Yongqiang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.