본문 바로가기

ERROR6

[ERROR] (Not Solved) Airflow HttpSensor 400 Client Error: Bad Request for url 0. 실행 환경 AWS EC2 t2.xlarge OS : Red Hat 9.1 Python : 3.9 Airflow : 2.5.0 1. Code with DAG( is_api_available = HttpSensor( task_id = 'is_api_available', http_conn_id = 'spotify_api', # method="GET", headers = { # 'Accept': 'application/json', # 'Content-Type': 'application/json', 'Authorization': 'Bearer ', }, request_params = { 'q': 'BTS', 'type': 'artist', 'limit': '1', }, method="GET", endpoin.. 2023. 1. 8.
[MongoDB] 설치 후 실행 안됨(status=14 , status=100) 0. 실행 환경 AWS t2.xlarge OS : Redhat 8.6 MongoDB Version : 6.0.3 1. Error 확인 # 서비스 상태 확인 systmectl status mongod # 로그 확인 tail -50 /var/log/mongodb/mongod.log | grep error1) status=14 systemstatus (code=exited, status=14) mongod.log {"t":{"$date":"2022-11-26T06:41:23.568+00:00"},"s":"E", "c":"NETWORK", "id":23024, "ctx":"initandlisten","msg":"Failed to unlink socket file","attr":{"path":"/tmp/mongo.. 2022. 11. 26.
[ERROR] Mysql 설치 후 로그인 안됨 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 0. 실행 환경 AWS t2.xlarge OS : Redhat 8.6 MySQL Version : 8.0.31 1. ERROR mysql -u root -p 설치 후 비밀번호는 그냥 엔터치라고 나오는데 오류가 난다. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 2.해결 방법 2-1) 임시 비밀번호 찾기 grep 'temporary password' /var/log/mysqld.log 로그에서 'temporary password' 를 찾아서 임시 비밀번호를 입력하면 된다. 2-2) 비밀번호 변경 ALTER USER 'root'@'localhost' IDENTIFIED BY 'MYPASSWORD';~~텍스.. 2022. 11. 20.
[ERROR] ImportError: cannot import name 'AWSAthenaOperator' ImportError: cannot import name 'AWSAthenaOperator' from 'airflow.providers.amazon.aws.operators.athena' (/home/airflow/.local/lib/python3.7/site-packages/airflow/providers/amazon/aws/operators/athena.py) 패키지를 찾을 수 없다는 오류이다. pip로 패키지를 설치하면 되지만 docker로 airflow를 실행하기 때문에 그냥 설치하면 안된다. pip install apache-airflow-providers-amazon Apache Airflow Docs https://airflow.apache.org/docs/apache-airflow-prov.. 2022. 11. 20.
[Solved][RHEL/CentOS] [Errno 12] Cannot allocate memory OS : Red Hat Enterprise Linux release 8.6(AWS) 에러 메세지[Errno 12] Cannot allocate memoryThe downloaded packages were saved in cache until the next successful transaction.You can remove cached packages by executing 'yum clean packages'. 해결 방법yum clean packages그래도 같은 오류나면 메모리 많이 먹는 서비스 중단ps auxsudo service mysqld stop 2022. 6. 27.