Try this blog. Let me know if this solution works for you.
I am using kylin 2.2.0 version. Present I am using only sql type queries on kylin cubes like select with aggregation functions. I would like to use MDX queries on cubes. If anybody is using please can you guide me, any document is available regarding of this.