ERROR! conflicting action statements: unarchive, remote_src The error appears to be in '/opt/bigdata/hive/roles/tez/tasks/install_tez.yml': line 14, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: state: directory - name: Extract Tez package ^ here
时间: 2024-02-06 20:02:49 浏览: 33
这个错误提示显示您的playbook中有冲突的action语句。在您的playbook中,您尝试在同一个任务中同时使用unarchive和remote_src模块。这两个模块都用于从远程位置获取文件并提取它们。解决此问题的方法是:将这两个模块分成两个不同的任务。例如:
```
- name: Create Tez directory
file:
path: /usr/local/tez
state: directory
- name: Extract Tez package
unarchive:
src: /path/to/tez.tar.gz
dest: /usr/local/tez
remote_src: true
```
这将创建名为/usr/local/tez的目录,然后从远程位置提取tez.tar.gz文件到该目录。请注意,remote_src选项设置为true,因为您正在从远程位置提取文件。请根据您的实际需求进行更改。
相关问题
ERROR! conflicting action statements: unarchive, remote_src The error appears to be in '/opt/bigdata/hive/roles/tez/tasks/install_tez.yml': line 17, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Extract Tez package ^ here
这个错误提示显示您的playbook中有冲突的action语句。在您的playbook中,您尝试使用unarchive模块,但是格式有误。unarchive模块应该在tasks中作为一个单独的任务,而不是在name下面。解决此问题的方法是将unarchive模块移到一个新的任务中。例如:
```
- name: Create Tez directory
file:
path: /usr/local/tez
state: directory
- name: Extract Tez package
unarchive:
src: /path/to/tez.tar.gz
dest: /usr/local/tez
remote_src: true
```
这将创建名为/usr/local/tez的目录,然后从远程位置提取tez.tar.gz文件到该目录。请注意,remote_src选项设置为true,因为您正在从远程位置提取文件。请根据您的实际需求进行更改。
Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql-8.0/data//localhost.localdomain.pid).
This error typically occurs when there is an issue with starting the MySQL server. Here are a few steps you can try to troubleshoot the problem:
1. Check the error log: Open the MySQL error log file, which is usually located at `/var/log/mysql/error.log` or `/usr/local/mysql/data/hostname.err`. Look for any error messages or warnings that might provide more information about the issue.
2. Verify file permissions: Ensure that the MySQL data directory and its files are owned by the MySQL user and group. You can use the following command to check and fix the permissions:
```
chown -R mysql:mysql /var/lib/mysql
```
3. Remove the PID file: If the PID file mentioned in the error message exists, try removing it and restarting MySQL. Use the following command to remove the file:
```
sudo rm /usr/local/mysql-8.0/data//localhost.localdomain.pid
```
4. Check disk space: Make sure that there is sufficient disk space available on your server. Use the following command to check disk usage:
```
df -h
```
5. Check for conflicting processes: There might be another instance of MySQL already running or some other process using the same port (usually 3306). Use the following command to check for any running MySQL processes:
```
ps aux | grep mysql
```
If none of these steps resolve the issue, please provide more details about your environment, MySQL version, and any recent changes you made that might have caused this problem.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![cpp](https://img-home.csdnimg.cn/images/20210720083646.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)