http - Cannot reach ELB backed hiveserver2 -


i running hiveserver2 in http mode , able reach service directly using hostname using beeline. however, unable use service when put behind elb. guess might have naming convention of elb beeline unable prase corrctly. example:

this works fine:

beeline -u "jdbc:hive2://10.0.0.122:10001/default?hive.server2.transport.mode=http;hive.server2.thrift.http.path=cliservice" -e "show databases;" 

but fails:

beeline -u "jdbc:hive2://https-hiveserver2-elb-xxxxxxxx.us-east-2.elb.amazonaws.com:10001/default;hive.server2.transport.mode=http;hive.server2.thrift.http.path=cliservice"  -e "show databases;" 

here error:

error: invalid url: jdbc:hive2://https-hiveserver2-elb-186037486.us-west-2.elb.amazonaws.com:10001/default;hive.server2.transport.mode=http;hive.server2.thrift.http.path=cliservice (state=08s01,code=0) 

please let me know if has ever faced issue.

thanks!


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -