hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio <anyte...@gmail.com>
Subject SLS throws NullPointerException
Date Sat, 10 Jan 2015 02:04:31 GMT
Hi guys,
I'm facing some issues starting SLS (Scheduler Load Simulator) on both 
hadoop 2.6.0 and 2.5.0.
Starting the simulation I get:
Exception in thread "main" java.lang.RuntimeException: 
java.lang.NullPointerException
     at 
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
     at 
org.apache.hadoop.yarn.sls.SLSRunner.startAMFromSLSTraces(SLSRunner.java:313)
     at org.apache.hadoop.yarn.sls.SLSRunner.startAM(SLSRunner.java:248)
     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.get(ConcurrentHashMap.java:936)
     at 
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:123)
     ... 4 more

I tried exporting any possible env variable:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
export HADOOP_HOME=/opt/yarn/hadoop-2.6.0
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export PATH=$PATH:$HADOOP_HOME/bin
export 
HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:${HADOOP_HOME}/share/hadoop/tools/lib/*

The exception is raised after a while, I think right after the nodes are 
added to the simulation. Complete log in the attachment.

The command used is ./slsrun.sh 
--input-sls=/home/user/automaticInput.json --output-dir=/home/user/auto 
--print-simulation


Thanks in advance

Fabio

Mime
View raw message