Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-27798: Corrected wrong hive-site.xml #4803

Merged
merged 1 commit into from Oct 16, 2023

Conversation

xiaolin84250
Copy link
Contributor

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

bug image:
image
image

fix image:
image
image

What changes were proposed in this pull request?

I changed the packaging/src/docker/conf/hive-site.xml file.

Why are the changes needed?

I discovered this bug when I was using it. Since there is no default directory for non-root users in the container, error messages appear when creating databases and data tables without permission. I corrected hive.metastore.warehouse.dir configuration. This error has been resolved.

The correct related configuration items are in the picture below.
image

Does this PR introduce any user-facing change?

Now there will be no errors when creating databases and tables in docker containers, and the data and directories will appear in the specified directory.

Is the change a dependency upgrade?

No

How was this patch tested?

UT

Correct the configuration item: hive.metastore.warehouse.dir
@xiaolin84250
Copy link
Contributor Author

xiaolin84250 commented Oct 14, 2023

Sorry, this is my first time submitting Pull Requests. #4796 jira number was wrong, so I resubmit.
This is my issue jira: https://issues.apache.org/jira/browse/HIVE-27798

@zhangbutao
Copy link
Contributor

Please don't create duplicate PR,one is enough.

Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.8) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@ayushtkn ayushtkn merged commit 357714a into apache:master Oct 16, 2023
7 checks passed
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants