@ParthiCyberPunk
Unfortunately, you didn't share the connect string. below is an example you could use
jdbc:hive2://host:10000/DB_name;ssl=true;sslTrustStore=$JAVA_HOME/jre/lib/security/certs_name;trustStorePassword=$password
Substitute host,port, truststore location and certificate name and password accordingly. Keep me posted