Skip to content

Commit 225cf19

Browse files
committed
Add missing DB attributes for lic and dbfs info path to settings
1 parent 35f9496 commit 225cf19

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

johnsnowlabs/auto_install/databricks/install_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def install_license_to_cluster(install_suite: InstallSuite, db: DatabricksAPI, )
4848
"SPARK_OCR_LICENSE": install_suite.secrets.OCR_LICENSE,
4949
}
5050
lic = {k: v for k, v in lic.items() if v is not None}
51-
52-
put_file_on_dbfs(db, settings.dbfs_license_path, lic, overwrite=True)
51+
# TODO license info-files and shit should be created! also folder!!
52+
put_file_on_dbfs(db, f'{settings.dbfs_license_path}/license.json', lic, overwrite=True)
5353
return settings.dbfs_license_path
5454

5555

johnsnowlabs/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
db_py_jobs_dir = f"{dbfs_home_dir}/py_jobs"
7373
db_py_notebook_dir = f"{dbfs_home_dir}/py_notebook_jobs"
7474
db_jar_jobs_dir = f"{dbfs_home_dir}/jar_jobs"
75+
dbfs_license_path = f"{dbfs_home_dir}/licenses"
76+
dbfs_info_path = f"{dbfs_home_dir}/info.json"
77+
7578

7679
db_cluster_name = "John-Snow-Labs-Databricks-Auto-Cluster🚀"
7780
db_driver_node_type = "i3.xlarge"
@@ -82,7 +85,6 @@
8285

8386
db_job_name = "John-Snow-Labs-Job {job} 🚀"
8487
db_run_name = "John-Snow-Labs-Run 🚀"
85-
db_driver_node_type = "i3.xlarge"
8688

8789
# emr settings
8890
emr_cluster_name = "John-Snow-Labs-EMR-Auto-Cluster🚀"

0 commit comments

Comments
 (0)