error identifier expected but found

0 votes

While I was creating RDD from paralyzed collection got this below error, can anyone suggest how can  I resolve it?

Jul 3, 2019 in Apache Spark by tara

recategorized Jul 4, 2019 by Gitika 5,090 views

1 answer to this question.

0 votes

Hi,

You can try this remove brackets from collect action which will start the process. Use this command to check the correct answer.

scala> sc.parallelize(1 to 100,5). collect  

It will give you arrray of 1 to 100.

answered Jul 3, 2019 by Gitika
• 65,910 points

Related Questions In Apache Spark

+1 vote
1 answer

is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [51, 53, 10, 10]

Hi@akhtar, Here you are trying to read a ...READ MORE

answered Feb 3, 2020 in Apache Spark by MD
• 95,440 points
17,320 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Getting error while connecting zookeeper in Kafka - Spark Streaming integration

I guess you need provide this kafka.bootstrap.servers ...READ MORE

answered May 24, 2018 in Apache Spark by Shubham
• 13,490 points
2,601 views
+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
• 11,380 points
10,617 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,927 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
4,293 views
0 votes
1 answer
0 votes
1 answer

error: identified expected but integer literal found.

Hi, You can resolve this error with a ...READ MORE

answered Jul 4, 2019 in Apache Spark by Gitika
• 65,910 points
5,561 views
0 votes
1 answer

error:error: only classes can have declared but undefined members.

Hi, This happens in Scala whenever you won't ...READ MORE

answered Jul 24, 2019 in Apache Spark by Gitika
• 65,910 points
1,927 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP