Community
Training
Partners
Support
Cloudera Community
Cloudera Community
Announcements
Community Announcements
What's New @ Cloudera
Support
Support Questions
Community Articles
Groups
Using the Community
Getting Started
Intros and Suggestions
Community Tips
Blogs
Developer Blogs
Engineering Blogs
Cloudera Developers
Sign In
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
Announcements
We’ve updated our product names and community labels -
click here
for full details
Cloudera Community
Support
Community Articles
Hive metastore DB Connection verification from Com...
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
Expert 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!
4,530 Views
0
Kudos
Announcements
Community Announcements
Content Update: Evolving Our Community Content for Better, A...
Community Announcements
Product Name Updates — Community Label Changes & Notificatio...
What's New @ Cloudera
Announcing Cloudera Data Lineage for Trino
What's New @ Cloudera
Announcing Cloudera Streaming Analytics Operator for Kuberne...
What's New @ Cloudera
Announcing Cloudera Data Services 1.5.5 SP2: AI Inference an...
View More Announcements
Version history
Last update:
01-03-2018
07:22 PM
Updated by:
rrrajesh
Contributors
rrrajesh
Top Kudoed Authors
User
Count
mburgess
7
SurajS
1
zzeng
1
alim
1
abjain
1
View Full Leaderboard