Reply
New Contributor
Posts: 3
Registered: ‎09-07-2017

Unable to connect to beeline

Hi All,

I have recently upgraded CDH 5.8.4-1 to CDH 5.12.1 . i am not able to connect with beeline, getting below exception. where as hiveserver 2 and hive command is working fine. Using system JAVA .Any leads for the this issue woud be appricated . Thanks in advance .

 

 

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.addDeprecations([Lorg/apache/hadoop/conf/Configuration$DeprecationDelta;)V
at org.apache.hadoop.mapreduce.util.ConfigUtil.addDeprecatedKeys(ConfigUtil.java:54)
at org.apache.hadoop.mapreduce.util.ConfigUtil.loadResources(ConfigUtil.java:42)
at org.apache.hadoop.mapred.JobConf.<clinit>(JobConf.java:124)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:1378)
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:88)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:72)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
at org.apache.hadoop.security.Groups.<init>(Groups.java:54)
at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:181)
at org.apache.hadoop.security.UserGroupInformation.initUGI(UserGroupInformation.java:249)
at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:220)
at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:211)
at org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:274)
at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:531)
at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:512)
at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2305)
at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2297)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2165)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:302)
at org.apache.hadoop.fs.FileSystem.getLocal(FileSystem.java:273)
at org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil.addDependencyJars(TableMapReduceUtil.java:853)
at org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil.addHBaseDependencyJars(TableMapReduceUtil.java:781)
at org.apache.hadoop.hbase.util.MapreduceDependencyClasspathTool.run(MapreduceDependencyClasspathTool.java:59)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.MapreduceDependencyClasspathTool.main(MapreduceDependencyClasspathTool.java:70)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Beeline version 1.1.0-cdh5.12.1 by Apache Hive

Highlighted
Expert Contributor
Posts: 113
Registered: ‎02-15-2016

Re: Unable to connect to beeline

did you find the solution for this ?

 

anyone know about this issue 

Expert Contributor
Posts: 113
Registered: ‎02-15-2016

Re: Unable to connect to beeline

ok , this is because of jar files which was deployed in aux path . these jar was complied with old hadoop version and forcing beeline to load configuration from there.
you can remove these jars or complied them against new hadoop version
Announcements