[ 
https://issues.apache.org/jira/browse/YARN-3767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14573273#comment-14573273
 ] 

Varun Saxena commented on YARN-3767:
------------------------------------

Yes it will work if you copy {{sls-runner.xml}} to {{etc/hadoop}}. This is 
mentioned in documentation as well. Refer to : 
http://hadoop.apache.org/docs/r2.4.1/hadoop-sls/SchedulerLoadSimulator.html#Step_1:_Configure_Hadoop_and_the_simulator

It mentions "Before we start, make sure Hadoop and the simulator are configured 
well. All configuration files for Hadoop and the simulator should be placed in 
directory $HADOOP_ROOT/etc/hadoop, where the ResourceManager and Yarn scheduler 
load their configurations. Directory 
$HADOOP_ROOT/share/hadoop/tools/sls/sample-conf/ provides several example 
configurations, that can be used to start a demo."

> Yarn Scheduler Load Simulator does not work
> -------------------------------------------
>
>                 Key: YARN-3767
>                 URL: https://issues.apache.org/jira/browse/YARN-3767
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>         Environment: OS X 10.10.  JDK 1.7
>            Reporter: David Kjerrumgaard
>            Assignee: Varun Saxena
>
> Running the SLS, as per the instructions on the web results in a 
> NullPointerException being thrown.
> Steps followed to create error:
> 1) Download Apache Hadoop 2.7.0 tarball from Apache site
> 2) Untar 2.7.0 tarball into /opt directory
> 3) Execute the following command: 
> /opt/hadoop-2.7.0/share/hadoop/tools/sls//bin/slsrun.sh 
> --input-rumen=/opt/hadoop-2.7.0/share/hadoop/tools/sls/sample-data/2jobs2min-rumen-jh.json
>  --output-dir=/tmp
> Results in the following error:
> 15/06/04 10:25:41 INFO rmnode.RMNodeImpl: a2118.smile.com:2 Node Transitioned 
> from NEW to RUNNING
> 15/06/04 10:25:41 INFO capacity.CapacityScheduler: Added node 
> a2118.smile.com:2 clusterResource: <memory:30720, vCores:30>
> 15/06/04 10:25:41 INFO util.RackResolver: Resolved a2115.smile.com to 
> /default-rack
> 15/06/04 10:25:41 INFO resourcemanager.ResourceTrackerService: NodeManager 
> from node a2115.smile.com(cmPort: 3 httpPort: 80) registered with capability: 
> <memory:10240, vCores:10>, assigned nodeId a2115.smile.com:3
> 15/06/04 10:25:41 INFO rmnode.RMNodeImpl: a2115.smile.com:3 Node Transitioned 
> from NEW to RUNNING
> 15/06/04 10:25:41 INFO capacity.CapacityScheduler: Added node 
> a2115.smile.com:3 clusterResource: <memory:40960, vCores:40>
> Exception in thread "main" java.lang.RuntimeException: 
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:134)
>       at 
> org.apache.hadoop.yarn.sls.SLSRunner.startAMFromRumenTraces(SLSRunner.java:398)
>       at org.apache.hadoop.yarn.sls.SLSRunner.startAM(SLSRunner.java:250)
>       at org.apache.hadoop.yarn.sls.SLSRunner.start(SLSRunner.java:145)
>       at org.apache.hadoop.yarn.sls.SLSRunner.main(SLSRunner.java:528)
> Caused by: java.lang.NullPointerException
>       at 
> java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
>       at 
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
>       at 
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:126)
>       ... 4 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to