Support Questions

Find answers, ask questions, and share your expertise

Unable to read HiveServer2 configs from ZooKeeper

avatar
Expert Contributor

Hi! have error after connect from beeline : [root@serv01 ~]# /usr/hdp/current/hive-server2/bin/beeline Beeline version 1.2.1000.2.6.0.3-8 by Apache Hive beeline> !connect jdbc:hive2://serv03.kyivstar.ua:2181,serv01.kyivstar.ua:2181,serv02.kyivstar.ua:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2 Connecting to jdbc:hive2://serv03.kyivstar.ua:2181,serv01.kyivstar.ua:2181,serv02.kyivstar.ua:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2 Enter username for jdbc:hive2://serv03.kyivstar.ua:2181,serv01.kyivstar.ua:2181,serv02.kyivstar.ua:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2: hive Enter password for jdbc:hive2://serv03.kyivstar.ua:2181,serv01.kyivstar.ua:2181,serv02.kyivstar.ua:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2: Error: org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0) 0: jdbc:hive2://serv03.kyivstar.ua:2181,ks- (closed)>

/var/lib/log/hive/hiveserver2Interactive.log :

Exception in thread "Timer-0" java.lang.OutOfMemoryError: GC overhead limit exceeded at java.io.DataOutputStream.<init>(DataOutputStream.java:204) at org.apache.hadoop.fs.FSDataOutputStream.<init>(FSDataOutputStream.java:89) at org.apache.hadoop.fs.FSDataOutputStream.<init>(FSDataOutputStream.java:84) at org.apache.hadoop.fs.RawLocalFileSystem.create(RawLocalFileSystem.java:308) at org.apache.hadoop.fs.RawLocalFileSystem.create(RawLocalFileSystem.java:341) at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSOutputSummer.<init>(ChecksumFileSystem.java:400) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:463) at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:442) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:930) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:911) at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:807) at org.apache.hadoop.hive.common.metrics.metrics2.CodahaleMetrics$JsonFileReporter$1.run(CodahaleMetrics.java:422) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main-SendThread(serv02.kyivstar.ua:2181)" Exception in thread "Timer for 'hiveserver2' metrics system" java.lang.OutOfMemoryError: GC overhead limit exceeded Exception in thread "HiveServer2-Handler-Pool: Thread-164" java.lang.OutOfMemoryError: GC overhead limit exceeded

1 REPLY 1

avatar
Expert Contributor

any recomendation ?