$ oci session authenticate
- select the intended region from the provided list of regions.
- Please switch to newly opened browser window to log in!
- Completed browser authentication process!
- Enter the name of the profile you would like to create: <profile_name> ex. oci-cli
- Config written to: ~/.oci/config
- Try out your newly created session credentials with the following example command:
$ oci iam region list --config-file ~/.oci/config --profile <profile_name> --auth security_token
A
profile is created in your ~/.oci/config file . Use the profile name to
run the tutorial.
1. Create the Java Application Using Spark-Submit and CLI 🔗
Use Spark-submit and the CLI to complete tutorials.
If you don't have a bucket in Object Storage where you can save your
input and results, you must create a bucket with a suitable folder
structure. In this example, the folder structure is
/output/tutorial1.
If
you have run this tutorial before, delete the contents of the output directory,
oci://<bucket-name>@<namespace-name>/output/tutorial1,
to prevent the tutorial failing.
Note
To find the compartment-id, from the
navigation menu, click Indentity and click Compartments. The
compartments available to you are listed, including the OCID of
each.
2: Machine Learning with PySpark 🔗
Use Spark-submit and CLI to carry out machine learning with PySpark,
You can use spark-submit from the CLI to create and run Java, Python, or SQL
applications with Data Flow, and explore the results.
Data Flow handles all details of deployment, tear
down, log management, security, and UI access. With Data Flow, you focus on developing Spark applications
without worrying about the infrastructure.