mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Unable to run MXnet with yarn as a launcher

Open jimmyaneja opened this issue 9 years ago • 2 comments

$ python ../../tools/launch.py -n 2 --launcher yarn python train_mnist.py --network lenet --kv-store dist_sync 17/05/03 01:24:49 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 17/05/03 01:24:50 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded. 17/05/03 01:24:50 INFO impl.TimelineClientImpl: Timeline service address: http:///X.X.X.X:8188/ws/v1/timeline/ 17/05/03 01:24:50 INFO client.RMProxy: Connecting to ResourceManager at /X.X.X.X:8050 17/05/03 01:24:50 INFO client.AHSProxy: Connecting to Application History server at /X.X.X.X:10200 17/05/03 01:24:51 INFO dmlc.Client: jobname=DMLC[nworker=2,nsever=2]:python,username=root 17/05/03 01:24:51 INFO dmlc.Client: Submitting application application_1489701902537_0147 17/05/03 01:24:51 INFO impl.YarnClientImpl: Submitted application application_1489701902537_0147 Application application_1489701902537_0147 finished with state FINISHED at 1493774702568 Diagnostics., num_tasks4, finished=0, failed=4 [DMLC] Task 0 failed more than 3times Available queues: default 17/05/03 01:25:02 INFO impl.YarnClientImpl: Killed application application_1489701902537_0147

Here is my config.mk for mxnet

#-------------------------------------------------------------------------------

Template configuration for compiling mxnet

If you want to change the configuration, please use the following

steps. Assume you are on the root directory of mxnet. First copy the this

file so that any local changes will be ignored by git

$ cp make/config.mk .

Next modify the according entries, and then compile by

$ make

or build in parallel with 8 threads

$ make -j8

#-------------------------------------------------------------------------------

#---------------------

choice of compiler

#--------------------

export CC = gcc export CXX = g++ export NVCC = nvcc

whether compile with options for MXNet developer

DEV = 0

whether compile with debug

DEBUG = 0

whether compiler with profiler

USE_PROFILER =

the additional link flags you want to add

ADD_LDFLAGS =

the additional compile flags you want to add

ADD_CFLAGS =

#---------------------------------------------

matrix computation libraries for CPU/GPU

#---------------------------------------------

whether use CUDA during compile

USE_CUDA = 0

add the path to CUDA library to link and compile flag

if you have already add them to environment variable, leave it as NONE

USE_CUDA_PATH = /usr/local/cuda

USE_CUDA_PATH = NONE

whether use CuDNN R3 library

USE_CUDNN = 0

CUDA architecture setting: going with all of them.

For CUDA < 6.0, comment the *_50 lines for compatibility.

CUDA_ARCH := -gencode arch=compute_30,code=sm_30
-gencode arch=compute_35,code=sm_35
-gencode arch=compute_50,code=sm_50
-gencode arch=compute_50,code=compute_50

whether use cuda runtime compiling for writing kernels in native language (i.e. Python)

USE_NVRTC = 0

whether use opencv during compilation

you can disable it, however, you will not able to use

imbin iterator

USE_OPENCV = 0

use openmp for parallelization

USE_OPENMP = 1

MKL ML Library for Intel CPU/Xeon Phi

Please refer to MKL_README.md for details

MKL ML Library folder, need to be root for /usr/local

Change to User Home directory for standard user

For USE_BLAS!=mkl only

MKLML_ROOT=/usr/local

whether use MKL2017 library

USE_MKL2017 = 0

whether use MKL2017 experimental feature for high performance

Prerequisite USE_MKL2017=1

USE_MKL2017_EXPERIMENTAL = 0

whether use NNPACK library

USE_NNPACK = 0

choose the version of blas you want to use

can be: mkl, blas, atlas, openblas

in default use atlas for linux while apple for osx

UNAME_S := $(shell uname -s) ifeq ($(UNAME_S), Darwin) USE_BLAS = apple else USE_BLAS = atlas endif

add path to intel library, you may need it for MKL, if you did not add the path

to environment variable

USE_INTEL_PATH = NONE

If use MKL only for BLAS, choose static link automatically to allow python wrapper

ifeq ($(USE_MKL2017), 0) ifeq ($(USE_BLAS), mkl) USE_STATIC_MKL = 1 endif else USE_STATIC_MKL = NONE endif

#----------------------------

Settings for power and arm arch

#---------------------------- ARCH := $(shell uname -a) ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64)) USE_SSE=0 else USE_SSE=1 endif

#----------------------------

distributed computing

#----------------------------

whether or not to enable multi-machine supporting

USE_DIST_KVSTORE = 1

whether or not allow to read and write HDFS directly. If yes, then hadoop is

required

USE_HDFS = 0

path to libjvm.so. required if USE_HDFS=1

LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server

whether or not allow to read and write AWS S3 directly. If yes, then

libcurl4-openssl-dev is required, it can be installed on Ubuntu by

sudo apt-get install -y libcurl4-openssl-dev

USE_S3 = 0

#----------------------------

additional operators

#----------------------------

path to folders containing projects specific operators that you don't want to put in src/operators

EXTRA_OPERATORS =

#----------------------------

other features

#----------------------------

Create C++ interface package

USE_CPP_PACKAGE = 0

#----------------------------

plugins

#----------------------------

whether to use caffe integration. This requires installing caffe.

You also need to add CAFFE_PATH/build/lib to your LD_LIBRARY_PATH

CAFFE_PATH = $(HOME)/caffe

MXNET_PLUGINS += plugin/caffe/caffe.mk

whether to use torch integration. This requires installing torch.

You also need to add TORCH_PATH/install/lib to your LD_LIBRARY_PATH

TORCH_PATH = $(HOME)/torch

MXNET_PLUGINS += plugin/torch/torch.mk

WARPCTC_PATH = $(HOME)/warp-ctc

MXNET_PLUGINS += plugin/warpctc/warpctc.mk

whether to use sframe integration. This requires build sframe

[email protected]:dato-code/SFrame.git

SFRAME_PATH = $(HOME)/SFrame

MXNET_PLUGINS += plugin/sframe/plugin.mk

USE_BLAS=atlas #ADD_CFLAGS += -I/usr/include/openblas ADD_CFLAGS += -I/usr/include/openblas -L/usr/local/lib #ADD_LDFLAGS += -lopencv_core -lopencv_imgproc -lopencv_imgcodecs

Can someone please tell me what is wrong with my set up?

jimmyaneja avatar May 03 '17 01:05 jimmyaneja

I came into the same situation,and the Logs for node container shows: INFO dmlc.ApplicationMaster: [DMLC] Task 0 killed because of exceeding allocated physical memory I have set the following env ,but did not work export DMLC_HDFS_OPTS=--Xmx2048m
export DMLC_WORKER_MEMORY_MB=4096
export DMLC_SERVER_MEMORY_MB=4096 Any suggestions?

younglou avatar May 05 '17 08:05 younglou

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!

szha avatar Sep 29 '17 23:09 szha