databrickslabs / blueprint Goto Github PK
View Code? Open in Web Editor NEWBaseline for Databricks Labs projects written in Python
Home Page: https://pypi.org/project/databricks-labs-blueprint/
License: Other
Baseline for Databricks Labs projects written in Python
Home Page: https://pypi.org/project/databricks-labs-blueprint/
License: Other
After running databricks labs blueprint init-project --target discoverx
I get the following error
>
> Name of the project (default: discoverx):
> 11:59:55 ERROR [d.l.blueprint.init-project] FileNotFoundError: [Errno 2] No such file or directory: '.databricks/labs/blueprint/lib'
> User@C02FR21BML85 discoverx % databricks labs blueprint init-project --target discoverx --debug
> 12:00:05 INFO start pid=15666 version=0.212.1 args="databricks, labs, blueprint, init-project, --target, discoverx, --debug"
> 12:00:05 DEBUG Loading installed version info from: /Users/User/.databricks/labs/blueprint/state/version.json pid=15666
> 12:00:05 DEBUG Passing down environment variables: pid=15666
> 12:00:05 DEBUG Forwarding subprocess: /Users/User/.databricks/labs/blueprint/state/venv/bin/python3 /Users/User/.databricks/labs/blueprint/lib/src/databricks/labs/blueprint/__main__.py {"command":"init-project","flags":{"log_level":"debug","target":"discoverx"},"output_type":""} pid=15666
> 12:00:05 DEBUG starting: /Users/User/.databricks/labs/blueprint/state/venv/bin/python3 /Users/User/.databricks/labs/blueprint/lib/src/databricks/labs/blueprint/__main__.py {"command":"init-project","flags":{"log_level":"debug","target":"discoverx"},"output_type":""} pid=15666
> Name of the project (default: discoverx):
> 12:00:09 ERROR [d.l.blueprint.init-project] Failed to call init-project: Traceback (most recent call last):
> File "/Users/User/.databricks/labs/blueprint/lib/src/databricks/labs/blueprint/cli.py", line 74, in _route
> self._mapping[command].fn(**kwargs)
> File "/Users/User/.databricks/labs/blueprint/lib/src/databricks/labs/blueprint/__main__.py", line 101, in init_project
> for file in current.iterdir():
> File "/usr/local/Cellar/[email protected]/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/pathlib.py", line 1017, in iterdir
> for name in self._accessor.listdir(self):
> FileNotFoundError: [Errno 2] No such file or directory: '.databricks/labs/blueprint/lib'
AssertionError: assert '/custom/folder' == '/custom/folder...'
- /custom/folder...
? ---
+ /custom/folder
22:41 DEBUG [databricks.sdk] Loaded from environment
22:41 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
22:41 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
22:41 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
22:41 INFO [databricks.sdk] Using Databricks Metadata Service authentication
[gw3] linux -- Python 3.10.13 /home/runner/work/blueprint/blueprint/.venv/bin/python
22:41 DEBUG [databricks.sdk] Loaded from environment
22:41 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
22:41 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
22:41 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
22:41 INFO [databricks.sdk] Using Databricks Metadata Service authentication
22:41 DEBUG [databricks.sdk] Loaded from environment
22:41 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
22:41 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
22:41 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
22:41 INFO [databricks.sdk] Using Databricks Metadata Service authentication
[gw3] linux -- Python 3.10.13 /home/runner/work/blueprint/blueprint/.venv/bin/python
Running from acceptance #87
at the moment, it's a bit cumbersome to do
product_name = make_random(4)
product_info = ProductInfo.from_class(WorkspaceConfig)
product_info.product_name = lambda: product_name
When writing notebooks, there is no way to print all logs to the UI, there's a limit in terms of Bytes.
Having a way to dump logs to a file will help the field to debug production tasks easily
This will simplify the unit testing for commands
Sometimes, upgrading an installation requires changes not only to config format, but also application state in the form of data assets and workspace assets, like cluster policies, cluster or dashboard configurations, which results in outages while rolling new versions out.
We need:
When attempting to run the Python API of a project built using Blueprint, there is an error associated when initializing the logger. Specifically, it is unable to find the project root.
Python applications extending the blueprint library should be able to run without explicitly having a project root. Note this is run on databricks-labs-remorph==0.2.1
with databricks-labs-blueprint==0.1.0
simple example
from databricks.sdk.service.compute import ClusterDetails
installation = MockInstallation(...)
installation.load(ClusterDetails, filename=...)
fails with
databricks.labs.blueprint.installation.SerdeError: spark_conf: unknown: <class 'dict'>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.