rmetzger commented on pull request #10964:
URL: https://github.com/apache/flink/pull/10964#issuecomment-734167193


   It seems that `-yid` is the right argument for this!
   
   ```
   [root@sandbox-hdp flink-1.12.0]# echo "stop" | ./bin/yarn-session.sh -yid 
application_1606316139480_0003
   Setting HBASE_CONF_DIR=/etc/hbase/conf because no HBASE_CONF_DIR was set.
   SLF4J: Class path contains multiple SLF4J bindings.
   SLF4J: Found binding in 
[jar:file:/root/flink-1.12.0/lib/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: Found binding in 
[jar:file:/usr/hdp/3.0.1.0-187/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
   SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
   SLF4J: Actual binding is of type 
[org.apache.logging.slf4j.Log4jLoggerFactory]
   2020-11-26 08:59:45,435 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: jobmanager.rpc.address, localhost
   2020-11-26 08:59:45,443 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: jobmanager.rpc.port, 6123
   2020-11-26 08:59:45,444 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: jobmanager.memory.process.size, 1600m
   2020-11-26 08:59:45,444 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: taskmanager.memory.process.size, 1728m
   2020-11-26 08:59:45,444 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: taskmanager.numberOfTaskSlots, 1
   2020-11-26 08:59:45,445 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: parallelism.default, 1
   2020-11-26 08:59:45,445 INFO  
org.apache.flink.configuration.GlobalConfiguration           [] - Loading 
configuration property: jobmanager.execution.failover-strategy, region
   2020-11-26 08:59:45,841 INFO  org.apache.flink.yarn.cli.FlinkYarnSessionCli  
              [] - Found Yarn properties file under /tmp/.yarn-properties-root.
   2020-11-26 08:59:46,438 WARN  org.apache.flink.runtime.util.HadoopUtils      
              [] - Could not find Hadoop configuration via any of the supported 
methods (Flink configuration, environment variables).
   2020-11-26 08:59:46,894 WARN  org.apache.hadoop.util.NativeCodeLoader        
              [] - Unable to load native-hadoop library for your platform... 
using builtin-java classes where applicable
   2020-11-26 08:59:47,347 INFO  
org.apache.flink.runtime.security.modules.HadoopModule       [] - Hadoop user 
set to root (auth:SIMPLE)
   2020-11-26 08:59:47,434 INFO  
org.apache.flink.runtime.security.modules.JaasModule         [] - Jaas file 
will be created as /tmp/jaas-2143102477478828836.conf.
   2020-11-26 08:59:47,841 WARN  
org.apache.flink.yarn.configuration.YarnLogConfigUtil        [] - The 
configuration directory ('/root/flink-1.12.0/conf') already contains a LOG4J 
config file.If you want to use logback, then please delete or rename the log 
configuration file.
   2020-11-26 08:59:49,294 INFO  org.apache.hadoop.yarn.client.RMProxy          
              [] - Connecting to ResourceManager at 
sandbox-hdp.hortonworks.com/172.18.0.2:8050
   2020-11-26 08:59:51,247 INFO  org.apache.hadoop.yarn.client.AHSProxy         
              [] - Connecting to Application History server at 
sandbox-hdp.hortonworks.com/172.18.0.2:10200
   2020-11-26 08:59:51,435 WARN  org.apache.flink.yarn.YarnClusterDescriptor    
              [] - Neither the HADOOP_CONF_DIR nor the YARN_CONF_DIR 
environment variable is set.The Flink YARN Client needs one of these to be set 
to properly load the Hadoop configuration for accessing YARN.
   2020-11-26 08:59:52,089 INFO  org.apache.flink.yarn.YarnClusterDescriptor    
              [] - Found Web Interface sandbox-hdp.hortonworks.com:33009 of 
application 'application_1606316139480_0003'.
   2020-11-26 08:59:56,845 INFO  org.apache.flink.yarn.cli.FlinkYarnSessionCli  
              [] - Deleted Yarn properties file at /tmp/.yarn-properties-root
   2020-11-26 08:59:56,895 INFO  org.apache.flink.yarn.cli.FlinkYarnSessionCli  
              [] - Application application_1606316139480_0003 finished with 
state RUNNING and final state UNDEFINED at 0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to