Hadoop notes

From Simson Garfinkel
Revision as of 13:39, 3 May 2018 by Simson (talk | contribs) (Created page with "Run a command with Apache Yarn: export DSJAR=/usr/lib/hadoop-yarn/hadoop-yarn-applications-distributedshell-2.8.3-amzn-0.jar yarn jar $DSJAR -jar $DSJAR org.apache.ha...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Run a command with Apache Yarn:

   export DSJAR=/usr/lib/hadoop-yarn/hadoop-yarn-applications-distributedshell-2.8.3-amzn-0.jar
   yarn jar $DSJAR -jar $DSJAR org.apache.hadoop.yarn.applications.distributedshell.Client -master_memory 1000 -container_memory 1000 -shell_command 'hostname'

Output:

   ....
   18/05/03 21:35:32 INFO distributedshell.Client: Got application report from ASM for, appId=7, clientToAMToken=null, appDiagnostics=, appMasterHost=imrdasec2c9b/127.0.0.1, appQueue=default, appMasterRpcPort=-1, appStartTime=1525383325669, yarnAppState=FINISHED, distributedFinalState=SUCCEEDED, appTrackingUrl=http://ip-10-252-45-185.ite.ti.census.gov:20888/proxy/application_1525380541355_0007/, appUser=hadoop
   ....


view the logs with:

   yarn logs -applicationId application_1525380541355_0007