I had the same error with the /hadoop/yarn/local/usercache/hue/filecache/ directory.
I've done sudo rm -rf /hadoop/yarn/local/usercache/hue/filecache/* and it solved it.

hadoop complains about attempting to overwrite nonempty destination directory
i'm trying to make a clone of brick breaker, one problem that i am running in to is to do with collision. i know how to detect if a collision has happened but i do not know how to check what side of the brick is hit.

some general background from the program.
all the bricks are just 2 points (x,y) a top right point and a bottom left point. the ball is just 1 point with a radius. for my current collision detection i'm just checking if the balls coordinates  is at or in between the two box coordinates  

any help is appreciated and thanks in advance 
