コード例 #1
0
def load(s3_path):
    '''
    Loads an EC2 Cluster object from the s3_path.

    This will have the effect of instantiating an object locally, which contains
    all the relevant metadata associated the EC2 Cluster. This is useful for
    getting a handle of an Turi EC2 Cluster created from another machine, allowing
    you to submit jobs to it.

    Parameters
    ----------
    s3_path : str
        Used for storing cluster state data, such as log files. This path can be used from another
        machine to load a handle to this cluster.

    Returns
    -------
    out : :py:class:`~graphlab.deploy.Ec2Cluster`
        The EC2 Cluster Handle that can be used to access and manage the Cluster.

    See Also
    --------
    graphlab.deploy.ec2_cluster.create
    '''
    result = _load_artifact(s3_path + '/state')
    _default_session.save(result)
    return result
コード例 #2
0
def load(s3_path):
    '''
    Loads an EC2 Cluster object from the s3_path.

    This will have the effect of instantiating an object locally, which contains
    all the relevant metadata associated the EC2 Cluster. This is useful for
    getting a handle of an Dato EC2 Cluster created from another machine, allowing
    you to submit jobs to it.

    Parameters
    ----------
    s3_path : str
        Used for storing cluster state data, such as log files. This path can be used from another
        machine to load a handle to this cluster.

    Returns
    -------
    out : :py:class:`~graphlab.deploy.Ec2Cluster`
        The EC2 Cluster Handle that can be used to access and manage the Cluster.

    See Also
    --------
    graphlab.deploy.ec2_cluster.create
    '''
    result = _load_artifact(s3_path + '/state')
    _default_session.save(result)
    return result
コード例 #3
0
 def _save(self):
     '''
     save to both local session and S3.
     '''
     self._save_to_file(self.s3_state_path + '/state')
     _default_session.save(self)
コード例 #4
0
 def _save(self):
     '''
     save to both local session and S3.
     '''
     self._save_to_file(self.s3_state_path + '/state')
     _default_session.save(self)