You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Eric Sun (Jira)" <ji...@apache.org> on 2019/09/20 23:09:01 UTC
[jira] [Created] (SPARK-29195) Can't config orc.compress.size
option for native ORC writer
Eric Sun created SPARK-29195:
--------------------------------
Summary: Can't config orc.compress.size option for native ORC writer
Key: SPARK-29195
URL: https://issues.apache.org/jira/browse/SPARK-29195
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 2.3.0
Environment: Spark 2.3.0
Executor Log:
impl.WriterImpl: ORC writer created for path: hdfs://name_node_host:9000/foo/bar/_temporary/0/_temporary/attempt_20190920222359_0001_m_000127_0/part-00127-2a9a9287-54bf-441c-b3cf-718b122d9c2f_00127.c000.zlib.orc with stripeSize: 67108864 blockSize: 268435456 compression: ZLIB bufferSize: 65536
File Output Committer Algorithm version is 2
Reporter: Eric Sun
Only codec can be effectively configured via code, but "orc.compress.size" or "orc.row.index.stride" can not.
{code:java}
// try
val spark = SparkSession
.builder()
.appName(appName)
.enableHiveSupport()
.config("spark.sql.orc.impl", "native")
.config("orc.compress.size", 512 * 1024)
.config("spark.sql.orc.compress.size", 512 * 1024)
.config("hive.exec.orc.default.buffer.size", 512 * 1024)
.config("spark.hadoop.io.file.buffer.size", 512 * 1024)
.getOrCreate()
{code}
orcfiledump still shows:
{code:java}
File Version: 0.12 with FUTURE
Compression: ZLIB
Compression size: 65536
{code}
According to [SPARK-23342], the other ORC options should be configurable. Is there anything missing here?
Is there any other way to affect "orc.compress.size"?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org