Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7948049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:36:36+00:00 2026-06-04T01:36:36+00:00

I have a hive sever running on default port 10000 started via: hive –service

  • 0

I have a hive sever running on default port 10000 started via: hive --service hiveserver
I then have java program (the tutorial!) using the Hive JDBC Client connect to it using:

Connection con = DriverManager.getConnection("jdbc:hive://localhost:10000/default", "", "");

The tutorial runs and it creates a table testhivedrivertable on the default database and describes it. This works fine and my hive service logs a bunch of stuff.

I then try to bring up a shell to the same DB via hive -p 10000 which gets me a shell however I cannot see the table created by the java program (and nor can the java program see tables created when I am in the shell). Also, nothing shows in the console when I run commands in the hive shell so I am pretty sure I am talking to a different hive instance.

How can I have the hive shell interact with the same database the java JDBC driver is?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:36:37+00:00Added an answer on June 4, 2026 at 1:36 am

    You are talking to the same Hive instance; not the same metastore, unfortunately.

    Hive metastore is a database that stores metadata about your Hive tables (eg. table name, column names and types, table location, storage handler being used, number of buckets in the table, sorting columns if any, partition columns if any, etc.). When you create a table, this metastore gets updated with the information related to the new table which gets queried when you issue queries on that table.

    However, one of the important considerations of the founders of Hive was to make it easy to run it out of the box. This drove them to the decision of using an embedded Derby database as the metastore by default. This requires no set up but the side effect is that the scope of the database is within a single CLI invocation or a single JDBC client context. Therefore, Hive metadata is not persisted across multiple invocations of a client or across clients. This is what you are witnessing.

    You should migrate to using a standalone metastore which will persist the data across multiple Hive clients. MySQL and PostGres are popular options. Cloudera has a good article on configuring Hive and MySQL to use a MySQL metastore. It’s available here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

1) I started using hive from last 2 months. I have a same task
I'm running hive in thrift server mode. I have a UDF in a jar
I am running Hive 071 I have a table, with mulitple rows, with the
I have a ASMX web services running as 'network service'. I want to be
I am a newbie to Hadoop / Hive and I have just started reading
I am asking user to input a word then have my program compare it
I have written a small program to start to Hive Server. Command to start
I have exported many times tables from Hive to SQL Server. I never face
Have you ever created or encountered a self modifying code in Java? If yes,
I'm new to hive and I have encountered a problem, I have a table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.