nx1 and the Kyuubi
batch submit tool.
nx1
The nx1 tool supports three authentication methods. If you configure more than one, then NexusOne
applies priority in the following order:
- Command-line options
- Environment variables
- Profile
Command-line options
The command-line options authentication method passes authentication values directly to thenx1
command at runtime.
The names of the command-line options include:
--api_key: API key--host: API host
- Get your API key.
-
Run the
nx1command and include both options.
Environment variables
The environment variables authentication method uses variables configured on the command line. The required variables include:NX1_API_KEY: API keyNX1_HOST: API host
- Linux
- Windows
- Get your API key.
-
Set the environment variables.
-
Run the
nx1command.
Profile
The profile authentication method uses a configuration file stored in a default directory. The file contains details of different profiles. Profiles can represent different environments, such as development, staging, and production. They allow you to store multiple credentials and switch between them easily without re-entering your credentials. The default NexusOne directory is the following:- Get your API key.
-
Create the new directory and file.
-
Add a
defaultprofile.This adds your credentials to the~/.nx1/profilesfile.
Kyuubi batch submit
The Kyuubi batch submit tool supports three authentication methods. If you configure more than one, then NexusOne applies priority in the following order:- Command-line options
- YAML config
- Environment variable
- Interactive prompt
Command-line options
The command-line options authentication method passes authentication values at runtime. The names of the command-line options include:--username: Kyuubi username--password: Kyuubi password
-
Clone the kyuubi-submit GitHub repository.
-
Install dependencies and requirements.
-
Make the Kyuubi script executable.
-
Run the
kyuubi_submit.pyscript and include both options.
YAML config
The YAML config authentication method uses a configuration file. The file contains details about your credentials, including additional details you would normally pass to the command line, such as:- Resource
- Classname
- Args
- Jars
-
Clone the kyuubi-submit GitHub repository.
-
Install dependencies and requirements.
-
Make the Kyuubi script executable.
-
Create the config file.
-
Run the Kyuubi script and include the config file.
-
To optionally override YAML values, pass the options.
Environment variable
The environment variable authentication method uses a variable configured on the command line. It requires the following variable:KYUUBI_SUBMIT_PASSWORD: Kyuubi password
- Linux
- Windows
-
Clone the kyuubi-submit GitHub repository.
-
Install dependencies and requirements.
-
Make the Kyuubi script executable.
-
Set the environment variable.
-
Run the Kyuubi script command.
Interactive prompt
The interactive prompt authentication method expects you to always enter your Kyuubi password each time you run a command. To use this option, take the following steps:-
Clone the kyuubi-submit GitHub repository.
-
Install dependencies and requirements.
-
Make the Kyuubi script executable.
-
Run the
kyuubi_submit.pyscript without including the--passwordoption. - When prompted to enter a password, enter your password.