Java Code Examples for org.apache.spark.SparkConf#getAll()
The following examples show how to use
org.apache.spark.SparkConf#getAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SparkSession.java From incubator-nemo with Apache License 2.0 | 5 votes |
@Override public synchronized Builder config(final SparkConf conf) { for (Tuple2<String, String> kv : conf.getAll()) { this.options.put(kv._1, kv._2); } return (Builder) super.config(conf); }
Example 2
Source File: SparkSession.java From nemo with Apache License 2.0 | 5 votes |
@Override public Builder config(final SparkConf conf) { for (Tuple2<String, String> kv : conf.getAll()) { this.options.put(kv._1, kv._2); } return (Builder) super.config(conf); }
Example 3
Source File: GryoSerializer.java From tinkerpop with Apache License 2.0 | 5 votes |
private static Configuration makeApacheConfiguration(final SparkConf sparkConfiguration) { final BaseConfiguration apacheConfiguration = new BaseConfiguration(); for (final Tuple2<String, String> tuple : sparkConfiguration.getAll()) { apacheConfiguration.setProperty(tuple._1(), tuple._2()); } return apacheConfiguration; }
Example 4
Source File: SpliceSpark.java From spliceengine with GNU Affero General Public License v3.0 | 4 votes |
private static void printConfigProps(SparkConf conf) { for (Tuple2<String, String> configProp : conf.getAll()) { LOG.debug("Spark Prop: "+configProp._1()+" "+configProp._2()); } }