Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to start hive on master node

Unable to start hive on master node

Explorer

Hi,

 

I am unable to start hive on a master node, However it works on other nodes.

 

I am getting below exception:-

>> hive

2015-02-23 22:44:21,883 FATAL [main] conf.Configuration (Configuration.java:loadResource(2483)) - error parsing conf yarn-site.xml
java.io.IOException: Input/output error
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:272)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2873)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:664)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2325)
at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2313)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2384)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2337)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2254)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:992)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:964)
at org.apache.hadoop.mapred.JobConf.setJar(JobConf.java:520)
at org.apache.hadoop.mapred.JobConf.setJarByClass(JobConf.java:538)
at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:432)
at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:1474)
at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:1435)
at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils.java:74)
at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:58)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:649)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:633)
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.main(RunJar.java:212)
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Input/output error
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2484)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2337)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2254)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:992)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:964)
at org.apache.hadoop.mapred.JobConf.setJar(JobConf.java:520)
at org.apache.hadoop.mapred.JobConf.setJarByClass(JobConf.java:538)
at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:432)
at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:1474)
at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:1435)
at org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils.java:74)
at org.apache.hadoop.hive.common.LogUtils.initHiveLog4j(LogUtils.java:58)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:649)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:633)
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.main(RunJar.java:212)
Caused by: java.io.IOException: Input/output error
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:272)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2873)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:664)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2325)
at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2313)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2384)
... 18 more

2 REPLIES 2

Re: Unable to start hive on master node

Try assigning the Hive Gateway role to the host and try again. No restart
is required

Regards,
Gautam Gopalakrishnan

Re: Unable to start hive on master node

You'll also need to deploy client configuration to that host. If using an older CM, you may need an MR or YARN gateway on that host as well.