paimon icon indicating copy to clipboard operation
paimon copied to clipboard

[Bug] NullPointException when readHadoopXml

Open linqichen opened this issue 3 months ago • 2 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Paimon version

paimon 1.1 spark 3.2

Compute Engine

Spark 、 Hive

Minimal reproduce step

It always happened when my hdfs-site.xml like this:

<property>
  <name>xxxx</name>
</property>

What doesn't meet your expectations?

NullPointException when readHadoopXml。

error info: java.lang.NullPointerException at org.apache.paimon.utils .HadoopUtils.readHadoopXml(HadoopUtils.java:228) at org.apache.paimon.utils .HadoopUtils.addHadoopconfIfFound(HadoopUtils .java:175) ....

becasuse hdfs-site.xml like this:

<property>
  <name>xxxx</name>
</property>

Anything else?

i have already got down it by modifing org.apache.paimon.utils.readHadoopXml() . it is very easy.

Are you willing to submit a PR?

  • [x] I'm willing to submit a PR!

linqichen avatar Sep 18 '25 08:09 linqichen

please assign it to me . My solution is to add some non-empty checks. I have verified it in my company's internal version.

linqichen avatar Sep 18 '25 08:09 linqichen

@zhuangchong thanks.

linqichen avatar Sep 19 '25 10:09 linqichen