public String getJVMArgument ( Props sysProps , Props jobProps , final Logger logger ) { String secure = "" ; if ( shouldProxy ) { logger . info ( "Setting up secure proxy info for child process" ) ; secure = " -D" + HadoopSecurityManager . USER_TO_PROXY + "=" + jobProps . getString ( HadoopSecurityManager . USER_TO_PROXY ) ; String extraToken = sysProps . getString ( HadoopSecurityManager . OBTAIN_BINARY_TOKEN , "false" ) ; if ( extraToken != null ) { secure += " -D" + HadoopSecurityManager . OBTAIN_BINARY_TOKEN + "=" + extraToken ; } logger . info ( "Secure settings = " + secure ) ; } else { logger . info ( "Not setting up secure proxy info for child process" ) ; } return secure ; }
Generate JVM Proxy Secure Argument