#NEWLINE# def update_zk_env_sh( args , artifact , version ) : #NEWLINE# #INDENT# current_path = os . path . abspath ( os . path . dirname ( os . path . realpath ( args . package_root ) ) ) #NEWLINE# jvm_flags = '-Djava.security.auth.login.config=$ZOOCFGDIR/jaas.conf ' #NEWLINE# jvm_flags += '-Djava.security.krb5.conf=$ZOOCFGDIR/krb5.conf ' #NEWLINE# bin_path = ( '%s/%s/%s-%s/bin' % ( args . package_root , args . cluster , artifact , version ) ) #NEWLINE# deploy_utils . append_to_file ( ( '%s/zkEnv.sh' % bin_path ) , ( 'export JVMFLAGS="%s"\n' % artifact ) )