Looks like the user running hiveserver2 didn’t have permission (local file 
system) to write to the directory specified by 
HiveConf.ConfVars.LOCALSCRATCHDIR . The default scratch directory is: 
“${system:java.io.tmpdir}” + File.separator + “${system:user.name}” , so it’s 
unusual to see this error. Looks like the user either overwrote the above conf 
or did something unusual to his system.
[http://www.cisco.com/web/europe/images/email/signature/est2014/logo_06.png?ct=1398192119726]

Grant Overby
Software Engineer
Cisco.com<http://www.cisco.com/>
grove...@cisco.com<mailto:grove...@cisco.com>
Mobile: 865 724 4910






[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif] Think before you 
print.

This email may contain confidential and privileged material for the sole use of 
the intended recipient. Any review, use, distribution or disclosure by others 
is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete 
all copies of this message.

Please click 
here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for 
Company Registration Information.





From: Gary Clark <gcl...@neces.com<mailto:gcl...@neces.com>>
Reply-To: "user@hive.apache.org<mailto:user@hive.apache.org>" 
<user@hive.apache.org<mailto:user@hive.apache.org>>
Date: Monday, August 3, 2015 at 5:25 PM
To: "user@hive.apache.org<mailto:user@hive.apache.org>" 
<user@hive.apache.org<mailto:user@hive.apache.org>>
Subject: RE: start hiveserver2 failed need help

For the sake of the hive user community could you post how you resolve it :)

Thanks,
Gary Clark

From: Garry Chen [mailto:g...@cornell.edu]
Sent: Monday, August 03, 2015 4:24 PM
To: user@hive.apache.org<mailto:user@hive.apache.org>
Subject: RE: start hiveserver2 failed need help

I found the problem and case solved.

Garry

From: Garry Chen [mailto:g...@cornell.edu]
Sent: Monday, August 03, 2015 5:01 PM
To: user@hive.apache.org<mailto:user@hive.apache.org>
Subject: start hiveserver2 failed need help


Hi all,

            When I try to start hiveserer2 failed with following error.  It was 
running but after the server reboot hiveeserver2 will not start. Please help.  
Thank you very much.

Garry



2015-08-03 16:57:07,677 WARN  [main]: server.HiveServer2 
(HiveServer2.java:startHiveServer2(330)) - Error starting HiveServer2 on 
attempt 1, will retry in 60 seconds

java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: 
Permission denied
        at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
        at 
org.apache.hive.service.cli.CLIService.applyAuthorizationConfigPolicy(CLIService.java:124)
        at org.apache.hive.service.cli.CLIService.init(CLIService.java:111)
        at 
org.apache.hive.service.CompositeService.init(CompositeService.java:59)
        at org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:92)
        at 
org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:309)
        at 
org.apache.hive.service.server.HiveServer2.access$400(HiveServer2.java:68)
        at 
org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:523)
        at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:396)
        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: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:465)
        ... 14 more
Caused by: java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:1006)
        at java.io.File.createTempFile(File.java:1989)
        at 
org.apache.hadoop.hive.ql.session.SessionState.createTempFile(SessionState.java:740)
        at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:463)
        ... 14 more
2015-08-03 16:57:07,678 INFO  [main]: server.HiveServer2 
(HiveServer2.java:stop(269)) - Shutting down HiveServer2

Reply via email to