code working in local/ yarn-cluster mode through maven