Caused by: java.lang.NumberFormatException: Empty String

0 votes

Hi,

I am getting this error when taking action in Spark.

Can anyone tell me, why I'm getting this error?

Thank you

Jan 29 in Apache Spark by akhtar
• 10,290 points
147 views

1 answer to this question.

0 votes

Hi@akhtar,

As we know text files are in String format. So, if you changed the String format into a different format then it will not able to process empty String. You can avoid this by checking, if there empty String present.

Hope this will help you

Thank You

answered Jan 31 by MD
• 22,160 points

Related Questions In Apache Spark

0 votes
1 answer

Spark error: Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable.

Give  read-write permissions to  C:\tmp\hive folder Cd to winutils bin folder ...READ MORE

answered Jul 11, 2019 in Apache Spark by Rajiv
1,611 views
0 votes
1 answer
0 votes
1 answer

"main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream

1. We will check whether master and ...READ MORE

answered Jul 29, 2019 in Apache Spark by Yogi
1,295 views
0 votes
1 answer
+1 vote
2 answers
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
5,063 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
719 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
29,875 views
0 votes
2 answers

java.lang.StringIndexOutOfBoundsException: String index out of range: 1

When using the Java substring() method, a ...READ MORE

answered Mar 13 in Apache Spark by evanbung
• 180 points
715 views