Skip to content

Demo script for provisioning a Spark cluster via API on Bare Metal Cloud

Notifications You must be signed in to change notification settings

phoenixnap/python-spark-demo-bmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


phoenixnap Bare Metal Cloud
DevOps Days Bare Metal Cloud Scripts

Demo script for provisioning Bare Metal Cloud servers via API. This script creates a Spark cluster consisting of 3 Ubuntu servers (1 master node and 2 workers nodes).

Bare Metal CloudAPIDevelopers PortalKnowledge BaseSupport

Requirements

Creating a Bare Metal Cloud account

  1. Go to the Bare Metal Cloud signup page.
  2. Follow the prompts to set up your account.
  3. Use your credentials to log in to Bare Metal Cloud portal.

▶️ Video tutorial: How to Create a Bare Metal Cloud Account

▶️ Video tutorial: Introduction to Bare Metal Cloud

API Credentials

You need valid Bare Metal Cloud API credentials to use this script. Follow these steps to obtain your API credentials:

  1. Log in to the Bare Metal Cloud portal.
  2. On the left side menu, click on API Credentials.
  3. Click the Create Credentials button.
  4. Fill in the Name and Description fields, select the permissions scope and click Create.
  5. In the table, click on Actions and select View Credentials from the dropdown to view the Client ID and Client Secret.

Bare Metal Cloud Quick Start Guide: https://developers.phoenixnap.com/quick-start

Setup

  1. Set your credentials in credentials.conf.

  2. Set a public key in server-settings.conf, you can see your default public key with this command: cat ~/.ssh/id_rsa.pub.

  3. To execute the script, run this command: python3 bmc-spark.py

Script details

URL

Once the infrastructure and software are ready, the script will check if the cluster is set up properly. After that, you will get a URL to access the master node via web UI.

Release

To release the servers, use the command: python3 bmc-spark.py -d0.

Bare Metal Cloud community

Become part of the Bare Metal Cloud community to get updates on new features, help us improve the platform, and engage with developers and other users.

Resources

Documentation

Contact phoenixNAP

Get in touch with us if you have questions or need help with Bare Metal Cloud.

TwitterFacebookLinkedInInstagramYouTubeEmail


phoenixnap Bare Metal Cloud

About

Demo script for provisioning a Spark cluster via API on Bare Metal Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •