Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException at org.apache.hadoop.conf.Configuration #69

Open
Yingminzhou opened this issue Dec 19, 2023 · 1 comment
Open

NullPointerException at org.apache.hadoop.conf.Configuration #69

Yingminzhou opened this issue Dec 19, 2023 · 1 comment

Comments

@Yingminzhou
Copy link

hi, my scala version is 2.12.15 , spark version is 3.0, I use spark-tfrecord_2.12:0.40, but met an error:

Caused by: java.lang.NullPointerException
at org.apache.hadoop.conf.Configuration.(Configuration.java:821)
at org.apache.hadoop.mapred.JobConf.(JobConf.java:440)
at org.apache.hadoop.mapreduce.task.JobContextImpl.(JobContextImpl.java:67)
at org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl.(TaskAttemptContextImpl.java:49)
at org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl.(TaskAttemptContextImpl.java:44)
at com.linkedin.spark.datasources.tfrecord.TFRecordFileReader$.readFile(TFRecordFileReader.scala:32)
at com.linkedin.spark.datasources.tfrecord.DefaultSource.$anonfun$buildReader$1(DefaultSource.scala:132)

I tested the following case, but it runs well:

  • sc.textFile("xxxx")
  • spark.read.textFile("xxx")

Do you have any ideas about this error? I am really confused. lol.

@junshi15
Copy link
Contributor

It is hard to say where the problem is with the limited information provided here.
If you can run the examples in the README file, then your setup is likely correct. Then the problem might be in the TFRecord files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants