![yum + 아카이브 압축 해제 실패](https://linux55.com/image/122717/yum%20%2B%20%EC%95%84%EC%B9%B4%EC%9D%B4%EB%B8%8C%20%EC%95%95%EC%B6%95%20%ED%95%B4%EC%A0%9C%20%EC%8B%A4%ED%8C%A8.png)
하이브 설치 과정에서 다음 오류가 발생합니다.
/usr/bin/yum install hive_2_6_0_3_8
Installing : hive_2_6_0_3_8-1.2.1000.2.6.0.3-8.noarch
1/1
Error unpacking rpm package hive_2_6_0_3_8-1.2.1000.2.6.0.3-8.noarch
error: unpacking of archive failed on file /usr/hdp/2.6.0.3-8/hive/conf:
cpio: rename
Verifying : hive_2_6_0_3_8-1.2.1000.2.6.0.3-8.noarch
1/1
Failed:
hive_2_6_0_3_8.noarch 0:1.2.1000.2.6.0.3-8
Complete!
여기서 문제가 무엇입니까?
ls -ltd /usr/hdp/2.6.0.3-8/hive/conf
drwxr-xr-x. 3 root root 24 Nov 26 14:16 /usr/hdp/2.6.0.3-8/hive/conf
ls -ltr /usr/hdp/2.6.0.3-8/hive/conf
total 0
drwxr-xr-x. 2 hive hadoop 6 Nov 26 14:16 conf.server
rpm -qa | grep hive | grep 1000
hive_2_6_0_3_8-jdbc-1.2.1000.2.6.0.3-8.noarch
답변1
패키지 hive_2_6_0_3_8-1.2.1000.2.6.0.3-8.noarch에서 이는 /usr/hdp/2.6.0.3-8/hive/conf
일반 파일입니다. 시스템에서는 디렉토리입니다. cpio(따라서 rpm)는 디렉터리를 파일로 변환할 수 없습니다(또는 그 반대로). 디렉터리를 삭제(또는 이동) /usr/hdp/2.6.0.3-8/hive/conf
하고 다시 시도하세요.
답변2
패키지 내부에는 일반 파일이 hive_2_6_0_3_8-1.2.1000.2.6.0.3-8.noarch
있습니다 ./usr/hdp/2.6.0.3-8/hive/conf
시스템에 있는 동안 이는 디렉토리입니다.
Cpio
(따라서 rpm
) 디렉토리를 파일로 변환하는 것은 불가능합니다(또는 그 반대로).
rm
(또는 mv
) 디렉토리를 /usr/hdp/2.6.0.3-8/hive/conf
다른 위치로 이동하고 다시 시도하십시오 .
이것은 나에게 효과적입니다.