AbsaOSS / AbsaOSS/cobrix

record_format VB file fails with length of BDW block is too big

オープン
#642 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
Scala
スター
170
フォーク
96
平均マージ
57分
マージ済み PR(30日)
2

説明

When converting a Variable Block format EBCDIC file, I got the error "The length of BDW block is too big", tried with following option but still getting same error.

dataframe = spark.read.format("cobol").\
option("copybook", util_params["copybook_path"]).\
option("encoding", "ebcdic"). \
option("schema_retention_policy", "collapse_root"). \
option("record_format", "VB"). \
option("is_bdw_big_endian", "true"). \
option("is_rdw_big_endian", "true"). \
option("bdw_adjustment", -4) . \
option("rdw_adjustment", -4) . \
option("generate_record_id", True).\
load(file_path)

**Error:**

WARN BlockManager: Putting block rdd_1_0 failed due to exception java.lang.IllegalStateException: The length of BDW block is too big. Got 1223880942. Header: 200,242,240,242, offset: 0..
WARN BlockManager: Block rdd_1_0 could not be removed as it was not found on disk or in memory
ERROR Executor: Exception in task 0.0 in stage 0.0 (TID 0)
java.lang.IllegalStateException: The length of BDW block is too big. Got 1223880942. Header: 200,242,240,242, offset: 0.

Please suggest some way to fix this issue. Can you please share the example where you have tested the VB scenario with EBCDIC file and copybook for reference.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。