[ 
https://issues.apache.org/jira/browse/HIVE-27792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-27792:
----------------------------------
    Labels: bug docker properties pull-request-available  (was: bug docker 
properties)

> 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: 3.1.3, 4.0.0-alpha-1, 4.0.0-alpha-2, 4.0.0-beta-1
>         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: 易霖威
>            Priority: Major
>              Labels: bug, docker, properties, pull-request-available
>             Fix For: All Versions
>
>         Attachments: image-2023-10-12-17-37-11-483.png
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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