Hive Manged table HDFS storage location

dasmrin
Posts: 3
Joined: Thu Dec 17, 2015 7:10 am

Hive Manged table HDFS storage location

Postby dasmrin » Wed Jan 06, 2016 12:04 pm

Hi,

Can we change the default hdfs directory of /user/hive/warehouse as managed table storage. If yes how? Pls show example.

Thanks,
Mrinmoy

Tags:

edupristine
Finance Junkie
Posts: 722
Joined: Wed Apr 09, 2014 6:28 am

Re: Hive Manged table HDFS storage location

Postby edupristine » Tue Apr 05, 2016 7:11 am

Hi Dasmrin

The default storage of managed table is the hive warehouse directory which has a default value ‘/user/hive/warehouse’. We can make the storage of a managed table in a different directory by specifying the location while table creation. We have to use LOCATION keyword.
Eg: CREATE TABLE table_name (name string) LOCATION ‘/DATA/my_table’


Return to “Big Data & Hadoop”



cron

Disclaimer

Global Association of Risk Professionals, Inc. (GARP®) does not endorse, promote, review or warrant the accuracy of the products or services offered by EduPristine for FRM® related information, nor does it endorse any pass rates claimed by the provider. Further, GARP® is not responsible for any fees or costs paid by the user to EduPristine nor is GARP® responsible for any fees or costs of any person or entity providing any services to EduPristine Study Program. FRM®, GARP® and Global Association of Risk Professionals®, are trademarks owned by the Global Association of Risk Professionals, Inc

CFA Institute does not endorse, promote, or warrant the accuracy or quality of the products or services offered by EduPristine. CFA Institute, CFA®, Claritas® and Chartered Financial Analyst® are trademarks owned by CFA Institute.

Utmost care has been taken to ensure that there is no copyright violation or infringement in any of our content. Still, in case you feel that there is any copyright violation of any kind please send a mail to abuse@edupristine.com and we will rectify it.