File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog db-rocket
2
2
3
+ ## Version 3.0.2
4
+ - Add databricks cli configuration check
5
+
3
6
## Version 3.0.1
4
7
- Add workaround for making --watch command work with --use-volumes
5
8
Original file line number Diff line number Diff line change @@ -68,10 +68,15 @@ def launch(
68
68
:param dst_path: Destination path to store the files. Support both dbfs:/ and /Volumes. Ideally, we should use dst_path and deprecate dbfs_path.
69
69
:return:
70
70
"""
71
+
72
+ home = os .environ ['HOME' ]
73
+ if not os .path .exists (f"{ home } /.databrickscfg" ):
74
+ raise Exception ("Databricks cli not configured. Run `databricks configure --token`." )
75
+
71
76
if os .getenv ("DATABRICKS_TOKEN" ) is None :
72
77
raise Exception ("DATABRICKS_TOKEN must be set for db-rocket to work" )
73
78
74
- base_dbfs_access_error_message = ("Please check if your databricks token is set and valid? "
79
+ base_dbfs_access_error_message = ("Is your databricks token is set and valid? "
75
80
"Try to generate a new token and update existing one with "
76
81
"`databricks configure --token`." )
77
82
if use_volumes :
Original file line number Diff line number Diff line change 9
9
10
10
setuptools .setup (
11
11
name = "databricks-rocket" ,
12
- version = "3.0.1 " ,
12
+ version = "3.0.2 " ,
13
13
author = "GetYourGuide" ,
14
14
author_email = "engineering.data-products@getyourguide.com" ,
15
15
description = "Keep your local python scripts installed and in sync with a databricks notebook. Shortens the feedback loop to develop projects using a hybrid enviroment" ,
You can’t perform that action at this time.
0 commit comments