易霖威 created HIVE-27792:
--------------------------

             Summary: Corrected wrong hive-site.xml in docker
                 Key: HIVE-27792
                 URL: https://issues.apache.org/jira/browse/HIVE-27792
             Project: Hive
          Issue Type: Bug
    Affects Versions: 4.0.0-beta-1, 4.0.0-alpha-2, 4.0.0-alpha-1, 3.1.3
         Environment: bug:
{code:java}
docker run -d -p 10000:10000 -p 10002:10002 --env SERVICE_NAME=hiveserver2 
--name hive4 apache/hive:3.1.3{code}
            Reporter: 易霖威
            Assignee: 易霖威
             Fix For: All Versions
         Attachments: image-2023-10-12-17-37-11-483.png

hive.metastore.warehouse.dir, this configuration item is configured 
incorrectly, causing the configuration item to not take effect.

bug image:
[!https://user-images.githubusercontent.com/38107489/274453196-823918b0-8cb6-474b-83f4-870f2de46370.png!|https://user-images.githubusercontent.com/38107489/274453196-823918b0-8cb6-474b-83f4-870f2de46370.png]
[!https://user-images.githubusercontent.com/38107489/274453211-f2a28ee6-16b2-44fb-8ad2-a4736fb21104.png!|https://user-images.githubusercontent.com/38107489/274453211-f2a28ee6-16b2-44fb-8ad2-a4736fb21104.png]

I discovered this bug when using it. Since the default directory does not exist 
for non-root users in the container, it caused an error message without 
permission to create databases and data tables. After that, I corrected 
hive.metastore.warehouse.dir, this configuration item by rebuilding the image. 
This bug is solved.I changed the {{packaging/src/docker/conf/hive-site.xml}} 
file.

after fixing image:
[!https://user-images.githubusercontent.com/38107489/274453281-c18174b5-3f2f-4679-b55f-ea8708f5998e.png!|https://user-images.githubusercontent.com/38107489/274453281-c18174b5-3f2f-4679-b55f-ea8708f5998e.png]
[!https://user-images.githubusercontent.com/38107489/274453312-45bd5973-8bab-489f-9304-d1bc40a36661.png!|https://user-images.githubusercontent.com/38107489/274453312-45bd5973-8bab-489f-9304-d1bc40a36661.png]

The correct related configuration items are in the picture below.
!image-2023-10-12-17-37-11-483.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to