hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <>
Subject [jira] [Commented] (HIVE-19744) In Beeline if -u is specified the default connection should not be tried at all
Date Wed, 13 Jun 2018 05:44:00 GMT


Zoltan Haindrich commented on HIVE-19744:

[~pvary] Could you please take a look?

> In Beeline if -u is specified the default connection should not be tried at all
> -------------------------------------------------------------------------------
>                 Key: HIVE-19744
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>         Attachments: HIVE-19744.01.patch
> I wanted to explicitly connect to a hiveserver by specifying {{-u}} but that didn't work
because it was not running/etc...
> The strange thing is that somehow the default connection is activated...and tried
> The possible "hazard" here is that if someone specifies {{-u $MY_DEV_HS2 -f recreate_db.sql}}
to run some sql script...beeline may connect somewhere else and run the commands there - which
might have serious consequences.... (in the above case having default as production might
be interesting)
> {code}
> beeline -u jdbc:hive2://localhost:10502/;transportMode=binary  -n hrt_qa
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> Connecting to jdbc:hive2://localhost:10502/
> 18/05/31 07:51:20 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:10502
> Unknown HS2 problem when communicating with Thrift server.
> Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10502/:
Invalid status 72 (state=08S01,code=0)
> Connecting to jdbc:hive2://,,,,;httpPath=cliservice;principal=hive/_HOST@EXAMPLE.COM;serviceDiscoveryMode=zooKeeper;ssl=true;transportMode=http;zooKeeperNamespace=hiveserver2
> 18/05/31 07:51:21 [main]: INFO jdbc.HiveConnection: Connected to
> 18/05/31 07:51:21 [main]: ERROR jdbc.HiveConnection: Error opening session
> org.apache.thrift.transport.TTransportException: PKIX path validation failed:
signature check failed
> {code}

This message was sent by Atlassian JIRA

View raw message