Skip to content

l145040

My feedback

1 result found

  1. 4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    l145040 commented  · 

    I have found its solution:
    By Default hive uses /apps/hive/warehouse for LOCATION

    First you need to create a directory in HDFS e.g:
    /user/yourusername/hive/warehouse

    Now in order to create database your command must be look like:
    hive> Create database yourdatabasename
    > Location '/user/yourusername/hive/warehouse'

    OK
    Time taken: 0.025 seconds
    So in order to verify submit below:

    hive> show databases;

    Good luck!

    l145040 supported this idea  · 

Feedback and Knowledge Base