Is it already running?

 

netstat –alnp will show it

 

netstat -alnp|egrep 'Local|10010|9083'

 

(Not all processes could be identified, non-owned process info

will not be shown, you would have to be root to see it all.)

Proto Recv-Q Send-Q Local Address               Foreign Address             
State       PID/Program name

tcp        0      0 0.0.0.0:10010               0.0.0.0:*                   
LISTEN      3197/java

tcp        0      0 0.0.0.0:9083                0.0.0.0:*                   
LISTEN      2943/java

tcp        0      0 127.0.0.1:21323             127.0.0.1:9083              
ESTABLISHED 3197/java

tcp        0      0 127.0.0.1:9083              127.0.0.1:21323             
ESTABLISHED 2943/java

tcp        0      0 127.0.0.1:56797             127.0.0.1:9083              
ESTABLISHED 3197/java

tcp        0      0 127.0.0.1:9083              127.0.0.1:56797             
ESTABLISHED 2943/java

 

HTH

 

 

Mich Talebzadeh

 

Sybase ASE 15 Gold Medal Award 2008

A Winning Strategy: Running the most Critical Financial Data on ASE 15

 
<http://login.sybase.com/files/Product_Overviews/ASE-Winning-Strategy-091908.pdf>
 http://login.sybase.com/files/Product_Overviews/ASE-Winning-Strategy-091908.pdf

Author of the books "A Practitioner’s Guide to Upgrading to Sybase ASE 15", 
ISBN 978-0-9563693-0-7. 

co-author "Sybase Transact SQL Guidelines Best Practices", ISBN 
978-0-9759693-0-4

Publications due shortly:

Complex Event Processing in Heterogeneous Environments, ISBN: 978-0-9563693-3-8

Oracle and Sybase, Concepts and Contrasts, ISBN: 978-0-9563693-1-4, volume one 
out shortly

 

 <http://talebzadehmich.wordpress.com/> http://talebzadehmich.wordpress.com

 

NOTE: The information in this email is proprietary and confidential. This 
message is for the designated recipient only, if you are not the intended 
recipient, you should destroy it immediately. Any information in this message 
shall not be understood as given or endorsed by Peridale Technology Ltd, its 
subsidiaries or their employees, unless expressly so stated. It is the 
responsibility of the recipient to ensure that this email is virus free, 
therefore neither Peridale Ltd, its subsidiaries nor their employees accept any 
responsibility.

 

From: Daniel Haviv [mailto:daniel.ha...@veracity-group.com] 
Sent: 07 September 2015 13:13
To: user@hive.apache.org
Subject: Permission denied error when starting HiveServer2

 

Hi,

I'm getting this error when starting HiveServer2:

2015-09-07 08:09:50,356 WARN org.apache.hive.service.server.HiveServer2: 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:62)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:483)

        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.createTempFile(File.java:2024)

        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

 

the hive user has write permissions to the scratch dir, is there another path I 
should take care of ?

 

Thank you.

Daniel

Reply via email to