yum + 아카이브 압축 해제 실패

yum + 아카이브 압축 해제 실패

하이브 설치 과정에서 다음 오류가 발생합니다.

 /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다른 위치로 이동하고 다시 시도하십시오 .

이것은 나에게 효과적입니다.

관련 정보