1.beeline session开启debug:
    修改主机上/usr/hdp/current/hive-server2/conf/beeline-log4j2.properties文件,将INFO修改为DEBUG,启动beeline即可。

    ocdp5.0默认不支持hive客户端,只支持beeline,修改文件,使其支持原有cli方式
    #在hive client主机 修改hive.distro文件
    vim /usr/hdp/current/hive-client/bin/hive.distro
    USE_BEELINE_FOR_HIVE_CLI=”true”
    改为
    USE_BEELINE_FOR_HIVE_CLI=”false”
    然后
    hive —hiveconf hive.root.logger=DEBUG,console —verbose=true