Today, when using java to connect zookeeper high availability hive, errors are reported:
java.lang.NullPointerException
at org.apache.thrift.transport.TSocket.open(TSocket.java:209)
My current Hadoop and hive versions are as follows:
< hadoop.version> 2.6.0-cdh5.5.2
< hive.version> 1.1.0-cdh5.16.2
At this time, I use the old connection string to connect without error:
“jdbc:hive2://marshal:10000”;
However, if a new connection string is used to connect, an error is reported:
“jdbc:hive2://marshal:2181,marshal01:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2_zk”;
After some experiments, the final solution is to make the hive version a little higher than the Hadoop version
< hadoop.version> 2.6.0-cdh5.5.2
< hive.version> 1.1.0-cdh5.6.0
There will be no error at this time
Read More:
- Zookeeper starts the client and reports an error: java.net.connectexception: connection rejected
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Beeline connection hive2 reports an error permission denied
- Error in starting zookeeper in Windows: zookeeper audit is disabled
- “Hive metadata problem” hive.metastore.HiveMetaException : Failed to get schema version.
- The problem of error reporting in Ranger connection hive is solved
- Error when Java uses API to operate zookeeper
- hdfs 192.168.2.19:9000 failed on connection exception: java.net.ConnectException:Connection refused
- Zookeeper connection timeout problem, and refused to connect to solve the problem
- Exception on start hive: caused by: java.net.noroutetohostexception: no route to host
- An error is reported when the file in hive parquet format is written in the Flink connection
- Java connection SQL error, network error IO Exception:Connection refused :connect
- The transaction log for database ‘xxxx’ is full due to AVAILABILITY_REPLICA error message in SQL Ser…
- java.sql.SQLRecoverableException: IO Error: Connection reset
- Caused by: java.net.SocketException : connection reset or caused by: java.sql.SQLRecoverableException solve
- Java 11.0.11 SQL Server connection error
- High precision addition function template
- Solve the problem that the version of less is too high
- How to Fix java.net.ConnectException: Connection refused: connect
- solve java.net.ConnectException : Connection refused:connect report errors