在运行slsrun.sh时,报错如下:
ERROR sls.SLSRunner: Failed to create an AM: Can't find the queue by the given name: sls_queue_1! Please check if queue sls_queue_1 is in the allocation file.
原因:
运行所需的文件都应放在/etc/hadoop下。对于slsrun.sh,默认的是要求fair schedule,但/etc/hadoop中并不存在fair的配置文件,fair schedule对于的sls配置文件在sls/sample-conf/下,因此把fair-scheduler.xml拷至/etc/hadoop下即可。
注意:所有运行所需的配置文件都应该放在/etc/hadoop下,在hadoop2.6.5版本中,为了方便开发者,sls的配置文件也可以不拷至/etc/hadoop,但到目前的新版本,统一要copy至指定文件夹。否则会报错。