하이브 창은 기본 라이브러리와 헤더를 인쇄합니다.
1. 문제: 하이브 명령줄 대화형 창에서 데이터베이스를 전환한 후 현재 데이터베이스가 표시되지 않고 나열된 쿼리 결과에 사용하기 불편한 열 이름 정보가 포함되지 않습니다.
2. 구성: hive.cli.print.header 및 hive.cli.print.current.db 매개변수의 값을 수정하여 현재 라이브러리 헤더를 인쇄할 수 있습니다.
hive-site.xml을 편집하여 다음 두 구성을 추가합니다.
<property>
<name>hive.cli.print.header</name>
<value>true</value>
</property>
<property>
<name>hive.cli.print.current.db</name>
<value>true</value>
</property>