Changeset 31271 for other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ProcessForLangCount.java
- Timestamp:
- 2016-12-28T14:04:19+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ProcessForLangCount.java
r31270 r31271 69 69 70 70 //int num_partitions = Integer.getInteger("wcsa-ef-ingest.num-partitions", DEFAULT_NUM_PARTITIONS); 71 int files_per_partition = Integer.getInteger("wcsa-ef-ingest. num-partitions", DEFAULT_FILES_PER_PARTITION);71 int files_per_partition = Integer.getInteger("wcsa-ef-ingest.files-per-partition", DEFAULT_FILES_PER_PARTITION); 72 72 73 74 JavaRDD<String> json_list_data = jsc.textFile(_json_list_filename,files_per_partition).cache(); 73 JavaRDD<String> json_list_data = jsc.textFile(_json_list_filename).cache(); 75 74 json_list_data.setName("JSON-file-list"); 76 75 … … 81 80 82 81 JavaRDD<String> json_list_data_rp = json_list_data.repartition(num_partitions); 82 json_list_data_rp.setName("JSON-file-list--repartitioned"); 83 83 84 84 DoubleAccumulator per_vol_progress_accum = jsc.sc().doubleAccumulator("Per Volume Progress Percent");
Note:
See TracChangeset
for help on using the changeset viewer.