Login  Register

Re: [DISCUSSION] Support Database Location Configuration while Creating Database

Posted by cenyuhai on Oct 06, 2017; 6:55am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/DISCUSSION-Support-Database-Location-Configuration-while-Creating-Database-tp23492p23544.html

Hi,  Khan:
    I have some questions for your design:
    1. It looks like the the following comamd is supported by spark(hive).

CREATE (DATABASE|SCHEMA) [IF NOT EXISTS] database_name[COMMENT 'database_comment']   [LOCATION hdfs_path];
    2. For spark and hive, the default tablePath is `tablePath = databaseLocation + "/" + tableName`, I think keep the default behavior is better.
    For Backward Compatibility, we also support
    tablePath = carbon.storeLocation + “/” + database_Name +”/”  + tableName
   

    3. What does `Carbon.update.sync.folder` means?
   

------------------ Original ------------------
From:  "Mohammad Shahid Khan";<[hidden email]>;
Date:  Tue, Oct 3, 2017 09:06 PM
To:  "dev"<[hidden email]>;

Subject:  [DISCUSSION] Support Database Location Configuration while Creating Database



Hi Dev,Please find the design document for Support Database Location Configuration while Creating Database.


Regards,
Shahid