Error message:
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000:
Failed to open new session:
java.lang.RuntimeException:
org.apache.hadoop.security.AccessControlException:
Permission denied: user=anonymous, access=EXECUTE , inode="/tmp":root:supergroup:drwx------
After trying to add an account and password to hive, it is found that the problem is stored in the last sentence. I am anonymous and the read-write permission of/tmp directory is drwx——
The first character: -
indicates that this is a file, d
indicates that this is a folder, |
indicates that this is a connection file
is divided into three characters in a group
the first three: that is, RWX
indicates owner permissions
the middle three: ---
user permissions in the same group
the last three: ---
other user permissions
permission th> | represents th> | value th> | binary th> | specific role th> TR> thead> |
---|---|---|---|---|
R td> | read td> | 4 td> | 00000100 td> | the current user can read the file content and browse the directory Td> TR> |
W td> | write write td> | 2 td> | 00000010 td> | the current user can add or modify file contents, and the current user can delete or move directories or files in directories Td> TR> |
x td> | execute td> | 1 td> | 00000001 td> | the current user can execute files and enter the directory td> |
Aka, my root account is accessing hive2, so I belong to other user permissions, so I was rejected
solution:
Change the access permission of this file/file directory in the HDFS file system and relax it. The syntax of changing permissions is similar to that of Linux
HDFS DFS - Chmod - R 777/tmp
log in with the account password of HDFS
Read More:
- Solve the problem of dynamically applying for permission, but still reporting an error of open failed: eacces (permission denied)
- Android has applied for permission and still prompts open failed: eacces (permission denied)
- ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied
- Developing in Android java.net.SocketException : socket failed: eacces (permission denied) reported an error
- Vscode remote connection server reports an error: could not establish connection to “XXXXXX” [resolved]
- Permission error: [errno 13] permission denied: ‘… ” xxx.pyd ‘
- error: cannot open .git/FETCH_ Head: permission denied resolved
- Solutions for permission denied
- Git error: no permission remote: error: unable to unlink old ‘ README.md ‘ (Permission denied)
- Solution to permission denied
- NPM ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
- [Linux] solution: SCP different server copy file prompt permission denied, please try again
- Ioerror: [errno 13] permission denied
- [Solved] Docker Container Use APT error: Permission denied
- “Permission denied” error in Oracle10g installation
- cifs mount error(13): Permission denied
- Java connection zookeeper high availability hive error
- An error is reported when the file in hive parquet format is written in the Flink connection
- Python error: permissionerror: [errno 13] permission denied solution details
- The problem of error reporting in Ranger connection hive is solved