spark_plugin.py
def _validate_master(cls, master):
        """
        validate form of master url provided from config file

        Args:
        master (str): String representing master URL

        Returns:
        bool: True if master URL contains host and port as expected
              and False otherwise
        """
        host, port = master.rsplit(":", 1)
        if host and port:
            try:
                port = int(port)
            except (ValueError, TypeError):
                return False
            return _validate_url(host)
        else:
            return False

        validate form of master url provided from config file

        Args:
        master (str): String representing master URL

        Returns:
        bool: True if master URL contains host and port as expected
              and False otherwise
        
validate form of master url provided from config file
Args:
master (str): String representing master URL

True if master URL contains host and port as expected
and False otherwise
validate form of master url provided from config file Args : master ( str ) : String representing master URL True if master URL contains host and port as expected and False otherwise
def _validate_master(cls, master):
        host, port = master.rsplit(":", 1)
        if host and port:
            try:
                port = int(port)
            except (ValueError, TypeError):
                return False
            return _validate_url(host)
        else:
            return False
def _validate_master ( cls , master ) : host , port = master . rsplit ( ":" , 1 ) if host and port : try : port = int ( port ) except ( ValueError , TypeError ) : return False return _validate_url ( host ) else : return False
validate form of master url provided from config file
Args:
master (str): String representing master URL
validate form of master url provided from config file Args : master ( str ) : String representing master URL
"""
        validate form of master url provided from config file

        Args:
        master (str): String representing master URL

        Returns:
        bool: True if master URL contains host and port as expected
              and False otherwise
        """
cls
master