Hive startup times the following error:
<span style= "FONT-SIZE:18PX;" >exception in thread "main" java.lang.RuntimeException:java.lang.RuntimeException:java.io.IOException: Permission denied at Org.apache.hadoop.hive.ql.session.SessionState.start (sessionstate.java:522) at Org.apache.hadoop.hive.cli.CliDriver.run (clidriver.java:677) at Org.apache.hadoop.hive.cli.CliDriver.main ( clidriver.java:621) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:62) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:497) at Org.apache.hadoop.util.RunJar.run (runjar.java:221) at Org.apache.hadoop.util.RunJar.main (runjar.java:136) caused by:java.lang.RuntimeException:java.io.IOException: Permission denied at Org.apache.hadoop.hive.ql.session.SessionState.start (sessionstate.java:515) ... 8 caused By:java.io.IOException:Permission denied at java.io. Unixfilesystem.createfileexclusively (Native method) at Java.io.File.createTempFile (file.java:2024) at Org.apache.hadoop.hive.ql.session.SessionState.createTempFile (sessionstate.java:818) at Org.apache.hadoop.hive.ql.session.SessionState.start (sessionstate.java:513) ... 8 more </span>
Problem analysis: Hadoop not turned on
Solution: Turn on Hadoop
Use JPS to view:
14944 Secondarynamenode
15218 ResourceManager
15366 NodeManager
23846 Sparksubmit
14488 Namenode
14648 Datanode
39498 Jps
Indicates successful start, then start Hive, start successfully