Questions tagged [bzip2]

bzip2 is a Unix command used for compression and decompression of files. The main advantage of bzip2 is that it has a high compression ratio with reasonable speed.

bzip2 one of the most widely used free compression programs for the terminal.

It typically compresses files to within 10% to 15% of the best available techniques, whilst being around twice as fast at compression and six times faster at decompression.

The current version is 1.0.6, released 20 Sept 2010.

327 questions
1
vote
2 answers

Capturing BZIP2 Termination within Perl

Here is what I have so far: #!/usr/bin/perl use strict; use warnings; use IO::Compress::Bzip2 qw(bzip2 $Bzip2Error); use File::Find; use File::Basename; my $directory = "/usr/www/op1/public/server"; my @list_of_files; find sub { return…
Rhododendron
  • 123
  • 9
1
vote
1 answer

Do we need to specify compression level when extracting a compressed tar file?

From my tests so far on OSX 10.8 and CentOS 5.5, it looks like tar automatically deduces the compression type of an archive, i.e., I could do tar -xf instead of doing tar -jxf or tar -zxf
vinodkone
  • 2,731
  • 4
  • 22
  • 21
1
vote
1 answer

What's the difference between two concatentated bz2 files and one bz2 file made from two concatenated files?

If I have two text files, one and two, what's the difference between: bz2 one two -c >out.bz2 ...and... cat one two | bzip2 -c >out.bz2 ? Specifically, I'm generating bz2 files using pbzip2, putting them on HDFS, then reading them from pig, and…
Nicholas White
  • 2,702
  • 3
  • 24
  • 28
1
vote
2 answers

How to compress multiple file with CBZip2OutputStream

I use CBZip2OutputStream for create a compressed bzip file. It works. But I want to compress several files in one bzip file but without using tar archive. If I have file1, file2, file3, I want them in files.bz2 not in an archive files.tar.bz2. It is…
Fred37b
  • 822
  • 2
  • 10
  • 29
1
vote
1 answer

How to rename a file inside a tar.bz2 archive?

I want to know if there is better way to rename a file from inside a .tar.bz2 file, without unpacking it and repacking the entire archive.
sorin
  • 161,544
  • 178
  • 535
  • 806
0
votes
1 answer

Failed to install PyTables

I'm trying to install PyTables using either easy_install or pip but both attempts end with the same error: error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNDEBUG=1 -DHAVE_LZO2_LIB=1…
Stefano Messina
  • 1,796
  • 1
  • 17
  • 22
0
votes
1 answer

bz2 in javascript

Are there any javascript libraries that can take a byte array and bz2 decompress it into another byte array? I know that many browsers have this capability for an entire stream, but this array is at an offset from the start of the stream.
graphicsMan
  • 402
  • 4
  • 8
0
votes
2 answers

Hadoop 0.20.205 Job (and not JobConf) Bzip2 compression

In hadoop 0.20.2 version one can add input/output compression to the jobconf in the following way: jobConf.setBoolean("mapred.output.compress", true); jobConf.setClass("mapred.output.compression.codec", BZip2Codec.class,…
0
votes
0 answers

ModuleNotFoundError: No module named '_bz2' in Google Cloud Workstation

I launched a new Google Cloud Workstation and create a single python file with these contents: import bz2 import binascii original_data = 'This is the original text.' print ('Original :', len(original_data), original_data) compressed =…
0
votes
1 answer

Cannot change the compression level for BZIP2 with Tar

I need to change the compression level for BZIP2 compression with tar. I found that we can set the compression level and run the tar command to compress. I tried different compression levels using the following command, but it seems like…
Malintha
  • 4,512
  • 9
  • 48
  • 82
0
votes
1 answer

How to extract more than 900,000 bytes using SharpZipLib BZip2

When using ICSharpCode.SharpZipLib to decompress BZip2 files I am having an issue where only the first 900,000 uncompressed bytes are extracted. I've tried both the BZip2InputStream and the BZip2.Decompress static method to no avail. The compressed…
Patrick Jones
  • 1,896
  • 14
  • 26
0
votes
1 answer

Spark Bzip2 compression ratio is not efficient

Today am seeking your help with an issue am having in the last couple of days with bzip2 compression. We need to compress our output text files into bzip2 format. The problem is that we only pass from 5 Gb uncompressed to 3.2 Gb compressed with…
0
votes
0 answers

BZip2 "selectorMtf value too big" error when decompressing

I'm getting error "Corrupted input, selectorMtf value too big" when trying to decompress the string compressed by bzip2. Below is my decompress java code private void decompress() throws IOException { InputStream fin =…
Kingo Mostafa
  • 357
  • 5
  • 21
0
votes
1 answer

Getting error on running test validator for solana

On running command solana-test-validator on windows system, getting an error [2022-01-06T06:54:41.602352800Z INFO solana_test_validator] solana-validator 1.9.0 (src:7782d34b; feat:378846963) [2022-01-06T06:54:41.602479300Z INFO …
0
votes
1 answer

Picking compression algorithm for low-memory device - what works without being entirely in memory?

I'm writing an app that, on a low-memory device, needs to be able to read the list of contained files and also extract specific (but random) files from a tarball (or some sort of archive). Here's my question: can a bz2 tarball be "streamed" as it's…
Brian McBrayer
  • 163
  • 2
  • 8