aztk/spark/client/base/operations.py
def _generate_cluster_start_task(
            self,
            core_base_operations,
            zip_resource_file: batch_models.ResourceFile,
            id: str,
            gpu_enabled: bool,
            docker_repo: str = None,
            docker_run_options: str = None,
            file_shares: List[models.FileShare] = None,
            mixed_mode: bool = False,
            worker_on_master: bool = True,
    ):
        """Generate the Azure Batch Start Task to provision a Spark cluster.

        Args:
            zip_resource_file (:obj:`azure.batch.models.ResourceFile`): a single zip file of all necessary data
                to upload to the cluster.
            id (:obj:`str`): the id of the cluster.
            gpu_enabled (:obj:`bool`): if True, the cluster is GPU enabled.
            docker_repo (:obj:`str`, optional): the docker repository and tag that identifies the docker image to use.
                If None, the default Docker image will be used. Defaults to None.
            file_shares (:obj:`aztk.spark.models.FileShare`, optional): a list of FileShares to mount on the cluster.
                Defaults to None.
            mixed_mode (:obj:`bool`, optional): If True, the cluster is configured to use both dedicated
                and low priority VMs. Defaults to False.
            worker_on_master (:obj:`bool`, optional): If True, the cluster is configured to provision a Spark worker
                on the VM that runs the Spark master. Defaults to True.

        Returns:
            :obj:`azure.batch.models.StartTask`: the StartTask definition to provision the cluster.
        """
        return generate_cluster_start_task.generate_cluster_start_task(
            core_base_operations,
            zip_resource_file,
            id,
            gpu_enabled,
            docker_repo,
            docker_run_options,
            file_shares,
            mixed_mode,
            worker_on_master,
        )
Generate the Azure Batch Start Task to provision a Spark cluster.

        Args:
            zip_resource_file (:obj:`azure.batch.models.ResourceFile`): a single zip file of all necessary data
                to upload to the cluster.
            id (:obj:`str`): the id of the cluster.
            gpu_enabled (:obj:`bool`): if True, the cluster is GPU enabled.
            docker_repo (:obj:`str`, optional): the docker repository and tag that identifies the docker image to use.
                If None, the default Docker image will be used. Defaults to None.
            file_shares (:obj:`aztk.spark.models.FileShare`, optional): a list of FileShares to mount on the cluster.
                Defaults to None.
            mixed_mode (:obj:`bool`, optional): If True, the cluster is configured to use both dedicated
                and low priority VMs. Defaults to False.
            worker_on_master (:obj:`bool`, optional): If True, the cluster is configured to provision a Spark worker
                on the VM that runs the Spark master. Defaults to True.

        Returns:
            :obj:`azure.batch.models.StartTask`: the StartTask definition to provision the cluster.
        
Generate the Azure Batch Start Task to provision a Spark cluster.
Generate the Azure Batch Start Task to provision a Spark cluster .
def _generate_cluster_start_task(
            self,
            core_base_operations,
            zip_resource_file: batch_models.ResourceFile,
            id: str,
            gpu_enabled: bool,
            docker_repo: str = None,
            docker_run_options: str = None,
            file_shares: List[models.FileShare] = None,
            mixed_mode: bool = False,
            worker_on_master: bool = True,
    ):
        return generate_cluster_start_task.generate_cluster_start_task(
            core_base_operations,
            zip_resource_file,
            id,
            gpu_enabled,
            docker_repo,
            docker_run_options,
            file_shares,
            mixed_mode,
            worker_on_master,
        )
def _generate_cluster_start_task ( self , core_base_operations , zip_resource_file : batch_models . ResourceFile , id : str , gpu_enabled : bool , docker_repo : str = None , docker_run_options : str = None , file_shares : List [ models . FileShare ] = None , mixed_mode : bool = False , worker_on_master : bool = True , ) : return generate_cluster_start_task . generate_cluster_start_task ( core_base_operations , zip_resource_file , id , gpu_enabled , docker_repo , docker_run_options , file_shares , mixed_mode , worker_on_master , )
Generate the Azure Batch Start Task to provision a Spark cluster.
Generate the Azure Batch Start Task to provision a Spark cluster .
"""Generate the Azure Batch Start Task to provision a Spark cluster.

        Args:
            zip_resource_file (:obj:`azure.batch.models.ResourceFile`): a single zip file of all necessary data
                to upload to the cluster.
            id (:obj:`str`): the id of the cluster.
            gpu_enabled (:obj:`bool`): if True, the cluster is GPU enabled.
            docker_repo (:obj:`str`, optional): the docker repository and tag that identifies the docker image to use.
                If None, the default Docker image will be used. Defaults to None.
            file_shares (:obj:`aztk.spark.models.FileShare`, optional): a list of FileShares to mount on the cluster.
                Defaults to None.
            mixed_mode (:obj:`bool`, optional): If True, the cluster is configured to use both dedicated
                and low priority VMs. Defaults to False.
            worker_on_master (:obj:`bool`, optional): If True, the cluster is configured to provision a Spark worker
                on the VM that runs the Spark master. Defaults to True.

        Returns:
            :obj:`azure.batch.models.StartTask`: the StartTask definition to provision the cluster.
        """
:obj:`azure.batch.models.StartTask`: the StartTask definition to provision the cluster.
: obj : ` azure . batch . models . StartTask ` : the StartTask definition to provision the cluster .
self
core_base_operations
zip_resource_file
batch_models.ResourceFile
id
str
gpu_enabled
bool
docker_repo
str
docker_run_options
str
file_shares
List[models.FileShare]
mixed_mode
bool
worker_on_master
bool
zip_resource_file (
`azure.batch.models.ResourceFile`): a single zip file of all necessary data
to upload to the cluster.
` azure . batch . models . ResourceFile ` ) : a single zip file of all necessary data to upload to the cluster .
id (
`str`): the id of the cluster.
` str ` ) : the id of the cluster .
gpu_enabled (
`bool`): if True, the cluster is GPU enabled.
` bool ` ) : if True the cluster is GPU enabled .
docker_repo (
`str`, optional): the docker repository and tag that identifies the docker image to use.
If None, the default Docker image will be used. Defaults to None.
` str ` optional ) : the docker repository and tag that identifies the docker image to use . If None the default Docker image will be used . Defaults to None .
file_shares (
`aztk.spark.models.FileShare`, optional): a list of FileShares to mount on the cluster.
Defaults to None.
` aztk . spark . models . FileShare ` optional ) : a list of FileShares to mount on the cluster . Defaults to None .
mixed_mode (
`bool`, optional): If True, the cluster is configured to use both dedicated
and low priority VMs. Defaults to False.
` bool ` optional ) : If True the cluster is configured to use both dedicated and low priority VMs . Defaults to False .
worker_on_master (
`bool`, optional): If True, the cluster is configured to provision a Spark worker
on the VM that runs the Spark master. Defaults to True.
` bool ` optional ) : If True the cluster is configured to provision a Spark worker on the VM that runs the Spark master . Defaults to True .