You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "Aiden-Dong (via GitHub)" <gi...@apache.org> on 2024/07/09 08:29:32 UTC
[I] [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive [paimon]
Aiden-Dong opened a new issue, #3713:
URL: https://github.com/apache/paimon/issues/3713
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
### Paimon version
0.8.1
### Compute Engine
spark 3.3.1
### Minimal reproduce step
val session:SparkSession = SparkSession.builder()
.conf("spark.sql.extensions", "org.apache.paimon.spark.extensions.PaimonSparkSessionExtensions")
.enableHiveSupport()
.getOrCreate()
// parquet table wirte to paimon table
session.sql(
"""
|insert into sparksql_test.tb_yarn_job_summary_off_on_v2_paimon_dongtao partition(pdate)
|select
| `app_name` ,
| `start_time` ,
| `mem` ,
| `cpu` ,
| `run_time` ,
| `run_user` ,
| `gid` ,
| `group_name` ,
| `onwer` ,
| `cluster` ,
| `queue` ,
| `app_type` ,
| `queue_type` ,
| `tid` ,
| `tenant_name` ,
| `memcost` ,
| `cpucost` ,
| `cost` ,
| `rk` ,
| `pdate`
|from
| sparksql_test.tb_yarn_job_summary_off_on_v2
|""".stripMargin
)
### What doesn't meet your expectations?
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NullPointerException
at org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:274)
at org.apache.spark.sql.hive.execution.HiveOutputWriter.<init>(HiveFileFormat.scala:148)
at org.apache.spark.sql.hive.execution.HiveFileFormat$$anon$1.newInstance(HiveFileFormat.scala:106)
at org.apache.spark.sql.execution.datasources.BaseDynamicPartitionDataWriter.renewCurrentWriter(FileFormatDataWriter.scala:298)
at org.apache.spark.sql.execution.datasources.DynamicPartitionDataSingleWriter.write(FileFormatDataWriter.scala:365)
at org.apache.spark.sql.execution.datasources.FileFormatDataWriter.writeWithMetrics(FileFormatDataWriter.scala:85)
at org.apache.spark.sql.execution.datasources.FileFormatDataWriter.writeWithIterator(FileFormatDataWriter.scala:92)
at org.apache.spark.sql.execution.datasources.FileFormatWriter$.$anonfun$executeTask$1(FileFormatWriter.scala:335)
at org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1550)
at org.apache.spark.sql.execution.datasources.FileFormatWriter$.executeTask(FileFormatWriter.scala:342)
... 9 more
Caused by: java.lang.NullPointerException
at org.apache.paimon.hive.mapred.TezUtil$TaskAttemptWrapper.<init>(TezUtil.java:111)
at org.apache.paimon.hive.mapred.TezUtil.taskAttemptWrapper(TezUtil.java:84)
at org.apache.paimon.hive.mapred.PaimonOutputFormat.writer(PaimonOutputFormat.java:76)
at org.apache.paimon.hive.mapred.PaimonOutputFormat.getHiveRecordWriter(PaimonOutputFormat.java:72)
at org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getRecordWriter(HiveFileFormatUtils.java:286)
at org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:271)
### Anything else?
none
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive [paimon]
Posted by "imzhouhao (via GitHub)" <gi...@apache.org>.
imzhouhao commented on issue #3713:
URL: https://github.com/apache/paimon/issues/3713#issuecomment-3689197529
hi,i also met this question .how do you fix it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive [paimon]
Posted by "imzhouhao (via GitHub)" <gi...@apache.org>.
imzhouhao commented on issue #3713:
URL: https://github.com/apache/paimon/issues/3713#issuecomment-3689213500
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive [paimon]
Posted by "Aiden-Dong (via GitHub)" <gi...@apache.org>.
Aiden-Dong closed issue #3713: [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive
URL: https://github.com/apache/paimon/issues/3713
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive [paimon]
Posted by "imzhouhao (via GitHub)" <gi...@apache.org>.
imzhouhao commented on issue #3713:
URL: https://github.com/apache/paimon/issues/3713#issuecomment-3689343449
5933 seems to linked with https://github.com/apache/paimon/issues/5932, not this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Error when writing to a Paimon table in Spark with the Paimon catalog in Hive [paimon]
Posted by "Aiden-Dong (via GitHub)" <gi...@apache.org>.
Aiden-Dong commented on issue #3713:
URL: https://github.com/apache/paimon/issues/3713#issuecomment-3689211997
> hi,i also met this question .how do you fix it?
https://github.com/apache/paimon/pull/5933
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org