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
0
votes
0 answers

Problems reading .bz2 or .tar.bz2 files as hdf5 in R

I downloaded some files with extension .tar.bz2. I was able to untar these into folders containing .bz2 files. These should unzip as hdf5 files (Metadata said they were hdf5) , but they unzip into files with no extensions I have tried the following…
Joke O.
  • 515
  • 6
  • 29
0
votes
1 answer

Java POST multipart/form-data containing json and bz2 compressed file parts

So I am running into an issue where I need to POST a bzip2 file through a java app. I do not have an issue with doing multi-part posts or using regular files (See the third example located on http://zewaren.net/site/?q=node/123) However, the above…
JarODirt
  • 157
  • 11
0
votes
1 answer

Perl can't catch bzip2 console output

I have some difficulties with my perl + gtk GUI app. Why can't perl catch bzip2's output text from console? Instead of being catched into variable, output is just printed in console. I have no problem with any other program - it's just bzip2. My…
Rafał Swacha
  • 482
  • 2
  • 6
  • 20
0
votes
1 answer

ssh multiple commands appends question mark to file name

I have a database transfer script, which uses bzip2 to minimise locking of large databases on a server. First line is ssh root@server "mysqldump db | bzip2 >/root/db.sql.bz2" This works on many servers, but on a new Ubuntu 14.04 server the file…
jdog
  • 2,465
  • 6
  • 40
  • 74
0
votes
1 answer

multiple gz files go to one hadoop node

I have 7 very big gz files, each has 10G Bytes data, And also I have 100 small bzip2 files each just has 10M Bytes. And I have 10 machines in hadoop cluster, each machine has 8 cores. When I kick off the map reduce job, the 100 small bzip2 files…
Jack
  • 5,540
  • 13
  • 65
  • 113
0
votes
1 answer

How to install bzip2 for Capistrano-db-tasks on Windows?

I had an error with installation of bzip2 on Windows 7 for capistrano-db-tasks. I tried gem bzip2, gem bzip2-ruby and gem bzip2-ruby-rb20. How to install it properly?
ProkopS
  • 365
  • 2
  • 13
0
votes
2 answers

Error knitting Rmarkdown doc: Error in bzfile(filename, "rb") : cannot open the connection

So I am trying to knit my code for an assignment on Coursera but I am encountering a strange error and I cant figure out the issue. Here is the code that I believe is the problem setInternet2(use = TRUE) fileUrl<-…
googleplex101
  • 195
  • 2
  • 13
0
votes
2 answers

BZip2 - What to be passed to FileOutputstream for different types of files

I am trying to extract a bz2 file as mentioned below, this is a test class that I wrote and I know that it is .txt file when uncompressed, but when I actually read it from the server, the uncompressed bz2 file can be anything like html, tar,tgz or…
Akshitha
  • 89
  • 1
  • 2
  • 7
0
votes
1 answer

How to let EMR execute customer jar first

Because hadoop 1.0.3 doesn't support bzip2 decompress, so I copied the same classes from hadoop 2.2 into my project, but my project (or we call it jar) is still running on hadoop 1.0.3 cluster. I found hadoop still execute the the classes from 1.0.3…
Jack
  • 5,540
  • 13
  • 65
  • 113
0
votes
1 answer

Cannot read compressed bz2 file from http://archive.routeviews.org/

For class we are to download these 54MB .bz2 files from routeviews. When I unzip the .bz2 files they are in .0000 format and around 500MB. When I -tail -f the output its a bunch of garbage. How can I convert these data to ascii so I can start…
Ducks
  • 1
  • 1
0
votes
2 answers

Using BZip2 in Xamarin

I am trying to read from a file, and I want to use Bzip2InputStream to do it. When i try to run my application it runs fine untill the code reaches the creation of the inputstream. At wich point it keeps running, but nothing happens and roughly…
user3729870
  • 65
  • 1
  • 5
0
votes
1 answer

Error occurred while installing bzip2-ruby (0.2.7)

I tried to install bzip2-ruby gem using bundler, but it throws this output: Building native extensions. This could take a while... ERROR: Error installing bzip2-ruby: ERROR: Failed to build gem native…
Israel
  • 3,252
  • 4
  • 36
  • 54
0
votes
2 answers

Compressing using Bzip2 on-the-fly to a file?

There is a program that generates huge CSV files. For example: arr = (0..10).to_a CSV.open("foo.csv", "wb") do |csv| (2**16).times { csv << arr } end It will generate a big file, so I want to be compressed on-the-fly, and, instead of output a…
Israel
  • 3,252
  • 4
  • 36
  • 54
0
votes
2 answers

BZip2 Native Splitting on Amazon/EMR

We have a question in specific regard to compressed input on an Amazon EMR Hadoop job. According to AWS: "Hadoop checks the file extension to detect compressed files. The compression types supported by Hadoop are: gzip, bzip2, and LZO. You do not…
David Beveridge
  • 560
  • 1
  • 6
  • 17
0
votes
1 answer

Uncompress bzip2 package in memory

I have a problem with uncompressing .bz package in memory. My script used to download gzip package and it uncompressed in the memory and sent its output to content(). This was working before with gzip but unfortunately it does not understand bzip2…
mobu
  • 547
  • 3
  • 6
  • 11