Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

databricks (2) Versions 0.1.0

Installs/Configures Databricks resources

Policyfile
Berkshelf
Knife
cookbook 'databricks', '= 0.1.0', :supermarket
cookbook 'databricks', '= 0.1.0'
knife supermarket install databricks
knife supermarket download databricks
README
Dependencies
Changelog
Quality -%

databricks Cookbook

Configures a Databricks workspace, using the Databricks REST API 2.0.

Requirements

Rubygems

The following gems are installed automatically by your Chef client when using this cookbook, as part of its main dependencies:

Platforms

The following platforms are supported and tested with Test Kitchen:

TODO: Compile the exact list when Test Kitchen will be fully configured.

Chef

  • Chef 15+

Resources

  • [databricks_file](documentation/databricks_file.md)
  • [databricks_job](documentation/databricks_job.md)
  • [databricks_instance_pool](documentation/databricks_instance_pool.md)

Usage

This cookbook is resource-based. Use the resources described above in wrapper cookbooks or recipes.

Each resource uses attributes host and token to know the Databricks host to target, and the token used in the REST API queries.

If you want to group all resources accessed under the same host and token, you can use the on_databricks helper that provides a scope to define such resources.
Then resources defined in such a scope will use the given host and token as default values.

Example:
```ruby
on_databricks('https://my-databricks.net', 'my-token') do

databricks_file '/FileStore/txt/test.txt' do
source 'test.txt'
end

databricks_job 'Test job' do
settings(
new_cluster: {
spark_version: '7.4.x-scala2.12',
node_type_id: 'Standard_DS3_v2',
enable_elastic_disk: true,
num_workers: 2
},
timeout_seconds: 0,
max_concurrent_runs: 1
)
end

end
```

Development

Development workflow

A standard PR-based development workflow is applied to this repository, using a single master release branch and linear strategy.

If you want to contribute to the code, please create a fork of the repository in your Github's user space, then push a branch with your modifications on your fork and create a PR from it to the master branch on the main repository.

Testing

Lint testing can be done using Chef's delivery tool:
bash
/opt/chef-workstation/bin/delivery local lint

Unit testing can be done using Chefspec.
Unit testing needs webmock to run, so you will have to install it as part of your Chef workstation's gems:
bash
/opt/chef-workstation/embedded/bin/gem install webmock

Then unit tests can be run like this:
bash
/opt/chef-workstation/bin/chef exec rspec

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

databricks CHANGELOG

This file is used to list changes made in each version of the databricks cookbook.

0.1.0

Initial release. Supports files, jobs and instance pools.

No quality metric results found