checkpoint dir to settings, rename main_back to main_with_collect

This commit is contained in:
nitowa
2022-08-29 06:54:31 -04:00
parent 0801220596
commit 023d7c8b99
4 changed files with 3 additions and 2 deletions
+1
View File
@@ -16,6 +16,7 @@
"spark_master": "spark://osboxes:7077", "spark_master": "spark://osboxes:7077",
"spark_worker_memory": "1g", "spark_worker_memory": "1g",
"spark_event_logging": "true", "spark_event_logging": "true",
"spark_checkpoint_dir": "./checkpoints",
"debug": false "debug": false
} }
+1 -1
View File
@@ -56,7 +56,7 @@ class Master:
master = Master(config) master = Master(config)
master.spark.catalog.clearCache() master.spark.catalog.clearCache()
master.spark.sparkContext.setCheckpointDir('./checkpoints') master.spark.sparkContext.setCheckpointDir(config['spark_checkpoint_dir'])
tx_df = master.get_tx_dataframe() tx_df = master.get_tx_dataframe()
#Turn transactions into a list of ('id', [addr, addr, ...]) #Turn transactions into a list of ('id', [addr, addr, ...])
+1 -1
View File
@@ -45,7 +45,7 @@ class Master:
# end class Master # end class Master
master = Master(config) master = Master(config)
master.spark.sparkContext.setCheckpointDir('./checkpoints') # spark is really adamant it needs this even if the algorithm is set to the non-checkpointed version master.spark.sparkContext.setCheckpointDir(config['spark_checkpoint_dir'])
tx_df = master.get_tx_dataframe() tx_df = master.get_tx_dataframe()