2013-07-20 125 views
0

我在我的REDHAT系統中配置了Hadoop。當執行$ HIVE_HOME/bin/hive時出現以下錯誤。安裝配置單元的步驟

Exception in thread "main" java.io.IOException: Permission denied 
     at java.io.UnixFileSystem.createFileExclusively(Native Method) 
     at java.io.File.checkAndCreate(File.java:1704) 
     at java.io.File.createTempFile(File.java:1792) 
     at org.apache.hadoop.util.RunJar.main(RunJar.java:115) 
+0

繼從https://cwiki.apache.org/confluence/display/Hive/GettingStarted –

回答

1

hive使用'metastore';它會在您第一次調用它時創建該目錄。元目錄通常是在當前工作目錄中創建的(即,您正在運行配置單元命令的地方)

哪個目錄您是否正在調用hive命令?你有寫權限嗎?

試試這個:

cd <--- this will take you to your home dir (you will have write permissions there) 
    hive 
+0

教程@ Sujee,謝謝。但得到以下錯誤: - 異常在線程「主」java.lang.NoSuchFieldError:ALLOW_UNQUOTED_CONTROL_CHARS 在org.apache.hadoop.hive.ql.udf.generic.GenericUDTFJSONTuple。 (GenericUDTFJSONTuple.java:59) 在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本機方法) 在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java :27) –