def spark_step_properties(jar, submitOptions, arguments=None):
    """
    Create spark step properties

    :param jar: the path of .jar file
    :type jar: string

    :param main_class: the package path for main class
    :type main_class: string

    :param arguments: arguments for the step
    :type arguments: string

    :return:
    :rtype map
    """
    spark_step = {'jar': jar, 'submitOptions': submitOptions}
    if arguments is not None:
        spark_step['arguments'] = arguments
    return spark_step
