Hello @Liupeng Zhuang ,
Welcome to the Microsoft Q&A platform.
Azure HDInsight version 4.0 uses Apache Livy 0.5 version.
Azure HDInsight version 3.6 use Apache Livy 0.4 version.
For more details, refer Azure HDInsight versions.
Hope this helps. Do let us know if you any further queries.
------------
Please don’t forget to Accept Answer
and Up-Vote
wherever the information provided helps you, this can be beneficial to other community members.