To see all values of a session in
beeline --outputformat=tsv2 -u '<HS2_JDBC_URL> -e 'set -v' > session.txt
hive --outputformat=tsv2 -e 'set -v' > session.txt
If specific key to be searched, then after launching beeline or cli, use the specific keys as below
beeline> set hive.exec.dynamic.partition.mode;
If my suggestion helped to resolve your query, accept the answer. It might help others in the community.