Skip to content

Instantly share code, notes, and snippets.

@hiboyang
Created June 11, 2018 17:25
Show Gist options
  • Save hiboyang/958120e59e139e1b42b41e4b98bd1e49 to your computer and use it in GitHub Desktop.
Save hiboyang/958120e59e139e1b42b41e4b98bd1e49 to your computer and use it in GitHub Desktop.
spark-submit --deploy-mode cluster --master yarn --conf spark.jars=hdfs://hdfs_url/lib/jvm-profiler-0.0.5.jar --conf spark.driver.extraJavaOptions=-javaagent:jvm-profiler-0.0.5.jar --conf spark.executor.extraJavaOptions=-javaagent:jvm-profiler-0.0.5.jar --class com.company.SparkJob spark_job.jar
@0sc4r123
Copy link

you can read more about security in the related section of the documentation

http://symfony.com/doc/current/book/security.html

security:

# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
        our_db_provider:
        entity:
            class: GASUserBundle:User
            property: username
            property: pass
firewalls:
    default:
        anonymous: ~
        http_basic: ~
        form_login:
            login_path: /login
            check_path: /login_check
            # field names for the username and password fields:
            username_parameter: _username
            password_parameter: _password
            # default_target_path: default_security_target
            # always_use_default_target_path: true
        logout:
            path:   /logout
            target: /login
    # disables authentication for assets and the profiler, adapt it according to your needs
    dev:
        pattern:  ^/(_(profiler|wdt)|css|images|js)/
        security: false
    # the login page has to be accessible for everybody
    main:
        anonymous: ~
        # activate different ways to authenticate

        # http_basic: ~
        # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate

        # form_login: ~
        # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
    
# http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password
encoders:
    GAS\UserBundle\Entity\User: 
        algorithm: bcrypt
        cost: 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment