Support Questions
Find answers, ask questions, and share your expertise

unable to launch hive through putty

New Contributor

I am getting this exception...................

Logging initialized using configuration in file:/etc/hive/2.5.0.0-1245/0/hive-log4j.properties [Fatal Error] :-1:-1: Premature end of file. Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: org.xml.sax.SAXParseException; Premature end of file. at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:523) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:680) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:233) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) Caused by: java.lang.RuntimeException: org.xml.sax.SAXParseException; Premature end of file. at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2679) at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2526) at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2418) at org.apache.hadoop.conf.Configuration.get(Configuration.java:981) at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2202) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2746) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2759) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2795) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2777) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:386) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:179) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:506) ... 8 more Caused by: org.xml.sax.SAXParseException; Premature end of file. at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150) at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2514) at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2502) at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2573) ... 21 more

3 REPLIES 3

Explorer

please validate the syntax of your xml files (specifically the hive-site.xml file) and also validate that any custom settings you have in the configuration are identified correctly. Is this an ambari-managed cluster?

Also, verify java correctly installed and linked on the node that you are running hive command on.

New Contributor

yes it's ambari-managed cluster. I verified java, hive-site.xml but still issue is not resloved

Explorer

have you tried to redeploy the clients from ambari to that node ?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.