Community Articles
Find and share helpful community-sourced technical articles.
All community
This category
Community Articles
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Advanced Search
Cloudera Community
:
Support
:
Community Articles
:
Hive metastore DB Connection verification from Com...
Announcements
Check out our newest addition to the community, the
Cloudera Data Analytics (CDA) group hub.
Options
Subscribe to RSS Feed
Mark as New
Mark as Read
Bookmark
Subscribe
Printer Friendly Page
Report Inappropriate Content
Options
Subscribe to RSS Feed
Mark as New
Mark as Read
Bookmark
Subscribe
Printer Friendly Page
Report Inappropriate Content
Hive metastore DB Connection verification from Command line
Labels
(1)
Labels:
Apache Hive
rrrajesh
Contributor
Created on
01-03-2018
07:22 PM
Hive metastore DB Connection verification from Command line:-
You can run the following on any node where ambari agent installed on the cluster,
You need the following information to run this test.
You can use this to validate if the password stored in ambari and the actual mysql db password are same.
1. mysql db hostname
2. mysql db port number
3. mysql database name which hive metastore uses
4. mysql username
5. mysql password
Syntax:-
java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/mysql-connector-java.jar -Djava.library.path=/usr/lib/ambari-agent org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://<mysql db hostname>:<mysql db port number>/<mysql database name>" "<mysql username>" "<mysql password>" com.mysql.jdbc.Driver
Example:-
/usr/jdk64/jdk1.8.0_112/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/mysql-connector-java.jar -Djava.library.path=/usr/lib/ambari-agent org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://test.openstacklocal:50001/hive" hive hive com.mysql.jdbc.Driver
Connected to DB Successfully!
2,944 Views
0
Kudos
Take a Tour of the Community
Community Browser
Cloudera Community
Groups
Cloudera Innovation Accelerator
Innovation Discussions
Innovation Blog
Cloudera Data Analytics (CDA)
Cloudera Data Analytics (CDA) Forum
Cloudera Data Analytics (CDA) Blogs
Cloudera Data Analytics (CDA) Articles
Announcements
Community Announcements
Product Announcements
Support Announcements
What's New @ Cloudera
Support
Support Questions
Code Repositories
Community Articles
Using the Community
Intros and Suggestions
Community Tips
Have a Cloudera Account?
Sign In
Don't have an account?
Register
Your experience may be limited.
Sign in
to explore more.
Announcements
What's New @ Cloudera
Cloudera Operational Database (COD) UI supports creating a smaller cluster using a predefined Data Lake template
What's New @ Cloudera
Cloudera Operational Database (COD) supports scaling up the clusters vertically
Product Announcements
CDP Public Cloud: April 2023 Release Summary
What's New @ Cloudera
Cloudera Machine Learning launches "Add Data" feature to simplify data ingestion
What's New @ Cloudera
Simplify Data Access with Custom Connection Support in CML
View More Announcements
Version history
Last update:
01-03-2018
07:22 PM
Updated by:
rrrajesh
Contributors
rrrajesh
Top Kudoed Authors
User
Count
TimothySpann
763
sshimpi
379
KuldeepK
316
cstanca
309
abajwa
270
View Full Leaderboard