Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11691

Allow to specify compression codec in HadoopFsRelation when saving

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • SQL
    • None

    Description

      Currently, there's no way to specify compression codec when saving data frame to hdfs. It would nice to allow specify compression codec in DataFrameWriter just as we did in RDD api

      def saveAsTextFile(path: String, codec: Class[_ <: CompressionCodec]): Unit = withScope {
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zjffdu Jeff Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: