<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question how to compress bzip2 format and insert into hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-compress-bzip2-format-and-insert-into-hive/m-p/225249#M187110</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I am trying to insert my dataframe using orc and bzip2 compression but it is throwing me the error &lt;/P&gt;&lt;PRE&gt;java.lang.IllegalArgumentException: Codec [bzip2] is not available. Available codecs are uncompressed, lzo, snappy, zlib, none.
  at org.apache.spark.sql.hive.orc.OrcOptions.&amp;lt;init&amp;gt;(OrcOptions.scala:49)
  at org.apache.spark.sql.hive.orc.OrcOptions.&amp;lt;init&amp;gt;(OrcOptions.scala:32)
  at org&lt;/PRE&gt;&lt;P&gt;My code is &lt;/P&gt;&lt;PRE&gt;fields.write.format("orc").option("compression","bzip2").saveAsTable("prasadtest.descargatest")

I am using spark 2 for this.&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Feb 2018 23:06:45 GMT</pubDate>
    <dc:creator>prasadraju009</dc:creator>
    <dc:date>2018-02-27T23:06:45Z</dc:date>
  </channel>
</rss>

