JavaSparkContext JSC=new JavaSparkContext (spark sparkContext ());
Map
ReadOverrides. Put (" collection ", "stock_basic_info1");
ReadOverrides. Put (" readPreference. The name ", "secondaryPreferred");
ReadConfig ReadConfig=ReadConfig. Create (JSC). WithOptions (readOverrides);
Dataset
ImplicitDS. PrintSchema ();
ImplicitDS. The show ();
I wrote the following, however, but this line (ReadConfig ReadConfig=ReadConfig. Create (JSC) withOptions (readOverrides); ) error: Ambiguous method call. Both the create in ReadConfig (JavaSparkContext) and create (JavaSparkContext) in ReadConfig match do you have met?