HashMap Map1=new HashMap<> (a); Map1. Put (1100); Map1. Put (2150); Map1. Put (3120); HashMap Map2=new HashMap<> (a); Map2. Put (2200); Map2. Put (7, 20); Map2. Put (3,66); Number//may still has a lot of the map, uncertainty, and the key value is likely to be repeated List Mylist=new ArrayList<> (a);
And now I get a sc object, want to do a word count test JavaRDD Lines=sc. Parallelize (mylist); Results no instance (s) of the type variable (s) T exist so that List Conforms to Seq Want to ask how to initialize the data?
CodePudding user response:
Sc. Parallelize request parameters for Seq types, you try the ArrayList replacement for Seq derived classes