Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Coding Issue CDH 5 Quickstart VM

Coding Issue CDH 5 Quickstart VM

New Contributor

Hi,

Im new to spark and cloudera.

I downloaded the CDH5.2 two weeks ago and I starte writing spark code and everything worked fine while i used to set the master to local.

Now I changed the code in the following

SparkConf conf = new SparkConf().setAppName("Sampler Application").setMaster("spark://quickstart.cloudera:7077");

JavaSparkContext context = new JavaSparkContext(conf);

 and it is not working anymore, it gave me a lot of error!

 

Did I miss anything?

 

Thanks,

Vincenzo

2 REPLIES 2
Highlighted

Re: Coding Issue CDH 5 Quickstart VM

New Contributor

I got always this warning:


 INFO TaskSchedulerImpl: Adding task set 0.0 with 2 tasks

WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory

 

Can anyone help me?

 

Thanks

Re: Coding Issue CDH 5 Quickstart VM

New Contributor
15/02/09 02:12:37 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
15/02/09 02:12:52 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
15/02/09 02:13:07 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory
15/02/09 02:13:22 WARN TaskSchedulerImpl: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient memory