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
• 1,440 points
42 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
• 2,750 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
740 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
577 views
0 votes
1 answer
+1 vote
1 answer
+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,840 points
4,137 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,840 points
583 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
22,375 views
0 votes
1 answer

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

Hi@akhtar, I also faced this same problem. For ...READ MORE

answered Jan 31 in Apache Spark by MD
• 2,750 points
35 views