It was the permission. The folder was owned by hdfs:hdfs but I logged in as hue. Once I created another account “hdfs” in hue, it works fine. It took me a while to figure out since the log I think was somewhere else. I think probably since I’m new with HDP, debugging the issue is a bit challenge. Like right now, I have an issue with Pig script got stuck in HUE but running successfully from grunt. Can’t find the error anywhere. From your professional experience, what’s the best way to debug in HDP?