hive 常見錯誤
錯誤1
java.sql.SQLException: org.apache.thrift.transport.TTransportException: SASL authentication not complete
查詢完要關閉Statement 連線, stmt.close();
錯誤2
Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”
由於Hive
沒有hdfs:/tmp
目錄的許可權,賦許可權即可:
hadoop dfs -chmod -R 777 /tmp